Makefile revision 2319
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# CDDL HEADER START
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User#
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# or http://www.opensolaris.org/os/licensing.
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# See the License for the specific language governing permissions
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e108f2ec640e1acb54999c0ade58af606149956dTinderbox User# If applicable, add the following below this CDDL HEADER, with the
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User#
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# CDDL HEADER END
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User#
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User#
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox Userinclude ../../make-rules/shared-macros.mk
e108f2ec640e1acb54999c0ade58af606149956dTinderbox User
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCOMPONENT_NAME= gnupg
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCOMPONENT_VERSION= 2.0.22
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCOMPONENT_PROJECT_URL= http://www.gnupg.org/
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCOMPONENT_ARCHIVE_HASH= \
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User sha256:437d0ab259854359fc48aa8795af80cff4975e559c111c92c03d0bc91408e251
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gnupg/$(COMPONENT_ARCHIVE)
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCOMPONENT_BUGDB= utility/gnupg
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox Userinclude ../../make-rules/prep.mk
dec590a3deb8e87380a8bd3a77d535dba3729bf6Tinderbox Userinclude ../../make-rules/configure.mk
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox Userinclude ../../make-rules/ips.mk
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# Enable C99 mode + -Xc for its additional warnings.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userstudio_C99MODE = -Xc $(studio_C99_ENABLE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# -xinline=%auto -- we like inlining where appropriate
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCFLAGS += -xinline=%auto
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# -xbuiltin=%none -- builtins have been known to be buggy
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCFLAGS += -xbuiltin=%none
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCFLAGS += $(CPP_LARGEFILES)
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCFLAGS += $(XPG6MODE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCFLAGS += $(CPP_POSIX)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCFLAGS += $(CPP_C99_EXTENDED_MATH)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCFLAGS += $(studio_PIC)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# If we pass -lc, -mt won't link with -lthread
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# (which is what it does by default, and we don't
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# want that, because we use POSIX threads).
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserLDFLAGS += -lc -z defs
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserLD_OPTIONS += -z defs
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
9d557856c2a19ec95ee73245f60a92f8675cf5baTinderbox UserCONFIGURE_ENV += INSTALL="$(INSTALL)"
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCONFIGURE_OPTIONS += --localstatedir=/var
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCONFIGURE_OPTIONS += --libexecdir=$(USRBINDIR)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --datadir=$(CONFIGURE_PREFIX)/share
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS += --sysconfdir=/etc
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS += --enable-nls
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --enable-largefile
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCONFIGURE_OPTIONS += --disable-selinux-support
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS += --with-pinentry-pgm=$(CONFIGURE_PREFIX)/lib/pinentry
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS += --with-libassuan-prefix=$(CONFIGURE_PREFIX)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --with-ksba-prefix=$(CONFIGURE_PREFIX)
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCONFIGURE_OPTIONS += --with-pth-prefix=$(CONFIGURE_PREFIX)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS += --with-libcurl=$(CONFIGURE_PREFIX)
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserCONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserCONFIGURE_OPTIONS += --with-bzip2=$(CONFIGURE_PREFIX)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS += --with-readline=$(CONFIGURE_PREFIX)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLIBKSBA_MANIFEST = manifest-$(MACH)-libksba.depend
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserLIBASSUAN_MANIFEST = manifest-$(MACH)-libassuan.depend
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserGPGME_MANIFEST = manifest-$(MACH)-gpgme.depend
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserPINENTRY_MANIFEST = manifest-$(MACH)-pinentry.depend
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# Work around pkgdepend bug which doesn't resolve dependencies from
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# the local workspace repo. Fortunately we only have to do this once.
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserDEPENDED += $(WS_TOP)/components/libksba/build/$(LIBKSBA_MANIFEST)
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserDEPENDED += $(WS_TOP)/components/libassuan/build/$(LIBASSUAN_MANIFEST)
e108f2ec640e1acb54999c0ade58af606149956dTinderbox UserDEPENDED += $(WS_TOP)/components/gpgme/build/$(GPGME_MANIFEST)
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox UserDEPENDED += $(WS_TOP)/components/pinentry/build/$(PINENTRY_MANIFEST)
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserPKG_PROTO_DIRS += $(WS_TOP)/components/libksba
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserPKG_PROTO_DIRS += $(WS_TOP)/components/libassuan
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserPKG_PROTO_DIRS += $(WS_TOP)/components/gpgme
e108f2ec640e1acb54999c0ade58af606149956dTinderbox UserPKG_PROTO_DIRS += $(WS_TOP)/components/pinentry
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserMAN8LIST = addgnupghome applygnupgdefaults
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox Userbuild: $(BUILD_32)
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox Userinstall: $(INSTALL_32)
5f0c46ca5f68c2148c735aa52d7541baac249c34Tinderbox User ( cd $(PROTOUSRSHARELOCALEDIR) ; \
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User $(CP) -R 'en@boldquot' en )
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User ( cd $(PROTOUSRSHAREMANDIR) ; \
if test -d man8 ; then \
$(MV) man8 man1m ; fi )
( cd $(PROTOUSRSHAREMANDIR)/man1m ; \
list1='$(MAN8LIST)' ; for f in $$list1; do \
if test -f $$f.8 ; then \
$(MV) $$f.8 $$f.1m ; fi ; \
done )
test: $(TEST_32)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk