1 ################################################################################
5 ################################################################################
7 PINENTRY_VERSION = 0.9.0
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 = $(if $(BR2_PACKAGE_LIBICONV),libiconv)
13 PINENTRY_CONF_OPTS += --without-libcap # requires PAM
15 # build with X if available
16 ifeq ($(BR2_PACKAGE_XORG7),y)
17 PINENTRY_CONF_OPTS += --with-x
19 PINENTRY_CONF_OPTS += --without-x
22 # pinentry-ncurses backend
23 ifeq ($(BR2_PACKAGE_PINENTRY_NCURSES),y)
24 PINENTRY_CONF_OPTS += --enable-ncurses --with-ncurses-include-dir=none
25 PINENTRY_DEPENDENCIES += ncurses
27 PINENTRY_CONF_OPTS += --disable-ncurses
30 # pinentry-gtk2 backend
31 ifeq ($(BR2_PACKAGE_PINENTRY_GTK2),y)
32 PINENTRY_CONF_OPTS += --enable-pinentry-gtk2
33 PINENTRY_DEPENDENCIES += libgtk2
35 PINENTRY_CONF_OPTS += --disable-pinentry-gtk2
38 # pinentry-qt4 backend
39 ifeq ($(BR2_PACKAGE_PINENTRY_QT4),y)
40 # -pthread needs to be passed for certain toolchains
41 # http://autobuild.buildroot.net/results/6be/6be109ccedec603a67cebdb31b55865dcce0e128/
42 PINENTRY_CONF_OPTS += LIBS=-pthread
43 PINENTRY_CONF_OPTS += --enable-pinentry-qt4
44 PINENTRY_DEPENDENCIES += qt
46 PINENTRY_CONF_OPTS += --disable-pinentry-qt4
49 $(eval $(autotools-package))