Makefile revision 3477
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra# CDDL HEADER START
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo Mitra# The contents of this file are subject to the terms of the
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo Mitra# Common Development and Distribution License (the "License").
84765788c559bfdead67172a79759ac60c77231bTilo Mitra# You may not use this file except in compliance with the License.
8f0dc35284b10842ef7c44ffc3d410227804fcedTilo Mitra# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo Mitra# See the License for the specific language governing permissions
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo Mitra# and limitations under the License.
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo Mitra# When distributing Covered Code, include this CDDL HEADER in each
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra# If applicable, add the following below this CDDL HEADER, with the
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra# fields enclosed by brackets "[]" replaced with your own identifying
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra# information: Portions Copyright [yyyy] [name of copyright owner]
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo Mitra# CDDL HEADER END
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo Mitra# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo MitraCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra sha256:437d0ab259854359fc48aa8795af80cff4975e559c111c92c03d0bc91408e251
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gnupg/$(COMPONENT_ARCHIVE)
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo Mitra# Enable C99 mode + -Xc for its additional warnings.
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo Mitra# -xinline=%auto -- we like inlining where appropriate
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra# -xbuiltin=%none -- builtins have been known to be buggy
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra# If we pass -lc, -mt won't link with -lthread
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra# (which is what it does by default, and we don't
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra# want that, because we use POSIX threads).
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraCONFIGURE_OPTIONS += --datadir=$(CONFIGURE_PREFIX)/share
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraCONFIGURE_OPTIONS += --with-pinentry-pgm=$(CONFIGURE_PREFIX)/lib/pinentry
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo MitraCONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraCONFIGURE_OPTIONS += --with-libassuan-prefix=$(CONFIGURE_PREFIX)
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo MitraCONFIGURE_OPTIONS += --with-ksba-prefix=$(CONFIGURE_PREFIX)
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo MitraCONFIGURE_OPTIONS += --with-pth-prefix=$(CONFIGURE_PREFIX)
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo MitraCONFIGURE_OPTIONS += --with-libcurl=$(CONFIGURE_PREFIX)
1b94590fd02ca19669dfb4b5deb563a290459d81Tilo MitraCONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraCONFIGURE_OPTIONS += --with-libintl-prefix=$(CONFIGURE_PREFIX)
ff8b03787b79f0f9ab8c1a7fac736c5e47d02648Tilo MitraCONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraCONFIGURE_OPTIONS += --with-bzip2=$(CONFIGURE_PREFIX)
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraCONFIGURE_OPTIONS += --with-readline=$(CONFIGURE_PREFIX)
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraLIBKSBA_MANIFEST = manifest-$(MACH)-libksba.depend
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraLIBASSUAN_MANIFEST = manifest-$(MACH)-libassuan.depend
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraPINENTRY_MANIFEST = manifest-$(MACH)-pinentry.depend
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra# Work around pkgdepend bug which doesn't resolve dependencies from
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra# the local workspace repo. Fortunately we only have to do this once.
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraDEPENDED += $(WS_TOP)/components/libksba/build/$(LIBKSBA_MANIFEST)
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraDEPENDED += $(WS_TOP)/components/libassuan/build/$(LIBASSUAN_MANIFEST)
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraDEPENDED += $(WS_TOP)/components/gpgme/build/$(GPGME_MANIFEST)
a31d4503481b752a9ea058cce3d9b025d040a87cTilo MitraDEPENDED += $(WS_TOP)/components/pinentry/build/$(PINENTRY_MANIFEST)
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra if test -d man8 ; then \
a31d4503481b752a9ea058cce3d9b025d040a87cTilo Mitra if test -f $$f.8 ; then \