1 ################################################################################
5 ################################################################################
7 PINENTRY_VERSION
= 0.9.4
8 PINENTRY_SOURCE
= pinentry-
$(PINENTRY_VERSION
).
tar.bz2
9 PINENTRY_SITE
= ftp
://ftp.gnupg.org
/gcrypt
/pinentry
10 PINENTRY_LICENSE
= GPLv2
+
11 PINENTRY_LICENSE_FILES
= COPYING
12 PINENTRY_DEPENDENCIES
= \
13 $(if
$(BR2_PACKAGE_LIBICONV
),libiconv
) \
15 PINENTRY_CONF_OPTS
+= --without-libcap
# requires PAM
17 # pinentry uses some std::string functionality that needs C++11
18 # support when gcc >= 5.x. This should be removed when bumping
19 # pinentry, since newer versions no longer use std::string.
20 ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_5
),y
)
21 PINENTRY_CONF_ENV
= CXXFLAGS
="$(TARGET_CXXFLAGS) -std=gnu++11"
24 # build with X if available
25 ifeq ($(BR2_PACKAGE_XORG7
),y
)
26 PINENTRY_CONF_OPTS
+= --with-x
28 PINENTRY_CONF_OPTS
+= --without-x
31 ifeq ($(BR2_PACKAGE_LIBSECRET
),y
)
32 PINENTRY_CONF_OPTS
+= --enable-libsecret
33 PINENTRY_DEPENDENCIES
+= libsecret
35 PINENTRY_CONF_OPTS
+= --disable-libsecret
38 # pinentry-ncurses backend
39 ifeq ($(BR2_PACKAGE_PINENTRY_NCURSES
),y
)
40 PINENTRY_CONF_OPTS
+= --enable-ncurses
--with-ncurses-include-dir
=none
41 PINENTRY_DEPENDENCIES
+= ncurses
43 PINENTRY_CONF_OPTS
+= --disable-ncurses
46 # pinentry-gtk2 backend
47 ifeq ($(BR2_PACKAGE_PINENTRY_GTK2
),y
)
48 PINENTRY_CONF_OPTS
+= --enable-pinentry-gtk2
49 PINENTRY_DEPENDENCIES
+= libgtk2
51 PINENTRY_CONF_OPTS
+= --disable-pinentry-gtk2
54 # pinentry-qt4 backend
55 ifeq ($(BR2_PACKAGE_PINENTRY_QT4
),y
)
56 # -pthread needs to be passed for certain toolchains
57 # http://autobuild.buildroot.net/results/6be/6be109ccedec603a67cebdb31b55865dcce0e128/
58 PINENTRY_CONF_OPTS
+= LIBS
=-pthread MOC
=$(HOST_DIR
)/usr
/bin
/moc
59 PINENTRY_CONF_OPTS
+= --enable-pinentry-qt4
60 PINENTRY_DEPENDENCIES
+= qt
62 PINENTRY_CONF_OPTS
+= --disable-pinentry-qt4
65 $(eval
$(autotools-package
))