Makefile revision 1273
172N/A#
172N/A# CDDL HEADER START
172N/A#
172N/A# The contents of this file are subject to the terms of the
172N/A# Common Development and Distribution License (the "License").
172N/A# You may not use this file except in compliance with the License.
172N/A#
172N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
172N/A# or http://www.opensolaris.org/os/licensing.
172N/A# See the License for the specific language governing permissions
172N/A# and limitations under the License.
172N/A#
172N/A# When distributing Covered Code, include this CDDL HEADER in each
172N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
172N/A# If applicable, add the following below this CDDL HEADER, with the
172N/A# fields enclosed by brackets "[]" replaced with your own identifying
172N/A# information: Portions Copyright [yyyy] [name of copyright owner]
172N/A#
172N/A# CDDL HEADER END
172N/A#
172N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
172N/A#
3925N/Ainclude ../../make-rules/shared-macros.mk
172N/A
172N/APATH = /usr/gnu/bin:/usr/bin
172N/A
172N/ACOMPONENT_NAME= pinentry
1273N/ACOMPONENT_VERSION= 0.7.6
3573N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4211N/ACOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/pinentry/
3925N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
3925N/ACOMPONENT_ARCHIVE_HASH= \
3925N/A sha256:14670c18f4a042ffcbd7a937aa3f15de392816c56b472588383d8378f65b42ab
618N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/pinentry/$(COMPONENT_ARCHIVE)
3573N/ACOMPONENT_BUGDB= utility/gnupg
1273N/A
172N/Ainclude ../../make-rules/prep.mk
3925N/Ainclude ../../make-rules/configure.mk
4211N/Ainclude ../../make-rules/ips.mk
3925N/A
3925N/APATCH_LEVEL = 0
1273N/A
3573N/A# Enable C99 mode + -Xc for its additional warnings.
3347N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
172N/A
172N/A# -xinline=%auto -- we like inlining where appropriate
5009N/ACFLAGS += -xinline=%auto
5009N/A
3996N/A# -xbuiltin=%none -- builtins have been known to be buggy
3996N/ACFLAGS += -xbuiltin=%none
3996N/A
172N/A# void function cannot return value, unless it's GNU C
181N/ACFLAGS += -features=extinl,extensions
181N/A
181N/ACFLAGS += $(CPP_LARGEFILES)
172N/ACFLAGS += $(XPG6MODE)
172N/ACFLAGS += $(CPP_POSIX)
172N/ACFLAGS += $(CPP_C99_EXTENDED_MATH)
172N/ACFLAGS += $(studio_PIC)
172N/A
172N/A# prevent libtool from removing these
172N/ALDFLAGS += -lsocket -lnsl -lpkcs11
172N/ALIBS = -lsocket -lnsl -lpkcs11
172N/A
172N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
172N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
172N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
172N/ACONFIGURE_ENV += LIBS="$(LIBS)"
172N/A
172N/ACONFIGURE_OPTIONS += --localstatedir=/var
172N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
181N/ACONFIGURE_OPTIONS += --enable-pinentry-curses
172N/ACONFIGURE_OPTIONS += --enable-pinentry-gtk2
3996N/ACONFIGURE_OPTIONS += --disable-glibtest
3996N/ACONFIGURE_OPTIONS += --disable-gtktest
3996N/ACONFIGURE_OPTIONS += --enable-threading
3996N/ACONFIGURE_OPTIONS += --disable-pinentry-gtk
3996N/ACONFIGURE_OPTIONS += --disable-pinentry-qt
3996N/ACONFIGURE_OPTIONS += --disable-ncurses
3996N/A
3996N/Abuild: $(BUILD_32)
install: $(INSTALL_32)
$(MKDIR) $(PROTOUSRLIBDIR)
if test -f $(PROTOUSRBINDIR)/pinentry-curses ; then \
$(MV) $(PROTOUSRBINDIR)/pinentry-curses $(PROTOUSRLIBDIR)/ ; fi
if test -f $(PROTOUSRBINDIR)/pinentry-gtk-2 ; then \
$(MV) $(PROTOUSRBINDIR)/pinentry-gtk-2 $(PROTOUSRLIBDIR)/ ; fi
cd $(PROTOUSRLIBDIR) && ln -sf pinentry-gtk-2 pinentry
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk