Makefile revision 3817
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater# CDDL HEADER START
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.
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.
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]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews sha256:437d0ab259854359fc48aa8795af80cff4975e559c111c92c03d0bc91408e251
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gnupg/$(COMPONENT_ARCHIVE)
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Enable C99 mode + -Xc for its additional warnings.
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# -xinline=%auto -- we like inlining where appropriate
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# -xbuiltin=%none -- builtins have been known to be buggy
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).
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic UpdaterCONFIGURE_OPTIONS += --libexecdir=$(USRBINDIR)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS += --datadir=$(CONFIGURE_PREFIX)/share
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
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 UpdaterLIBKSBA_MANIFEST = manifest-$(MACH)-libksba.depend
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterLIBASSUAN_MANIFEST = manifest-$(MACH)-libassuan.depend
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonPINENTRY_MANIFEST = manifest-$(MACH)-pinentry.depend
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)
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic UpdaterPKG_PROTO_DIRS += $(WS_TOP)/components/libassuan
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic UpdaterPKG_PROTO_DIRS += $(WS_TOP)/components/gpgme
0df8ead472f207020f8da22a185fe4b945248ab8Automatic UpdaterPKG_PROTO_DIRS += $(WS_TOP)/components/pinentry
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater if test -d man8 ; then \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater list1='$(MAN8LIST)' ; for f in $$list1; do \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater if test -f $$f.8 ; then \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += library/security/libassuan
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterREQUIRED_PACKAGES += library/security/libgpg-error
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterREQUIRED_PACKAGES += library/security/libksba
96ea71632887c58a9d00f47eb318bf76b35903c3Mark AndrewsREQUIRED_PACKAGES += system/library/security/libgcrypt