2014-06-06 15:44:29 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pinentry
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-01-09 20:06:03 +01:00
|
|
|
PINENTRY_VERSION = 1.1.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
|
|
|
|
2018-06-14 20:02:04 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
PINENTRY_CONF_ENV += LIBS=-latomic
|
|
|
|
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
|
|
|
|
|
2020-01-09 20:06:04 +01:00
|
|
|
# pinentry-fltk backend
|
|
|
|
ifeq ($(BR2_PACKAGE_PINENTRY_FLTK),y)
|
|
|
|
PINENTRY_CONF_ENV += ac_cv_path_FLTK_CONFIG=$(STAGING_DIR)/usr/bin/fltk-config
|
|
|
|
PINENTRY_CONF_OPTS += --enable-pinentry-fltk
|
|
|
|
PINENTRY_DEPENDENCIES += fltk
|
|
|
|
else
|
|
|
|
PINENTRY_CONF_OPTS += --disable-pinentry-fltk
|
|
|
|
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
|
|
|
|
|
2019-02-06 15:10:51 +01:00
|
|
|
# pinentry-qt5 backend
|
|
|
|
ifeq ($(BR2_PACKAGE_PINENTRY_QT5),y)
|
2017-09-17 17:18:35 +02:00
|
|
|
PINENTRY_CONF_OPTS += --enable-pinentry-qt
|
2019-02-06 15:10:51 +01:00
|
|
|
PINENTRY_DEPENDENCIES += 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))
|