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#
5680N/A
303N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 64
303N/Ainclude ../../make-rules/shared-macros.mk
303N/A
5680N/APATH = $(GNUBIN):$(USRBINDIR)
303N/A
303N/ACOMPONENT_NAME= pinentry
6236N/ACOMPONENT_VERSION= 0.9.7
303N/ACOMPONENT_PROJECT_URL= http://www.gnupg.org/related_software/pinentry/
6236N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
844N/ACOMPONENT_ARCHIVE_HASH= \
6236N/A sha256:6398208394972bbf897c3325780195584682a0d0c164ca5a0da35b93b1e4e7b2
303N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnupg.org/gcrypt/pinentry/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/gnupg
303N/A
6236N/ATPNO= 26271
2899N/A
6371N/A# Requires updated version of gtk2, not available on S11.
6371N/Aifeq ($(BUILD_TYPE), evaluation)
6371N/ABUILD_64=
6371N/AINSTALL_64=
6371N/APUBLISH_STAMP=
6371N/Aendif
6371N/A
5680N/AINSTALL_TARGET=
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.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
6300N/A# suppress warning: "-features=typeof ignored when used with -Xc"
6300N/ACFLAGS.studio += -features=no%typeof
6300N/A
303N/A# -xinline=%auto -- we like inlining where appropriate
5680N/ACFLAGS.studio += -xinline=%auto
303N/A
303N/A# -xbuiltin=%none -- builtins have been known to be buggy
5680N/ACFLAGS.studio += -xbuiltin=%none
303N/A
303N/A# void function cannot return value, unless it's GNU C
5680N/ACFLAGS.studio += -features=extinl,extensions
303N/A
303N/ACFLAGS += $(CPP_LARGEFILES)
303N/ACFLAGS += $(XPG6MODE)
303N/ACFLAGS += $(CPP_POSIX)
303N/ACFLAGS += $(CPP_C99_EXTENDED_MATH)
5680N/ACFLAGS += $(CC_PIC)
303N/A
303N/A# prevent libtool from removing these
5680N/Aifeq ($(OS_VERSION),5.11)
5680N/ALDFLAGS += -lsocket -lnsl
5680N/ALIBS += -lsocket -lnsl
5680N/Aendif
303N/A
5680N/ALDFLAGS += -lpkcs11
5680N/ALIBS += -lpkcs11
5680N/A
5680N/A
303N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
303N/ACONFIGURE_ENV += LIBS="$(LIBS)"
303N/A
5680N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
303N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
303N/ACONFIGURE_OPTIONS += --enable-pinentry-curses
303N/ACONFIGURE_OPTIONS += --enable-pinentry-gtk2
303N/ACONFIGURE_OPTIONS += --disable-pinentry-qt
850N/ACONFIGURE_OPTIONS += --disable-ncurses
6300N/ACONFIGURE_OPTIONS += --disable-libsecret
303N/A
2465N/Ainstall: $(INSTALL_64)
6371N/Aifneq ($(BUILD_TYPE), evaluation)
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
6371N/Aendif
303N/A
3817N/AREQUIRED_PACKAGES += library/desktop/gtk2
3817N/AREQUIRED_PACKAGES += library/glib2
6236N/AREQUIRED_PACKAGES += library/security/libassuan
6236N/AREQUIRED_PACKAGES += library/security/libgpg-error