c4d83ee8096bce04040e57db39c6292762f3dcfe
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / pinentry / pinentry.mk
1 ################################################################################
2 #
3 # pinentry
4 #
5 ################################################################################
6
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
14
15 # build with X if available
16 ifeq ($(BR2_PACKAGE_XORG7),y)
17 PINENTRY_CONF_OPTS += --with-x
18 else
19 PINENTRY_CONF_OPTS += --without-x
20 endif
21
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
26 else
27 PINENTRY_CONF_OPTS += --disable-ncurses
28 endif
29
30 # pinentry-gtk2 backend
31 ifeq ($(BR2_PACKAGE_PINENTRY_GTK2),y)
32 PINENTRY_CONF_OPTS += --enable-pinentry-gtk2
33 PINENTRY_DEPENDENCIES += libgtk2
34 else
35 PINENTRY_CONF_OPTS += --disable-pinentry-gtk2
36 endif
37
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
45 else
46 PINENTRY_CONF_OPTS += --disable-pinentry-qt4
47 endif
48
49 $(eval $(autotools-package))