2014-06-06 15:44:29 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pinentry
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-06-18 18:44:28 +02:00
|
|
|
PINENTRY_VERSION = 0.9.4
|
2014-06-06 15:44:29 +02:00
|
|
|
PINENTRY_SOURCE = pinentry-$(PINENTRY_VERSION).tar.bz2
|
|
|
|
PINENTRY_SITE = ftp://ftp.gnupg.org/gcrypt/pinentry
|
|
|
|
PINENTRY_LICENSE = GPLv2+
|
|
|
|
PINENTRY_LICENSE_FILES = COPYING
|
|
|
|
PINENTRY_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
2014-09-27 21:32:44 +02:00
|
|
|
PINENTRY_CONF_OPTS += --without-libcap # requires PAM
|
2014-06-06 15:44:29 +02:00
|
|
|
|
|
|
|
# build with X if available
|
|
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
PINENTRY_CONF_OPTS += --with-x
|
2014-06-06 15:44:29 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
PINENTRY_CONF_OPTS += --without-x
|
2014-06-06 15:44:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# pinentry-ncurses backend
|
|
|
|
ifeq ($(BR2_PACKAGE_PINENTRY_NCURSES),y)
|
2015-02-27 17:38:07 +01:00
|
|
|
PINENTRY_CONF_OPTS += --enable-ncurses --with-ncurses-include-dir=none
|
2014-06-06 15:44:29 +02:00
|
|
|
PINENTRY_DEPENDENCIES += ncurses
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
PINENTRY_CONF_OPTS += --disable-ncurses
|
2014-06-06 15:44:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# pinentry-gtk2 backend
|
|
|
|
ifeq ($(BR2_PACKAGE_PINENTRY_GTK2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
PINENTRY_CONF_OPTS += --enable-pinentry-gtk2
|
2014-06-06 15:44:29 +02:00
|
|
|
PINENTRY_DEPENDENCIES += libgtk2
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
PINENTRY_CONF_OPTS += --disable-pinentry-gtk2
|
2014-06-06 15:44:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# pinentry-qt4 backend
|
|
|
|
ifeq ($(BR2_PACKAGE_PINENTRY_QT4),y)
|
2014-06-17 12:23:13 +02:00
|
|
|
# -pthread needs to be passed for certain toolchains
|
|
|
|
# http://autobuild.buildroot.net/results/6be/6be109ccedec603a67cebdb31b55865dcce0e128/
|
2015-06-22 20:59:31 +02:00
|
|
|
PINENTRY_CONF_OPTS += LIBS=-pthread MOC=$(HOST_DIR)/usr/bin/moc
|
2014-09-27 21:32:44 +02:00
|
|
|
PINENTRY_CONF_OPTS += --enable-pinentry-qt4
|
2014-06-06 15:44:29 +02:00
|
|
|
PINENTRY_DEPENDENCIES += qt
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
PINENTRY_CONF_OPTS += --disable-pinentry-qt4
|
2014-06-06 15:44:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|