Makefile revision 2375
0767cb98df68c7ec270b1b364b2796ea5e2ff28cEthindra Ramamurthy# CDDL HEADER START
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# The contents of this file are subject to the terms of the
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# Common Development and Distribution License (the "License").
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# You may not use this file except in compliance with the License.
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# or http://www.opensolaris.org/os/licensing.
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# See the License for the specific language governing permissions
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# and limitations under the License.
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# When distributing Covered Code, include this CDDL HEADER in each
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# If applicable, add the following below this CDDL HEADER, with the
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# fields enclosed by brackets "[]" replaced with your own identifying
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# information: Portions Copyright [yyyy] [name of copyright owner]
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# CDDL HEADER END
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthyinclude ../../make-rules/shared-macros.mk
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCOMPONENT_PROJECT_URL= http://www.gnupg.org/
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy sha256:437d0ab259854359fc48aa8795af80cff4975e559c111c92c03d0bc91408e251
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gnupg/$(COMPONENT_ARCHIVE)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# Enable C99 mode + -Xc for its additional warnings.
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthystudio_C99MODE = -Xc $(studio_C99_ENABLE)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# -xinline=%auto -- we like inlining where appropriate
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# -xbuiltin=%none -- builtins have been known to be buggy
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# If we pass -lc, -mt won't link with -lthread
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# (which is what it does by default, and we don't
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# want that, because we use POSIX threads).
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --localstatedir=/var
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --libexecdir=$(USRBINDIR)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --datadir=$(CONFIGURE_PREFIX)/share
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --disable-selinux-support
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --with-pinentry-pgm=$(CONFIGURE_PREFIX)/lib/pinentry
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --with-libassuan-prefix=$(CONFIGURE_PREFIX)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --with-ksba-prefix=$(CONFIGURE_PREFIX)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --with-pth-prefix=$(CONFIGURE_PREFIX)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --with-libcurl=$(CONFIGURE_PREFIX)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --with-bzip2=$(CONFIGURE_PREFIX)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyCONFIGURE_OPTIONS += --with-readline=$(CONFIGURE_PREFIX)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyLIBKSBA_MANIFEST = manifest-$(MACH)-libksba.depend
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyLIBASSUAN_MANIFEST = manifest-$(MACH)-libassuan.depend
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyGPGME_MANIFEST = manifest-$(MACH)-gpgme.depend
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyPINENTRY_MANIFEST = manifest-$(MACH)-pinentry.depend
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# Work around pkgdepend bug which doesn't resolve dependencies from
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy# the local workspace repo. Fortunately we only have to do this once.
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyDEPENDED += $(WS_TOP)/components/libksba/build/$(LIBKSBA_MANIFEST)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyDEPENDED += $(WS_TOP)/components/libassuan/build/$(LIBASSUAN_MANIFEST)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyDEPENDED += $(WS_TOP)/components/gpgme/build/$(GPGME_MANIFEST)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyDEPENDED += $(WS_TOP)/components/pinentry/build/$(PINENTRY_MANIFEST)
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyPKG_PROTO_DIRS += $(WS_TOP)/components/libksba
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyPKG_PROTO_DIRS += $(WS_TOP)/components/libassuan
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyPKG_PROTO_DIRS += $(WS_TOP)/components/gpgme
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyPKG_PROTO_DIRS += $(WS_TOP)/components/pinentry
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra RamamurthyMAN8LIST = addgnupghome applygnupgdefaults
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy if test -d man8 ; then \
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy list1='$(MAN8LIST)' ; for f in $$list1; do \
3b280fcbe30cbc624c426ebb783da707cdda9245Ethindra Ramamurthy if test -f $$f.8 ; then \