components/libksba/Makefile
changeset 5682 94c0ca64c022
parent 5470 588992075c94
child 6286 67033aaef576
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
       
    21 
       
    22 #
    21 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    22 #
    24 #
       
    25 # Prefer 32-bit as only "binary" delivered is a script with embedded paths.
       
    26 BUILD_BITS= 32_and_64
    23 include ../../make-rules/shared-macros.mk
    27 include ../../make-rules/shared-macros.mk
    24 
    28 
    25 COMPONENT_NAME=		libksba
    29 COMPONENT_NAME=		libksba
    26 COMPONENT_VERSION=	1.3.3
    30 COMPONENT_VERSION=	1.3.3
    27 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    28 COMPONENT_PROJECT_URL=	http://www.gnupg.org/related_software/libksba/
    31 COMPONENT_PROJECT_URL=	http://www.gnupg.org/related_software/libksba/
    29 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
    30 COMPONENT_ARCHIVE_HASH=	\
    33 COMPONENT_ARCHIVE_HASH=	\
    31     sha256:0c7f5ffe34d0414f6951d9880a46fcc2985c487f7c36369b9f11ad41131c7786
    34     sha256:0c7f5ffe34d0414f6951d9880a46fcc2985c487f7c36369b9f11ad41131c7786
    32 COMPONENT_ARCHIVE_URL=	ftp://ftp.gnupg.org/gcrypt/libksba/$(COMPONENT_ARCHIVE)
    35 COMPONENT_ARCHIVE_URL=	ftp://ftp.gnupg.org/gcrypt/libksba/$(COMPONENT_ARCHIVE)
    33 COMPONENT_BUGDB=	utility/gnupg
    36 COMPONENT_BUGDB=	utility/gnupg
    34 
    37 
    35 TPNO=			22395
    38 TPNO=			22395
    36 
    39 
    37 include $(WS_MAKE_RULES)/prep.mk
    40 include $(WS_MAKE_RULES)/common.mk
    38 include $(WS_MAKE_RULES)/configure.mk
       
    39 include $(WS_MAKE_RULES)/ips.mk
       
    40 
    41 
    41 # Enable C99 mode + -Xc for its additional warnings.
    42 # Enable C99 mode + -Xc for its additional warnings.
    42 studio_C99MODE = -Xc $(studio_C99_ENABLE)
    43 studio_C99MODE = -Xc $(studio_C99_ENABLE)
    43 
    44 
    44 # -xinline=%auto -- we like inlining where appropriate
    45 # -xinline=%auto -- we like inlining where appropriate
    54 CFLAGS += $(studio_PIC)
    55 CFLAGS += $(studio_PIC)
    55 
    56 
    56 COMPONENT_TEST_MASTER = \
    57 COMPONENT_TEST_MASTER = \
    57 	$(COMPONENT_TEST_RESULTS_DIR)/results-libksba.master
    58 	$(COMPONENT_TEST_RESULTS_DIR)/results-libksba.master
    58 
    59 
    59 CONFIGURE_ENV +=	CFLAGS="$(CFLAGS)"
       
    60 CONFIGURE_ENV +=	INSTALL="$(INSTALL)"
    60 CONFIGURE_ENV +=	INSTALL="$(INSTALL)"
    61 
    61 
    62 CONFIGURE_OPTIONS  +=		--localstatedir=/var
    62 CONFIGURE_OPTIONS  +=		--localstatedir=$(VARDIR)
    63 CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
    63 CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
    64 CONFIGURE_OPTIONS  +=		--enable-shared
    64 CONFIGURE_OPTIONS  +=		--enable-shared
    65 CONFIGURE_OPTIONS  +=		--disable-static
    65 CONFIGURE_OPTIONS  +=		--disable-static
    66 CONFIGURE_OPTIONS  +=		--disable-silent-rules
    66 CONFIGURE_OPTIONS  +=		--disable-silent-rules
    67 CONFIGURE_OPTIONS  +=		--with-gpg-error-prefix=$(CONFIGURE_PREFIX)
    67 CONFIGURE_OPTIONS  +=		--with-gpg-error-prefix=$(CONFIGURE_PREFIX)
    68 CONFIGURE_OPTIONS  +=		--with-pic
    68 CONFIGURE_OPTIONS  +=		--with-pic
    69 
    69 
    70 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    70 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    71 
    71 
    72 configure:	$(CONFIGURE_32_and_64)
       
    73 
       
    74 build: $(BUILD_32_and_64)
       
    75 
       
    76 install: $(INSTALL_32_and_64)
       
    77 
       
    78 test: $(TEST_32_and_64)
       
    79 
       
    80 system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
       
    81 
       
    82 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
       
    83 
       
    84 REQUIRED_PACKAGES += library/security/libgpg-error
    72 REQUIRED_PACKAGES += library/security/libgpg-error
    85 REQUIRED_PACKAGES += shell/ksh93
    73 REQUIRED_PACKAGES += shell/ksh93
    86 REQUIRED_PACKAGES += system/library