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#
5680N/A
303N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 64
303N/Ainclude ../../make-rules/shared-macros.mk
303N/A
303N/ACOMPONENT_NAME= gnupg
6239N/ACOMPONENT_VERSION= 2.0.30
303N/ACOMPONENT_PROJECT_URL= http://www.gnupg.org/
303N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
844N/ACOMPONENT_ARCHIVE_HASH= \
6239N/A sha256:e329785a4f366ba5d72c2c678a7e388b0892ac8440c2f4e6810042123c235d71
303N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gnupg/$(COMPONENT_ARCHIVE)
303N/A
6239N/ATPNO= 29221
2899N/A
6382N/A# Requires new pkgmogrify feature, not available in S11.
6382N/Aifeq ($(BUILD_TYPE), evaluation)
6382N/ABUILD_64=
6382N/AINSTALL_64=
6382N/APUBLISH_STAMP=
6382N/Aendif
6382N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.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).
5680N/ALDFLAGS += -lc $(LD_Z_DEFS)
5680N/ALD_OPTIONS += $(LD_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 += 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
5680N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
303N/ACONFIGURE_OPTIONS += --libexecdir=$(USRBINDIR)
303N/ACONFIGURE_OPTIONS += --datadir=$(CONFIGURE_PREFIX)/share
5680N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
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)
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
5680N/ACOMPONENT_POST_INSTALL_ACTION += \
303N/A ( cd $(PROTOUSRSHARELOCALEDIR) ; \
303N/A $(CP) -R 'en@boldquot' en )
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/security/libgcrypt
3817N/AREQUIRED_PACKAGES += system/library/usb/libusb
6133N/AREQUIRED_PACKAGES += system/network/ldap/openldap
3817N/AREQUIRED_PACKAGES += web/curl