Makefile revision 844
2058N/A#
2058N/A# CDDL HEADER START
2058N/A#
2058N/A# The contents of this file are subject to the terms of the
2058N/A# Common Development and Distribution License (the "License").
2058N/A# You may not use this file except in compliance with the License.
2058N/A#
2058N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2058N/A# or http://www.opensolaris.org/os/licensing.
2058N/A# See the License for the specific language governing permissions
2058N/A# and limitations under the License.
2058N/A#
2058N/A# When distributing Covered Code, include this CDDL HEADER in each
2058N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2058N/A# If applicable, add the following below this CDDL HEADER, with the
2058N/A# fields enclosed by brackets "[]" replaced with your own identifying
2058N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2058N/A#
2058N/A# CDDL HEADER END
2058N/A#
3661N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
2058N/A#
2058N/Ainclude ../../make-rules/shared-macros.mk
2058N/A
2058N/APATH = /usr/gnu/bin:/usr/bin
2058N/A
2058N/ACOMPONENT_NAME= gpgme
2058N/ACOMPONENT_VERSION= 1.1.8
2058N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2058N/ACOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/gpgme/
2058N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
2058N/ACOMPONENT_ARCHIVE_HASH= \
2058N/A sha256:0f73a219e0b389f25c8d9b563eb8e0a9ffd9dd038d91b572eaf0ea33beff05e2
2058N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/gpgme/$(COMPONENT_ARCHIVE)
3661N/A
3661N/Ainclude ../../make-rules/prep.mk
2058N/Ainclude ../../make-rules/configure.mk
2058N/Ainclude ../../make-rules/ips.mk
2058N/A
2058N/APATCH_LEVEL = 0
2058N/A
2058N/A# Enable C99 mode + -Xc for its additional warnings.
2058N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
2058N/A
2058N/A# -xinline=%auto -- we like inlining where appropriate
2058N/ACFLAGS += -xinline=%auto
2058N/A
2058N/A# -xbuiltin=%none -- builtins have been known to be buggy
2058N/ACFLAGS += -xbuiltin=%none
2058N/A
2058N/ACFLAGS += $(CPP_LARGEFILES)
2058N/ACFLAGS += $(XPG6MODE)
2058N/ACFLAGS += $(CPP_POSIX)
2058N/ACFLAGS += $(CPP_C99_EXTENDED_MATH)
2058N/ACFLAGS += $(studio_PIC)
2058N/A
2058N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
CONFIGURE_ENV += INSTALL="$(INSTALL)"
CONFIGURE_OPTIONS += --localstatedir=/var
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
CONFIGURE_OPTIONS += --enable-shared
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --with-gpg-error-prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --enable-largefile
CONFIGURE_OPTIONS += --with-pth=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --disable-gpg-test
CONFIGURE_OPTIONS += --disable-gpgsm-test
CONFIGURE_OPTIONS += --disable-gpgconf-test
CONFIGURE_OPTIONS += --with-gpg=$(USRBINDIR)/gpg2
CONFIGURE_OPTIONS += --with-gpgsm=$(USRBINDIR)/gpgsm
CONFIGURE_OPTIONS += --with-gpgconf=$(USRBINDIR)/gpgconf
CONFIGURE_OPTIONS += --with-pic
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk