Makefile revision 3817
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# CDDL HEADER START
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# The contents of this file are subject to the terms of the
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Common Development and Distribution License (the "License").
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# You may not use this file except in compliance with the License.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# or http://www.opensolaris.org/os/licensing.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# See the License for the specific language governing permissions
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# and limitations under the License.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# When distributing Covered Code, include this CDDL HEADER in each
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# If applicable, add the following below this CDDL HEADER, with the
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# fields enclosed by brackets "[]" replaced with your own identifying
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# information: Portions Copyright [yyyy] [name of copyright owner]
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# CDDL HEADER END
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#
489b7c4ab76ae8df137fbfcc2214f7baa52883a0Raymond Cheninclude ../../make-rules/shared-macros.mk
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCOMPONENT_NAME= gnupg
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCOMPONENT_VERSION= 2.0.22
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCOMPONENT_PROJECT_URL= http://www.gnupg.org/
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCOMPONENT_ARCHIVE_HASH= \
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz sha256:437d0ab259854359fc48aa8795af80cff4975e559c111c92c03d0bc91408e251
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gnupg/$(COMPONENT_ARCHIVE)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCOMPONENT_BUGDB= utility/gnupg
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzTPNO= 17706
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzinclude $(WS_MAKE_RULES)/prep.mk
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzinclude $(WS_MAKE_RULES)/configure.mk
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzinclude $(WS_MAKE_RULES)/ips.mk
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Enable C99 mode + -Xc for its additional warnings.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzstudio_C99MODE = -Xc $(studio_C99_ENABLE)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# -xinline=%auto -- we like inlining where appropriate
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsCFLAGS += -xinline=%auto
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# -xbuiltin=%none -- builtins have been known to be buggy
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCFLAGS += -xbuiltin=%none
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCFLAGS += $(CPP_LARGEFILES)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCFLAGS += $(XPG6MODE)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCFLAGS += $(CPP_POSIX)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCFLAGS += $(CPP_C99_EXTENDED_MATH)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCFLAGS += $(studio_PIC)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# If we pass -lc, -mt won't link with -lthread
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# (which is what it does by default, and we don't
c138f478d2bc94e73ab8f6a084e323bec25e62f5yz# want that, because we use POSIX threads).
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzLDFLAGS += -lc -z defs
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzLD_OPTIONS += -z defs
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_ENV += INSTALL="$(INSTALL)"
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --localstatedir=/var
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --libexecdir=$(USRBINDIR)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --datadir=$(CONFIGURE_PREFIX)/share
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --sysconfdir=/etc
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --enable-nls
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --enable-largefile
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsCONFIGURE_OPTIONS += --disable-selinux-support
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsCONFIGURE_OPTIONS += --with-pinentry-pgm=$(CONFIGURE_PREFIX)/lib/pinentry
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsCONFIGURE_OPTIONS += --with-libassuan-prefix=$(CONFIGURE_PREFIX)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsCONFIGURE_OPTIONS += --with-ksba-prefix=$(CONFIGURE_PREFIX)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --with-pth-prefix=$(CONFIGURE_PREFIX)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --with-libcurl=$(CONFIGURE_PREFIX)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --with-bzip2=$(CONFIGURE_PREFIX)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_OPTIONS += --with-readline=$(CONFIGURE_PREFIX)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzCONFIGURE_SBINDIR.64 = $(CONFIGURE_PREFIX)/sbin
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzLIBKSBA_MANIFEST = manifest-$(MACH)-libksba.depend
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzLIBASSUAN_MANIFEST = manifest-$(MACH)-libassuan.depend
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzGPGME_MANIFEST = manifest-$(MACH)-gpgme.depend
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzPINENTRY_MANIFEST = manifest-$(MACH)-pinentry.depend
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Work around pkgdepend bug which doesn't resolve dependencies from
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# the local workspace repo. Fortunately we only have to do this once.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzDEPENDED += $(WS_TOP)/components/libksba/build/$(LIBKSBA_MANIFEST)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzDEPENDED += $(WS_TOP)/components/libassuan/build/$(LIBASSUAN_MANIFEST)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzDEPENDED += $(WS_TOP)/components/gpgme/build/$(GPGME_MANIFEST)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzDEPENDED += $(WS_TOP)/components/pinentry/build/$(PINENTRY_MANIFEST)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzPKG_PROTO_DIRS += $(WS_TOP)/components/libksba
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzPKG_PROTO_DIRS += $(WS_TOP)/components/libassuan
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzPKG_PROTO_DIRS += $(WS_TOP)/components/gpgme
bf56214c0556fa6864189c826d39dbe156bb22a0stevelPKG_PROTO_DIRS += $(WS_TOP)/components/pinentry
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
489b7c4ab76ae8df137fbfcc2214f7baa52883a0Raymond ChenMAN8LIST = addgnupghome applygnupgdefaults
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzASLR_MODE = $(ASLR_ENABLE)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzconfigure: $(CONFIGURE_64)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzbuild: $(BUILD_64)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzinstall: $(INSTALL_64)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz ( cd $(PROTOUSRSHARELOCALEDIR) ; \
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz $(CP) -R 'en@boldquot' en )
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz ( cd $(PROTOUSRSHAREMANDIR) ; \
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz if test -d man8 ; then \
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(MV) man8 man1m ; fi )
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits ( cd $(PROTOUSRSHAREMANDIR)/man1m ; \
bf56214c0556fa6864189c826d39dbe156bb22a0stevel list1='$(MAN8LIST)' ; for f in $$list1; do \
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz if test -f $$f.8 ; then \
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz $(MV) $$f.8 $$f.1m ; fi ; \
bf56214c0556fa6864189c826d39dbe156bb22a0stevel done )
bf56214c0556fa6864189c826d39dbe156bb22a0stevel
bf56214c0556fa6864189c826d39dbe156bb22a0steveltest: $(TEST_64)
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += compress/bzip2
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += library/desktop/gtk2
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += library/desktop/pango
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsREQUIRED_PACKAGES += library/glib2
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsREQUIRED_PACKAGES += library/pth
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsREQUIRED_PACKAGES += library/readline
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += library/security/libassuan
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += library/security/libgpg-error
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += library/security/libksba
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += library/zlib
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += security/pinentry
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += shell/ksh93
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += system/library
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += system/library/security/libgcrypt
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += system/library/usb/libusb
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzREQUIRED_PACKAGES += web/curl
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz