Makefile revision 4115
303N/A#
303N/A# CDDL HEADER START
303N/A#
303N/A# The contents of this file are subject to the terms of the
303N/A# Common Development and Distribution License (the "License").
303N/A# You may not use this file except in compliance with the License.
303N/A#
303N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
303N/A# or http://www.opensolaris.org/os/licensing.
303N/A# See the License for the specific language governing permissions
303N/A# and limitations under the License.
303N/A#
303N/A# When distributing Covered Code, include this CDDL HEADER in each
303N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
303N/A# If applicable, add the following below this CDDL HEADER, with the
303N/A# fields enclosed by brackets "[]" replaced with your own identifying
303N/A# information: Portions Copyright [yyyy] [name of copyright owner]
303N/A#
303N/A# CDDL HEADER END
303N/A#
3817N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
303N/A#
303N/Ainclude ../../make-rules/shared-macros.mk
303N/A
303N/ACOMPONENT_NAME= gnupg
4115N/ACOMPONENT_VERSION= 2.0.26
303N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
303N/ACOMPONENT_PROJECT_URL= http://www.gnupg.org/
303N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
844N/ACOMPONENT_ARCHIVE_HASH= \
4115N/A sha256:7758e30dc382ae7a7167ed41b7f936aa50af5ea2d6fccdef663b5b750b65b8e0
303N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gnupg/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/gnupg
303N/A
4115N/ATPNO= 21142
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/configure.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
303N/A
303N/A# Enable C99 mode + -Xc for its additional warnings.
303N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
303N/A
303N/A# -xinline=%auto -- we like inlining where appropriate
303N/ACFLAGS += -xinline=%auto
303N/A
303N/A# -xbuiltin=%none -- builtins have been known to be buggy
303N/ACFLAGS += -xbuiltin=%none
303N/A
303N/ACFLAGS += $(CPP_LARGEFILES)
303N/ACFLAGS += $(XPG6MODE)
303N/ACFLAGS += $(CPP_POSIX)
303N/ACFLAGS += $(CPP_C99_EXTENDED_MATH)
303N/ACFLAGS += $(studio_PIC)
303N/A
303N/A# If we pass -lc, -mt won't link with -lthread
303N/A# (which is what it does by default, and we don't
303N/A# want that, because we use POSIX threads).
303N/ALDFLAGS += -lc -z defs
303N/ALD_OPTIONS += -z defs
303N/A
4115N/ACOMPONENT_TEST_TRANSFORMS += \
4115N/A '-e "/libtool/d"' \
4115N/A '-e "/-m32/d"' \
4115N/A '-e "/-m64/d"' \
4115N/A '-e "/ld: warning/d"' \
4115N/A '-e "/warning/d"' \
4115N/A '-e "/Generat/d"' \
4115N/A '-e "/Creat/d"' \
4115N/A '-e "/Compos/d"' \
4115N/A '-e "/Writ/d"' \
4115N/A '-e "/Read/d"' \
4115N/A '-e "/Home/d"' \
4115N/A '-e "/from/d"' \
4115N/A '-e "/--run/d"' \
4115N/A '-e "/rm -f/d"' \
4115N/A '-e "/Nothing/d"' \
4115N/A '-e "/Leaving/d"' \
4115N/A '-e "/Entering/d"' \
4115N/A '-e "/Making/d"' \
4115N/A '-e "/Known envvars/d"' \
4115N/A '-e "/make/d"' \
4115N/A '-e "s/[0-9]\{1,\}\.[0-9]\{1,\} s, //g"' \
4115N/A '-e "s^[0-9]\{1,\} kB/s^^g"' \
4115N/A '-e "s^[0-9]\{1,\} kB/s^^g"' \
4115N/A '-e "s^[0-9]\{1,\}\.[0-9]\{1,\} MB/s^^g"' \
4115N/A '-e "s^[0-9]\{1,\}\.[0-9]\{1,\} MB/s^^g"' \
4115N/A '-e "s/([0-9]\{1,\} B)//g"' \
4115N/A '-e "s/([0-9]\{1,\} B)//g"' \
4115N/A '-e "s/copied,/copied/g"' \
4115N/A '-e "s/ \{1,\}copied/ copied/g"' \
4115N/A '-e "s/copied $$/copied/g"' \
4115N/A '-e "s/copied [0-9]\{1,\}\./copied/g"'
4115N/A
303N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
303N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
303N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
303N/A
4115N/A# Without this GnuPG's ./configure will complain that we're not using
4115N/A# GNU make. But we are.
4115N/ACONFIGURE_ENV += MAKE="$(GMAKE)"
4115N/A
303N/ACONFIGURE_OPTIONS += --localstatedir=/var
303N/ACONFIGURE_OPTIONS += --libexecdir=$(USRBINDIR)
303N/ACONFIGURE_OPTIONS += --datadir=$(CONFIGURE_PREFIX)/share
303N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
303N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
303N/ACONFIGURE_OPTIONS += --enable-nls
303N/ACONFIGURE_OPTIONS += --enable-largefile
303N/ACONFIGURE_OPTIONS += --disable-selinux-support
401N/ACONFIGURE_OPTIONS += --with-pinentry-pgm=$(CONFIGURE_PREFIX)/lib/pinentry
303N/ACONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
303N/ACONFIGURE_OPTIONS += --with-libassuan-prefix=$(CONFIGURE_PREFIX)
303N/ACONFIGURE_OPTIONS += --with-ksba-prefix=$(CONFIGURE_PREFIX)
303N/ACONFIGURE_OPTIONS += --with-pth-prefix=$(CONFIGURE_PREFIX)
303N/ACONFIGURE_OPTIONS += --with-libcurl=$(CONFIGURE_PREFIX)
303N/ACONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
303N/ACONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
303N/ACONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
303N/ACONFIGURE_OPTIONS += --with-bzip2=$(CONFIGURE_PREFIX)
303N/ACONFIGURE_OPTIONS += --with-readline=$(CONFIGURE_PREFIX)
2465N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
2465N/ACONFIGURE_SBINDIR.64 = $(CONFIGURE_PREFIX)/sbin
303N/A
303N/ALIBKSBA_MANIFEST = manifest-$(MACH)-libksba.depend
303N/ALIBASSUAN_MANIFEST = manifest-$(MACH)-libassuan.depend
303N/AGPGME_MANIFEST = manifest-$(MACH)-gpgme.depend
303N/APINENTRY_MANIFEST = manifest-$(MACH)-pinentry.depend
303N/A
303N/A# Work around pkgdepend bug which doesn't resolve dependencies from
303N/A# the local workspace repo. Fortunately we only have to do this once.
303N/ADEPENDED += $(WS_TOP)/components/libksba/build/$(LIBKSBA_MANIFEST)
303N/ADEPENDED += $(WS_TOP)/components/libassuan/build/$(LIBASSUAN_MANIFEST)
303N/ADEPENDED += $(WS_TOP)/components/gpgme/build/$(GPGME_MANIFEST)
303N/ADEPENDED += $(WS_TOP)/components/pinentry/build/$(PINENTRY_MANIFEST)
303N/A
303N/APKG_PROTO_DIRS += $(WS_TOP)/components/libksba
303N/APKG_PROTO_DIRS += $(WS_TOP)/components/libassuan
303N/APKG_PROTO_DIRS += $(WS_TOP)/components/gpgme
303N/APKG_PROTO_DIRS += $(WS_TOP)/components/pinentry
303N/A
303N/AMAN8LIST = addgnupghome applygnupgdefaults
303N/A
2375N/AASLR_MODE = $(ASLR_ENABLE)
2375N/A
3477N/Aconfigure: $(CONFIGURE_64)
3477N/A
2465N/Abuild: $(BUILD_64)
303N/A
2465N/Ainstall: $(INSTALL_64)
303N/A ( cd $(PROTOUSRSHARELOCALEDIR) ; \
303N/A $(CP) -R 'en@boldquot' en )
303N/A ( cd $(PROTOUSRSHAREMANDIR) ; \
303N/A if test -d man8 ; then \
303N/A $(MV) man8 man1m ; fi )
303N/A ( cd $(PROTOUSRSHAREMANDIR)/man1m ; \
303N/A list1='$(MAN8LIST)' ; for f in $$list1; do \
303N/A if test -f $$f.8 ; then \
303N/A $(MV) $$f.8 $$f.1m ; fi ; \
303N/A done )
303N/A
2465N/Atest: $(TEST_64)
303N/A
4115N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
303N/A
3817N/AREQUIRED_PACKAGES += compress/bzip2
3817N/AREQUIRED_PACKAGES += library/desktop/gtk2
3817N/AREQUIRED_PACKAGES += library/desktop/pango
3817N/AREQUIRED_PACKAGES += library/glib2
3817N/AREQUIRED_PACKAGES += library/pth
3817N/AREQUIRED_PACKAGES += library/readline
3817N/AREQUIRED_PACKAGES += library/security/libassuan
3817N/AREQUIRED_PACKAGES += library/security/libgpg-error
3817N/AREQUIRED_PACKAGES += library/security/libksba
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += security/pinentry
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library
3817N/AREQUIRED_PACKAGES += system/library/security/libgcrypt
3817N/AREQUIRED_PACKAGES += system/library/usb/libusb
3817N/AREQUIRED_PACKAGES += web/curl