2014-06-06 15:44:29 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pinentry
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-17 17:18:35 +02:00
|
|
|
PINENTRY_VERSION = 1.0.0
|
2014-06-06 15:44:29 +02:00
|
|
|
PINENTRY_SOURCE = pinentry-$(PINENTRY_VERSION).tar.bz2
|
2017-09-17 17:18:35 +02:00
|
|
|
PINENTRY_SITE = https://www.gnupg.org/ftp/gcrypt/pinentry
|
2017-03-30 15:43:32 +02:00
|
|
|
PINENTRY_LICENSE = GPL-2.0+
|
2014-06-06 15:44:29 +02:00
|
|
|
PINENTRY_LICENSE_FILES = COPYING
|
2015-12-28 12:27:57 +01:00
|
|
|
PINENTRY_DEPENDENCIES = \
|
2017-09-17 17:18:35 +02:00
|
|
|
libassuan libgpg-error \
|
2015-12-28 12:27:57 +01:00
|
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv) \
|
|
|
|
host-pkgconf
|
2017-09-17 17:18:35 +02:00
|
|
|
PINENTRY_CONF_OPTS += \
|
|
|
|
--with-libassuan-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--with-libgpg-error-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--without-libcap # requires PAM
|
2016-08-20 16:00:36 +02:00
|
|
|
|
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
|
|
|
|
|
2017-09-17 19:09:58 +02:00
|
|
|
# pinentry-qt4/5 backend
|
|
|
|
ifeq ($(BR2_PACKAGE_PINENTRY_QT4)$(BR2_PACKAGE_PINENTRY_QT5),y)
|
2014-06-06 15:44:29 +02:00
|
|
|
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/
|
2017-07-05 13:14:19 +02:00
|
|
|
PINENTRY_CONF_OPTS += LIBS=-pthread MOC=$(HOST_DIR)/bin/moc
|
2017-09-17 19:09:58 +02:00
|
|
|
endif
|
2017-09-17 17:18:35 +02:00
|
|
|
PINENTRY_CONF_OPTS += --enable-pinentry-qt
|
2017-09-17 19:09:58 +02:00
|
|
|
PINENTRY_DEPENDENCIES += $(if $(BR2_PACKAGE_PINENTRY_QT4),qt,qt5base)
|
2014-06-06 15:44:29 +02:00
|
|
|
else
|
2017-09-17 17:18:35 +02:00
|
|
|
PINENTRY_CONF_OPTS += --disable-pinentry-qt
|
2014-06-06 15:44:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|