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
|
2015-12-28 12:27:57 +01:00
|
|
|
PINENTRY_DEPENDENCIES = \
|
|
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv) \
|
|
|
|
host-pkgconf
|
2014-09-27 21:32:44 +02:00
|
|
|
PINENTRY_CONF_OPTS += --without-libcap # requires PAM
|
2014-06-06 15:44:29 +02:00
|
|
|
|
2016-08-20 16:00:36 +02:00
|
|
|
# pinentry uses some std::string functionality that needs C++11
|
|
|
|
# support when gcc >= 5.x. This should be removed when bumping
|
|
|
|
# pinentry, since newer versions no longer use std::string.
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_5),y)
|
|
|
|
PINENTRY_CONF_ENV = CXXFLAGS="$(TARGET_CXXFLAGS) -std=gnu++11"
|
|
|
|
endif
|
|
|
|
|
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
|
|
|
|
|
2015-12-28 12:28:35 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECRET),y)
|
|
|
|
PINENTRY_CONF_OPTS += --enable-libsecret
|
|
|
|
PINENTRY_DEPENDENCIES += libsecret
|
|
|
|
else
|
|
|
|
PINENTRY_CONF_OPTS += --disable-libsecret
|
|
|
|
endif
|
|
|
|
|
2014-06-06 15:44:29 +02:00
|
|
|
# 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))
|