Makefile revision 445
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#
3704N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2058N/A#
2058N/Ainclude ../../make-rules/shared-macros.mk
2058N/A
3704N/APATH = /usr/gnu/bin:/usr/bin
2058N/A
2058N/ACOMPONENT_NAME= pinentry
2058N/ACOMPONENT_VERSION= 0.7.6
2058N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2058N/ACOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/pinentry/
3661N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2058N/ACOMPONENT_ARCHIVE_HASH= sha1:0c525ce81e5589bc9a4f2eb72705bed2b3e9a8b9
2058N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/pinentry/$(COMPONENT_ARCHIVE)
2058N/A
2058N/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/A# void function cannot return value, unless it's GNU C
2058N/ACFLAGS += -features=extinl,extensions
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/A# prevent libtool from removing these
3704N/ALDFLAGS += -lsocket -lnsl -lpkcs11
3704N/ALIBS = -lsocket -lnsl -lpkcs11
3704N/A
3704N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
2058N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
2058N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
2058N/ACONFIGURE_ENV += LIBS="$(LIBS)"
2058N/A
2058N/ACONFIGURE_OPTIONS += --localstatedir=/var
2058N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
3704N/ACONFIGURE_OPTIONS += --enable-pinentry-curses
CONFIGURE_OPTIONS += --enable-pinentry-gtk2
CONFIGURE_OPTIONS += --disable-glibtest
CONFIGURE_OPTIONS += --disable-gtktest
CONFIGURE_OPTIONS += --enable-threading
CONFIGURE_OPTIONS += --disable-pinentry-gtk
CONFIGURE_OPTIONS += --disable-pinentry-qt
build: $(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