Makefile revision 5680
6a67d144095c31bbafed93cec1619590157335eajvergara#
6a67d144095c31bbafed93cec1619590157335eajvergara# CDDL HEADER START
6a67d144095c31bbafed93cec1619590157335eajvergara#
6a67d144095c31bbafed93cec1619590157335eajvergara# The contents of this file are subject to the terms of the
6a67d144095c31bbafed93cec1619590157335eajvergara# Common Development and Distribution License (the "License").
6a67d144095c31bbafed93cec1619590157335eajvergara# You may not use this file except in compliance with the License.
6a67d144095c31bbafed93cec1619590157335eajvergara#
6a67d144095c31bbafed93cec1619590157335eajvergara# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# or http://www.opensolaris.org/os/licensing.
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# See the License for the specific language governing permissions
6a67d144095c31bbafed93cec1619590157335eajvergara# and limitations under the License.
6a67d144095c31bbafed93cec1619590157335eajvergara#
6a67d144095c31bbafed93cec1619590157335eajvergara# When distributing Covered Code, include this CDDL HEADER in each
6a67d144095c31bbafed93cec1619590157335eajvergara# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# If applicable, add the following below this CDDL HEADER, with the
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# fields enclosed by brackets "[]" replaced with your own identifying
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac# information: Portions Copyright [yyyy] [name of copyright owner]
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac#
6a67d144095c31bbafed93cec1619590157335eajvergara# CDDL HEADER END
6a67d144095c31bbafed93cec1619590157335eajvergara#
6a67d144095c31bbafed93cec1619590157335eajvergara
6a67d144095c31bbafed93cec1619590157335eajvergara#
6a67d144095c31bbafed93cec1619590157335eajvergara# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
f14a485fcb48f77d077a14b766f0acc097093fe5jvergara#
a5b9f8fb834b1b2208e59a2fa76714bd91a5f147violetteBUILD_BITS= 64
6a67d144095c31bbafed93cec1619590157335eajvergarainclude ../../make-rules/shared-macros.mk
6a67d144095c31bbafed93cec1619590157335eajvergara
6a67d144095c31bbafed93cec1619590157335eajvergaraCOMPONENT_NAME= gnupg
6a67d144095c31bbafed93cec1619590157335eajvergaraCOMPONENT_VERSION= 2.0.27
6a67d144095c31bbafed93cec1619590157335eajvergaraCOMPONENT_PROJECT_URL= http://www.gnupg.org/
6a67d144095c31bbafed93cec1619590157335eajvergaraCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
6a67d144095c31bbafed93cec1619590157335eajvergaraCOMPONENT_ARCHIVE_HASH= \
7b6b125d52edabd5b1c9134feef7aeae0e69499ekenneth_suter sha256:57646d3e4b919fa1e5c8f1c0cf5fe1215333041c493a5ebc4b8f2978dbe930f2
7b6b125d52edabd5b1c9134feef7aeae0e69499ekenneth_suterCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gnupg/$(COMPONENT_ARCHIVE)
6a67d144095c31bbafed93cec1619590157335eajvergara
6a67d144095c31bbafed93cec1619590157335eajvergaraTPNO= 22246
6a67d144095c31bbafed93cec1619590157335eajvergara
6a67d144095c31bbafed93cec1619590157335eajvergarainclude $(WS_MAKE_RULES)/common.mk
6a67d144095c31bbafed93cec1619590157335eajvergara
5b9085a87d43ed3ae0b149a9c79ba57723733185jvergara# Enable C99 mode + -Xc for its additional warnings.
6a67d144095c31bbafed93cec1619590157335eajvergarastudio_C99MODE = -Xc $(studio_C99_ENABLE)
0877596da3b90efc5fd39171cef80a2fb8ec395ekenneth_suter
6a67d144095c31bbafed93cec1619590157335eajvergara# -xinline=%auto -- we like inlining where appropriate
6a67d144095c31bbafed93cec1619590157335eajvergaraCFLAGS += -xinline=%auto
6a67d144095c31bbafed93cec1619590157335eajvergara
0877596da3b90efc5fd39171cef80a2fb8ec395ekenneth_suter# -xbuiltin=%none -- builtins have been known to be buggy
53247d28ba99538f841a13ea2cde01c3faa3ef36kenneth_suterCFLAGS += -xbuiltin=%none
6a67d144095c31bbafed93cec1619590157335eajvergara
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suterCFLAGS += $(CPP_LARGEFILES)
6a67d144095c31bbafed93cec1619590157335eajvergaraCFLAGS += $(XPG6MODE)
6a67d144095c31bbafed93cec1619590157335eajvergaraCFLAGS += $(CPP_POSIX)
6a67d144095c31bbafed93cec1619590157335eajvergaraCFLAGS += $(CPP_C99_EXTENDED_MATH)
6a67d144095c31bbafed93cec1619590157335eajvergaraCFLAGS += $(studio_PIC)
6a67d144095c31bbafed93cec1619590157335eajvergara
6a67d144095c31bbafed93cec1619590157335eajvergara# If we pass -lc, -mt won't link with -lthread
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suter# (which is what it does by default, and we don't
6a67d144095c31bbafed93cec1619590157335eajvergara# want that, because we use POSIX threads).
6a67d144095c31bbafed93cec1619590157335eajvergaraLDFLAGS += -lc $(LD_Z_DEFS)
6a67d144095c31bbafed93cec1619590157335eajvergaraLD_OPTIONS += $(LD_Z_DEFS)
6a67d144095c31bbafed93cec1619590157335eajvergara
7b6b125d52edabd5b1c9134feef7aeae0e69499ekenneth_suterCOMPONENT_TEST_TRANSFORMS += \
7b6b125d52edabd5b1c9134feef7aeae0e69499ekenneth_suter '-e "/libtool/d"' \
7b6b125d52edabd5b1c9134feef7aeae0e69499ekenneth_suter '-e "/-m32/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/-m64/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/ld: warning/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/warning/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/Generat/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/Creat/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/Compos/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/Writ/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/Read/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/Home/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/from/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/--run/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/rm -f/d"' \
3e6ff045d382a718a951d6305c8910ffc268f893kenneth_suter '-e "/Nothing/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/Leaving/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/Entering/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/Making/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/Known envvars/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "/make/d"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "s/[0-9]\{1,\}\.[0-9]\{1,\} s, //g"' \
857225469c51bedb8c0566aa7757800cfaac4075kenneth_suter '-e "s^[0-9]\{1,\} kB/s^^g"' \
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suter '-e "s^[0-9]\{1,\} kB/s^^g"' \
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter '-e "s^[0-9]\{1,\}\.[0-9]\{1,\} MB/s^^g"' \
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter '-e "s^[0-9]\{1,\}\.[0-9]\{1,\} MB/s^^g"' \
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suter '-e "s/([0-9]\{1,\} B)//g"' \
2401d3c2af505789c7c3b860a43e973f27731243jvergara '-e "s/([0-9]\{1,\} B)//g"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "s/copied,/copied/g"' \
6a67d144095c31bbafed93cec1619590157335eajvergara '-e "s/ \{1,\}copied/ copied/g"' \
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suter '-e "s/copied $$/copied/g"' \
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suter '-e "s/copied [0-9]\{1,\}\./copied/g"'
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter
6a67d144095c31bbafed93cec1619590157335eajvergaraCONFIGURE_ENV += INSTALL="$(INSTALL)"
857225469c51bedb8c0566aa7757800cfaac4075kenneth_suter
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter# Without this GnuPG's ./configure will complain that we're not using
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suter# GNU make. But we are.
6a67d144095c31bbafed93cec1619590157335eajvergaraCONFIGURE_ENV += MAKE="$(GMAKE)"
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suter
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suterCONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
6a67d144095c31bbafed93cec1619590157335eajvergaraCONFIGURE_OPTIONS += --libexecdir=$(USRBINDIR)
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suterCONFIGURE_OPTIONS += --datadir=$(CONFIGURE_PREFIX)/share
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suterCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
0142bbb7ccb5d0efb942c20f5d27e5ddfb4344fdkenneth_suterCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
53247d28ba99538f841a13ea2cde01c3faa3ef36kenneth_suterCONFIGURE_OPTIONS += --enable-nls
6a67d144095c31bbafed93cec1619590157335eajvergaraCONFIGURE_OPTIONS += --enable-largefile
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suterCONFIGURE_OPTIONS += --disable-selinux-support
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suterCONFIGURE_OPTIONS += --with-pinentry-pgm=$(CONFIGURE_PREFIX)/lib/pinentry
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suterCONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
6a67d144095c31bbafed93cec1619590157335eajvergaraCONFIGURE_OPTIONS += --with-libassuan-prefix=$(CONFIGURE_PREFIX)
6a67d144095c31bbafed93cec1619590157335eajvergaraCONFIGURE_OPTIONS += --with-ksba-prefix=$(CONFIGURE_PREFIX)
5b9085a87d43ed3ae0b149a9c79ba57723733185jvergaraCONFIGURE_OPTIONS += --with-pth-prefix=$(CONFIGURE_PREFIX)
c6c8254710feb80354037c2afb8d1cdae930a27akenneth_suterCONFIGURE_OPTIONS += --with-libcurl=$(CONFIGURE_PREFIX)
6a67d144095c31bbafed93cec1619590157335eajvergaraCONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
6a67d144095c31bbafed93cec1619590157335eajvergaraCONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
6a67d144095c31bbafed93cec1619590157335eajvergaraCONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
6a67d144095c31bbafed93cec1619590157335eajvergaraCONFIGURE_OPTIONS += --with-bzip2=$(CONFIGURE_PREFIX)
6a67d144095c31bbafed93cec1619590157335eajvergaraCONFIGURE_OPTIONS += --with-readline=$(CONFIGURE_PREFIX)
6a67d144095c31bbafed93cec1619590157335eajvergara
6a67d144095c31bbafed93cec1619590157335eajvergaraLIBKSBA_MANIFEST = manifest-$(MACH)-libksba.depend
6a67d144095c31bbafed93cec1619590157335eajvergaraLIBASSUAN_MANIFEST = manifest-$(MACH)-libassuan.depend
6a67d144095c31bbafed93cec1619590157335eajvergaraGPGME_MANIFEST = manifest-$(MACH)-gpgme.depend
6a67d144095c31bbafed93cec1619590157335eajvergaraPINENTRY_MANIFEST = manifest-$(MACH)-pinentry.depend
6a67d144095c31bbafed93cec1619590157335eajvergara
a7d59bf59f3b588e70b86d920e0ab271496f4f06kenneth_suter# Work around pkgdepend bug which doesn't resolve dependencies from
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suter# the local workspace repo. Fortunately we only have to do this once.
6a67d144095c31bbafed93cec1619590157335eajvergaraDEPENDED += $(WS_TOP)/components/libksba/build/$(LIBKSBA_MANIFEST)
6a67d144095c31bbafed93cec1619590157335eajvergaraDEPENDED += $(WS_TOP)/components/libassuan/build/$(LIBASSUAN_MANIFEST)
6a67d144095c31bbafed93cec1619590157335eajvergaraDEPENDED += $(WS_TOP)/components/gpgme/build/$(GPGME_MANIFEST)
6a67d144095c31bbafed93cec1619590157335eajvergaraDEPENDED += $(WS_TOP)/components/pinentry/build/$(PINENTRY_MANIFEST)
6a67d144095c31bbafed93cec1619590157335eajvergara
6a67d144095c31bbafed93cec1619590157335eajvergaraPKG_PROTO_DIRS += $(WS_TOP)/components/libksba
2401d3c2af505789c7c3b860a43e973f27731243jvergaraPKG_PROTO_DIRS += $(WS_TOP)/components/libassuan
2401d3c2af505789c7c3b860a43e973f27731243jvergaraPKG_PROTO_DIRS += $(WS_TOP)/components/gpgme
2401d3c2af505789c7c3b860a43e973f27731243jvergaraPKG_PROTO_DIRS += $(WS_TOP)/components/pinentry
2401d3c2af505789c7c3b860a43e973f27731243jvergara
2401d3c2af505789c7c3b860a43e973f27731243jvergaraMAN8LIST = addgnupghome applygnupgdefaults
2401d3c2af505789c7c3b860a43e973f27731243jvergara
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suterCOMPONENT_POST_INSTALL_ACTION += \
2401d3c2af505789c7c3b860a43e973f27731243jvergara ( cd $(PROTOUSRSHARELOCALEDIR) ; \
5b3741e0620fd2baaa974cecc2c2d953bb7d4fbbkenneth_suter $(CP) -R 'en@boldquot' en )
faf590fc96c28da606c8802466a4d95bd940a495jvergara
2401d3c2af505789c7c3b860a43e973f27731243jvergaraREQUIRED_PACKAGES += compress/bzip2
2401d3c2af505789c7c3b860a43e973f27731243jvergaraREQUIRED_PACKAGES += library/desktop/gtk2
2401d3c2af505789c7c3b860a43e973f27731243jvergaraREQUIRED_PACKAGES += library/desktop/pango
a7d59bf59f3b588e70b86d920e0ab271496f4f06kenneth_suterREQUIRED_PACKAGES += library/glib2
2401d3c2af505789c7c3b860a43e973f27731243jvergaraREQUIRED_PACKAGES += library/pth
2401d3c2af505789c7c3b860a43e973f27731243jvergaraREQUIRED_PACKAGES += library/readline
2401d3c2af505789c7c3b860a43e973f27731243jvergaraREQUIRED_PACKAGES += library/security/libassuan
6a67d144095c31bbafed93cec1619590157335eajvergaraREQUIRED_PACKAGES += library/security/libgpg-error
6a67d144095c31bbafed93cec1619590157335eajvergaraREQUIRED_PACKAGES += library/security/libksba
0877596da3b90efc5fd39171cef80a2fb8ec395ekenneth_suterREQUIRED_PACKAGES += library/zlib
6a67d144095c31bbafed93cec1619590157335eajvergaraREQUIRED_PACKAGES += security/pinentry
0877596da3b90efc5fd39171cef80a2fb8ec395ekenneth_suterREQUIRED_PACKAGES += shell/ksh93
6a67d144095c31bbafed93cec1619590157335eajvergaraREQUIRED_PACKAGES += system/library/security/libgcrypt
6a67d144095c31bbafed93cec1619590157335eajvergaraREQUIRED_PACKAGES += system/library/usb/libusb
3e6ff045d382a718a951d6305c8910ffc268f893kenneth_suterREQUIRED_PACKAGES += web/curl
6a67d144095c31bbafed93cec1619590157335eajvergara