2014-06-06 15:44:29 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pinentry
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-11-28 17:09:39 +01:00
|
|
|
PINENTRY_VERSION = 0.9.0
|
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)
|
2014-09-27 21:32:44 +02:00
|
|
|
PINENTRY_CONF_OPTS += --enable-ncurses
|
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/
|
2014-09-27 21:32:44 +02:00
|
|
|
PINENTRY_CONF_OPTS += LIBS=-pthread
|
|
|
|
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))
|