Makefile revision 2899
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#
303N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
303N/A#
303N/Ainclude ../../make-rules/shared-macros.mk
303N/A
303N/ACOMPONENT_NAME= gnupg
303N/ACOMPONENT_VERSION= 2.0.22
303N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
303N/ACOMPONENT_PROJECT_URL= http://www.gnupg.org/
303N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
303N/ACOMPONENT_ARCHIVE_HASH= \
303N/A sha256:437d0ab259854359fc48aa8795af80cff4975e559c111c92c03d0bc91408e251
303N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gnupg/$(COMPONENT_ARCHIVE)
303N/ACOMPONENT_BUGDB= utility/gnupg
303N/A
303N/ATPNO= 17706
303N/A
303N/Ainclude ../../make-rules/prep.mk
303N/Ainclude ../../make-rules/configure.mk
303N/Ainclude ../../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
303N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
303N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
303N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
303N/A
303N/ACONFIGURE_OPTIONS += --localstatedir=/var
303N/ACONFIGURE_OPTIONS += --libexecdir=$(USRBINDIR)
303N/ACONFIGURE_OPTIONS += --datadir=$(CONFIGURE_PREFIX)/share
303N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
401N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
303N/ACONFIGURE_OPTIONS += --enable-nls
303N/ACONFIGURE_OPTIONS += --enable-largefile
303N/ACONFIGURE_OPTIONS += --disable-selinux-support
303N/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/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
303N/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
303N/AASLR_MODE = $(ASLR_ENABLE)
303N/A
303N/Abuild: $(BUILD_64)
303N/A
303N/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 ; \
done )
test: $(TEST_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk