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