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#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
303N/A#
303N/Ainclude ../../make-rules/shared-macros.mk
303N/A
303N/APATH = /usr/gnu/bin:/usr/bin
303N/A
303N/ACOMPONENT_NAME= gpgme
4663N/ACOMPONENT_VERSION= 1.5.3
303N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
303N/ACOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/gpgme/
303N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
844N/ACOMPONENT_ARCHIVE_HASH= \
4663N/A sha256:0db040c5b07e69cfe9a0b4566c8e90151ebacfe122c97c452f11386654aefcc9
303N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gpgme/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/gnupg
303N/A
4663N/ATPNO= 21167
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
303N/A
303N/APATCH_LEVEL = 0
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/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
303N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
303N/A
303N/ACONFIGURE_OPTIONS += --localstatedir=/var
303N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
303N/ACONFIGURE_OPTIONS += --enable-shared
303N/ACONFIGURE_OPTIONS += --disable-static
4663N/ACONFIGURE_OPTIONS += --disable-silent-rules
303N/ACONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
303N/ACONFIGURE_OPTIONS += --enable-largefile
4663N/ACONFIGURE_OPTIONS += --enable-gpg-test
4663N/ACONFIGURE_OPTIONS += --enable-gpgsm-test
4663N/ACONFIGURE_OPTIONS += --enable-gpgconf-test
4663N/ACONFIGURE_OPTIONS += --with-libgpg-error-prefix=$(CONFIGURE_PREFIX)
4663N/ACONFIGURE_OPTIONS += --with-libassuan-prefix=$(CONFIGURE_PREFIX)
303N/ACONFIGURE_OPTIONS += --with-pic
303N/A
4663N/AASLR_MODE = $(ASLR_ENABLE)
4663N/A
303N/Abuild: $(BUILD_32_and_64)
303N/A
303N/Ainstall: $(INSTALL_32_and_64)
303N/A
4663N/A# Although building and running the GpgME tests is enabled, GpgME's
4663N/A# Test Harness is not suitable for running in an automated test
4663N/A# environment. The GpgME tests require interactive, manual input
4663N/A# from the tty as well as system configuration changes.
4663N/A# The GpgME Test Harness can only be run manually, and interactively
4663N/A# from a terminal.
4663N/Atest: $(NO_TESTS)
3996N/A
3996N/AREQUIRED_PACKAGES += library/security/libgpg-error
4663N/AREQUIRED_PACKAGES += library/security/libassuan
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/linker