Makefile revision 3817
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater# CDDL HEADER START
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater#
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# The contents of this file are subject to the terms of the
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Common Development and Distribution License (the "License").
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# You may not use this file except in compliance with the License.
7b67cfadd077feb0ec3e6c78385ba0d845a9789bMark Andrews#
75b70a68aefaa17ac4e768d5ed85d2f50d471490Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# or http://www.opensolaris.org/os/licensing.
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater# See the License for the specific language governing permissions
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/shared-macros.mk
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater
80faf1588895fd26490f82f95a7a1b771df1c324Automatic UpdaterCOMPONENT_NAME= gnupg
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_VERSION= 2.0.22
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_PROJECT_URL= http://www.gnupg.org/
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE_HASH= \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews sha256:437d0ab259854359fc48aa8795af80cff4975e559c111c92c03d0bc91408e251
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gnupg/$(COMPONENT_ARCHIVE)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_BUGDB= utility/gnupg
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonTPNO= 17706
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude $(WS_MAKE_RULES)/prep.mk
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updaterinclude $(WS_MAKE_RULES)/configure.mk
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updaterinclude $(WS_MAKE_RULES)/ips.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Enable C99 mode + -Xc for its additional warnings.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsstudio_C99MODE = -Xc $(studio_C99_ENABLE)
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic Updater
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# -xinline=%auto -- we like inlining where appropriate
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCFLAGS += -xinline=%auto
ca904804e43f663f08eb1ac9d6d617930b9a3cd3Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# -xbuiltin=%none -- builtins have been known to be buggy
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic UpdaterCFLAGS += -xbuiltin=%none
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCFLAGS += $(CPP_LARGEFILES)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCFLAGS += $(XPG6MODE)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCFLAGS += $(CPP_POSIX)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCFLAGS += $(CPP_C99_EXTENDED_MATH)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCFLAGS += $(studio_PIC)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# If we pass -lc, -mt won't link with -lthread
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# (which is what it does by default, and we don't
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# want that, because we use POSIX threads).
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsLDFLAGS += -lc -z defs
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonLD_OPTIONS += -z defs
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic UpdaterCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
bb93c8542756719b53096b9939e4041d0966026fAutomatic UpdaterCONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic UpdaterCONFIGURE_ENV += INSTALL="$(INSTALL)"
55e03fc54708d97917bf26639b987f759bdc1f44Automatic Updater
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic UpdaterCONFIGURE_OPTIONS += --localstatedir=/var
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic UpdaterCONFIGURE_OPTIONS += --libexecdir=$(USRBINDIR)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS += --datadir=$(CONFIGURE_PREFIX)/share
52367885450d8f61d4f2d63292beb15ba8f39ac7Automatic UpdaterCONFIGURE_OPTIONS += --sysconfdir=/etc
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS += --enable-nls
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --enable-largefile
52367885450d8f61d4f2d63292beb15ba8f39ac7Automatic UpdaterCONFIGURE_OPTIONS += --disable-selinux-support
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic UpdaterCONFIGURE_OPTIONS += --with-pinentry-pgm=$(CONFIGURE_PREFIX)/lib/pinentry
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --with-libassuan-prefix=$(CONFIGURE_PREFIX)
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic UpdaterCONFIGURE_OPTIONS += --with-ksba-prefix=$(CONFIGURE_PREFIX)
ae7e54b14c946e0984c191554db9abb4893f9349Automatic UpdaterCONFIGURE_OPTIONS += --with-pth-prefix=$(CONFIGURE_PREFIX)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --with-libcurl=$(CONFIGURE_PREFIX)
ae7e54b14c946e0984c191554db9abb4893f9349Automatic UpdaterCONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic UpdaterCONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCONFIGURE_OPTIONS += --with-bzip2=$(CONFIGURE_PREFIX)
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterCONFIGURE_OPTIONS += --with-readline=$(CONFIGURE_PREFIX)
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterCONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterCONFIGURE_SBINDIR.64 = $(CONFIGURE_PREFIX)/sbin
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterLIBKSBA_MANIFEST = manifest-$(MACH)-libksba.depend
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterLIBASSUAN_MANIFEST = manifest-$(MACH)-libassuan.depend
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsGPGME_MANIFEST = manifest-$(MACH)-gpgme.depend
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonPINENTRY_MANIFEST = manifest-$(MACH)-pinentry.depend
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Work around pkgdepend bug which doesn't resolve dependencies from
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# the local workspace repo. Fortunately we only have to do this once.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsDEPENDED += $(WS_TOP)/components/libksba/build/$(LIBKSBA_MANIFEST)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonDEPENDED += $(WS_TOP)/components/libassuan/build/$(LIBASSUAN_MANIFEST)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsDEPENDED += $(WS_TOP)/components/gpgme/build/$(GPGME_MANIFEST)
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic UpdaterDEPENDED += $(WS_TOP)/components/pinentry/build/$(PINENTRY_MANIFEST)
0df8ead472f207020f8da22a185fe4b945248ab8Automatic Updater
e8c7dc2a5ce48f11c07a67c9923eeb8f419ff19fEvan HuntPKG_PROTO_DIRS += $(WS_TOP)/components/libksba
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic UpdaterPKG_PROTO_DIRS += $(WS_TOP)/components/libassuan
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic UpdaterPKG_PROTO_DIRS += $(WS_TOP)/components/gpgme
0df8ead472f207020f8da22a185fe4b945248ab8Automatic UpdaterPKG_PROTO_DIRS += $(WS_TOP)/components/pinentry
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterMAN8LIST = addgnupghome applygnupgdefaults
0df8ead472f207020f8da22a185fe4b945248ab8Automatic Updater
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterASLR_MODE = $(ASLR_ENABLE)
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updaterconfigure: $(CONFIGURE_64)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updaterbuild: $(BUILD_64)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterinstall: $(INSTALL_64)
0df8ead472f207020f8da22a185fe4b945248ab8Automatic Updater ( cd $(PROTOUSRSHARELOCALEDIR) ; \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(CP) -R 'en@boldquot' en )
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater ( cd $(PROTOUSRSHAREMANDIR) ; \
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater if test -d man8 ; then \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(MV) man8 man1m ; fi )
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater ( cd $(PROTOUSRSHAREMANDIR)/man1m ; \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater list1='$(MAN8LIST)' ; for f in $$list1; do \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater if test -f $$f.8 ; then \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(MV) $$f.8 $$f.1m ; fi ; \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater done )
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updatertest: $(TEST_64)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += compress/bzip2
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic UpdaterREQUIRED_PACKAGES += library/desktop/gtk2
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += library/desktop/pango
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += library/glib2
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic UpdaterREQUIRED_PACKAGES += library/pth
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += library/readline
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += library/security/libassuan
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += library/security/libgpg-error
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterREQUIRED_PACKAGES += library/security/libksba
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += library/zlib
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic UpdaterREQUIRED_PACKAGES += security/pinentry
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += shell/ksh93
7262eb86f2b465822206122921e2f357218f0cfdAutomatic UpdaterREQUIRED_PACKAGES += system/library
96ea71632887c58a9d00f47eb318bf76b35903c3Mark AndrewsREQUIRED_PACKAGES += system/library/security/libgcrypt
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += system/library/usb/libusb
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += web/curl
bbb069be941f649228760edcc241122933c066d2Automatic Updater