Makefile revision 3817
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# CDDL HEADER START
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# The contents of this file are subject to the terms of the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Common Development and Distribution License (the "License").
843e19887f64dde75055cf8842fc4db2171eff45johnlev# You may not use this file except in compliance with the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
843e19887f64dde75055cf8842fc4db2171eff45johnlev# or http://www.opensolaris.org/os/licensing.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# See the License for the specific language governing permissions
843e19887f64dde75055cf8842fc4db2171eff45johnlev# and limitations under the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# When distributing Covered Code, include this CDDL HEADER in each
843e19887f64dde75055cf8842fc4db2171eff45johnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# If applicable, add the following below this CDDL HEADER, with the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# fields enclosed by brackets "[]" replaced with your own identifying
843e19887f64dde75055cf8842fc4db2171eff45johnlev# information: Portions Copyright [yyyy] [name of copyright owner]
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# CDDL HEADER END
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
24fe0b3bf671e123467ce1df0b67cadd3614c8e4jmcp#
843e19887f64dde75055cf8842fc4db2171eff45johnlevinclude ../../make-rules/shared-macros.mk
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevPATH = /usr/gnu/bin:/usr/bin
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_NAME= gpgme
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_VERSION= 1.1.8
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/gpgme/
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_ARCHIVE_HASH= \
843e19887f64dde75055cf8842fc4db2171eff45johnlev sha256:0f73a219e0b389f25c8d9b563eb8e0a9ffd9dd038d91b572eaf0ea33beff05e2
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gpgme/$(COMPONENT_ARCHIVE)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCOMPONENT_BUGDB= utility/gnupg
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevTPNO= 8637
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevinclude $(WS_MAKE_RULES)/prep.mk
843e19887f64dde75055cf8842fc4db2171eff45johnlevinclude $(WS_MAKE_RULES)/configure.mk
843e19887f64dde75055cf8842fc4db2171eff45johnlevinclude $(WS_MAKE_RULES)/ips.mk
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevPATCH_LEVEL = 0
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Enable C99 mode + -Xc for its additional warnings.
843e19887f64dde75055cf8842fc4db2171eff45johnlevstudio_C99MODE = -Xc $(studio_C99_ENABLE)
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev# -xinline=%auto -- we like inlining where appropriate
843e19887f64dde75055cf8842fc4db2171eff45johnlevCFLAGS += -xinline=%auto
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev# -xbuiltin=%none -- builtins have been known to be buggy
843e19887f64dde75055cf8842fc4db2171eff45johnlevCFLAGS += -xbuiltin=%none
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevCFLAGS += $(CPP_LARGEFILES)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCFLAGS += $(XPG6MODE)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCFLAGS += $(CPP_POSIX)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCFLAGS += $(CPP_C99_EXTENDED_MATH)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCFLAGS += $(studio_PIC)
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_ENV += INSTALL="$(INSTALL)"
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --localstatedir=/var
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --enable-shared
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --disable-static
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --enable-largefile
48bc00d6814e04ff3edb32cafe7d1bc580baff68jmcpCONFIGURE_OPTIONS += --with-pth=$(CONFIGURE_PREFIX)
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --disable-gpg-test
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --disable-gpgsm-test
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --disable-gpgconf-test
24fe0b3bf671e123467ce1df0b67cadd3614c8e4jmcpCONFIGURE_OPTIONS += --with-gpg=$(USRBINDIR)/gpg2
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --with-gpgsm=$(USRBINDIR)/gpgsm
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --with-gpgconf=$(USRBINDIR)/gpgconf
843e19887f64dde75055cf8842fc4db2171eff45johnlevCONFIGURE_OPTIONS += --with-pic
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevASLR_MODE = $(ASLR_NOT_APPLICABLE)
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevconfigure: $(CONFIGURE_32_and_64)
843e19887f64dde75055cf8842fc4db2171eff45johnlev
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
REQUIRED_PACKAGES += library/pth
REQUIRED_PACKAGES += library/security/libgpg-error
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/linker