shared-macros.mk: simplify java settings
[oi-userland.git] / components / sysutils / pinentry / Makefile
blob40941ab0ca07c4a900f0cb194ade274b8d418f0f
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2013, Colin Ellis. All rights reserved.
22 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
23 # Copyright (c) 2021, Andreas Wacknitz
26 include ../../../make-rules/shared-macros.mk
28 COMPONENT_NAME= pinentry
29 COMPONENT_VERSION= 1.3.1
30 COMPONENT_REVISION= 2
31 COMPONENT_SUMMARY= A small utility for entering passwords.
32 COMPONENT_DESCRIPTION= A small collection of dialog programs that allow GnuPG to read passphrases and PIN numbers in a secure manner.
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
34 COMPONENT_PROJECT_URL= https://www.gnupg.org/related_software/pinentry/
35 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
36 COMPONENT_ARCHIVE_HASH= sha256:bc72ee27c7239007ab1896c3c2fae53b076e2c9bd2483dc2769a16902bce8c04
37 COMPONENT_ARCHIVE_URL= https://www.gnupg.org/ftp/gcrypt/pinentry/$(COMPONENT_ARCHIVE)
38 COMPONENT_FMRI= security/pinentry
39 COMPONENT_CLASSIFICATION= Applications/System Utilities
40 COMPONENT_LICENSE= GPLv2
41 COMPONENT_LICENSE_FILE= COPYING
43 TEST_TARGET= $(NO_TESTS)
44 include $(WS_MAKE_RULES)/common.mk
46 PATH= $(PATH.gnu)
48 CFLAGS += $(CPP_LARGEFILES)
49 CFLAGS += $(XPG6MODE)
50 CFLAGS += $(CPP_POSIX)
51 CFLAGS += $(CPP_C99_EXTENDED_MATH)
52 CFLAGS += $(gcc_C99_ENABLE)
54 # prevent libtool from removing these
55 LDFLAGS += -lsocket -lnsl -lpkcs11
56 LIBS = -lsocket -lnsl -lpkcs11
58 CONFIGURE_ENV += INSTALL="$(INSTALL)"
59 CONFIGURE_ENV += LIBS="$(LIBS)"
60 # Following line is required if FLTK pinentry is to be shipped
61 # CONFIGURE_ENV += FLTK_CONFIG="$(USRBINDIR.$(BITS))/fltk-config"
63 CONFIGURE_OPTIONS += --enable-libsecret
64 CONFIGURE_OPTIONS += --enable-pinentry-curses
65 CONFIGURE_OPTIONS += --enable-ncurses
66 CONFIGURE_OPTIONS += --enable-pinentry-gtk2
67 CONFIGURE_OPTIONS += --disable-pinentry-efl
68 CONFIGURE_OPTIONS += --disable-pinentry-emacs
69 CONFIGURE_OPTIONS += --disable-pinentry-fltk
70 CONFIGURE_OPTIONS += --disable-pinentry-gnome3
71 CONFIGURE_OPTIONS += --disable-pinentry-qt
73 install: $(INSTALL_64)
74 $(MKDIR) $(PROTOUSRLIBEXECDIR)
75 if test -f $(PROTOUSRBINDIR)/pinentry-curses ; then \
76 $(MV) $(PROTOUSRBINDIR)/pinentry-curses $(PROTOUSRLIBEXECDIR)/ ; fi
77 if test -f $(PROTOUSRBINDIR)/pinentry-gtk-2 ; then \
78 $(MV) $(PROTOUSRBINDIR)/pinentry-gtk-2 $(PROTOUSRLIBEXECDIR)/ ; fi
79 if test -f $(PROTOUSRBINDIR)/pinentry-emacs ; then \
80 $(MV) $(PROTOUSRBINDIR)/pinentry-emacs $(PROTOUSRLIBEXECDIR)/ ; fi
81 cd $(PROTOUSRLIBEXECDIR) && ln -sf pinentry-gtk-2 pinentry
83 # Auto-generated dependencies
84 REQUIRED_PACKAGES += library/desktop/gtk2
85 REQUIRED_PACKAGES += library/glib2
86 REQUIRED_PACKAGES += library/libsecret
87 REQUIRED_PACKAGES += library/ncurses
88 REQUIRED_PACKAGES += library/security/libassuan
89 REQUIRED_PACKAGES += library/security/libgpg-error
90 REQUIRED_PACKAGES += system/library