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 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
21 |
22 # |
22 # |
|
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
|
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= libassuan |
29 COMPONENT_NAME= libassuan |
26 COMPONENT_VERSION= 2.2.0 |
30 COMPONENT_VERSION= 2.2.0 |
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
28 COMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/libassuan/ |
31 COMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/libassuan/ |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
30 COMPONENT_ARCHIVE_HASH= \ |
33 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:7df58ed70be4b694f77efd1f3b3f103c6311b6b71e04a370382f9fe8204f6ec6 |
34 sha256:7df58ed70be4b694f77efd1f3b3f103c6311b6b71e04a370382f9fe8204f6ec6 |
32 COMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/libassuan/$(COMPONENT_ARCHIVE) |
35 COMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/libassuan/$(COMPONENT_ARCHIVE) |
33 COMPONENT_BUGDB= utility/gnupg |
36 COMPONENT_BUGDB= utility/gnupg |
34 |
37 |
35 TPNO= 22290 |
38 TPNO= 22290 |
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 |
62 '-e "s/chan_[0-9]\{1,9\}/chan/g"' |
63 '-e "s/chan_[0-9]\{1,9\}/chan/g"' |
63 |
64 |
64 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
65 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
65 CONFIGURE_ENV += INSTALL="$(INSTALL)" |
66 CONFIGURE_ENV += INSTALL="$(INSTALL)" |
66 |
67 |
67 CONFIGURE_OPTIONS += --localstatedir=/var |
68 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR) |
68 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
69 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
69 CONFIGURE_OPTIONS += --enable-shared |
70 CONFIGURE_OPTIONS += --enable-shared |
70 CONFIGURE_OPTIONS += --disable-static |
71 CONFIGURE_OPTIONS += --disable-static |
71 CONFIGURE_OPTIONS += --disable-silent-rules |
72 CONFIGURE_OPTIONS += --disable-silent-rules |
72 CONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX) |
73 CONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX) |
73 CONFIGURE_OPTIONS += --with-pic |
74 CONFIGURE_OPTIONS += --with-pic |
74 |
75 |
75 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
76 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
76 |
77 |
77 configure: $(CONFIGURE_32_and_64) |
|
78 |
|
79 build: $(BUILD_32_and_64) |
|
80 |
|
81 install: $(INSTALL_32_and_64) |
|
82 |
|
83 test: $(TEST_32_and_64) |
|
84 |
|
85 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
86 |
|
87 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
88 |
|
89 REQUIRED_PACKAGES += library/security/libgpg-error |
78 REQUIRED_PACKAGES += library/security/libgpg-error |
90 REQUIRED_PACKAGES += shell/ksh93 |
79 REQUIRED_PACKAGES += shell/ksh93 |
91 REQUIRED_PACKAGES += system/library |
|