Makefile revision 913
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#
844N/A# Copyright (c) 2011, 2012, 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= pinentry
303N/ACOMPONENT_VERSION= 0.7.6
303N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
303N/ACOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/pinentry/
303N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:14670c18f4a042ffcbd7a937aa3f15de392816c56b472588383d8378f65b42ab
303N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/pinentry/$(COMPONENT_ARCHIVE)
303N/A
303N/Ainclude ../../make-rules/prep.mk
303N/Ainclude ../../make-rules/configure.mk
303N/Ainclude ../../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/A# void function cannot return value, unless it's GNU C
303N/ACFLAGS += -features=extinl,extensions
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/A# prevent libtool from removing these
303N/ALDFLAGS += -lsocket -lnsl -lpkcs11
303N/ALIBS = -lsocket -lnsl -lpkcs11
303N/A
303N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
303N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
303N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
303N/ACONFIGURE_ENV += LIBS="$(LIBS)"
303N/A
303N/ACONFIGURE_OPTIONS += --localstatedir=/var
303N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
303N/ACONFIGURE_OPTIONS += --enable-pinentry-curses
303N/ACONFIGURE_OPTIONS += --enable-pinentry-gtk2
303N/ACONFIGURE_OPTIONS += --disable-glibtest
303N/ACONFIGURE_OPTIONS += --disable-gtktest
303N/ACONFIGURE_OPTIONS += --enable-threading
303N/ACONFIGURE_OPTIONS += --disable-pinentry-gtk
303N/ACONFIGURE_OPTIONS += --disable-pinentry-qt
850N/ACONFIGURE_OPTIONS += --disable-ncurses
303N/A
303N/Abuild: $(BUILD_32)
303N/A
303N/Ainstall: $(INSTALL_32)
303N/A $(MKDIR) $(PROTOUSRLIBDIR)
303N/A if test -f $(PROTOUSRBINDIR)/pinentry-curses ; then \
303N/A $(MV) $(PROTOUSRBINDIR)/pinentry-curses $(PROTOUSRLIBDIR)/ ; fi
303N/A if test -f $(PROTOUSRBINDIR)/pinentry-gtk-2 ; then \
303N/A $(MV) $(PROTOUSRBINDIR)/pinentry-gtk-2 $(PROTOUSRLIBDIR)/ ; fi
303N/A cd $(PROTOUSRLIBDIR) && ln -sf pinentry-gtk-2 pinentry
303N/A
303N/Atest: $(NO_TESTS)
303N/A
303N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
303N/A
303N/Ainclude ../../make-rules/depend.mk
303N/A