1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# pinentry 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunPINENTRY_VERSION = 1.1.1 8*4882a593SmuzhiyunPINENTRY_SOURCE = pinentry-$(PINENTRY_VERSION).tar.bz2 9*4882a593SmuzhiyunPINENTRY_SITE = https://www.gnupg.org/ftp/gcrypt/pinentry 10*4882a593SmuzhiyunPINENTRY_LICENSE = GPL-2.0+ 11*4882a593SmuzhiyunPINENTRY_LICENSE_FILES = COPYING 12*4882a593SmuzhiyunPINENTRY_DEPENDENCIES = \ 13*4882a593Smuzhiyun libassuan libgpg-error \ 14*4882a593Smuzhiyun $(if $(BR2_PACKAGE_LIBICONV),libiconv) \ 15*4882a593Smuzhiyun host-pkgconf 16*4882a593SmuzhiyunPINENTRY_CONF_OPTS += \ 17*4882a593Smuzhiyun --with-libassuan-prefix=$(STAGING_DIR)/usr \ 18*4882a593Smuzhiyun --with-libgpg-error-prefix=$(STAGING_DIR)/usr \ 19*4882a593Smuzhiyun --without-libcap # requires PAM 20*4882a593Smuzhiyun 21*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) 22*4882a593SmuzhiyunPINENTRY_CONF_ENV += LIBS=-latomic 23*4882a593Smuzhiyunendif 24*4882a593Smuzhiyun 25*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBSECRET),y) 26*4882a593SmuzhiyunPINENTRY_CONF_OPTS += --enable-libsecret 27*4882a593SmuzhiyunPINENTRY_DEPENDENCIES += libsecret 28*4882a593Smuzhiyunelse 29*4882a593SmuzhiyunPINENTRY_CONF_OPTS += --disable-libsecret 30*4882a593Smuzhiyunendif 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun# pinentry-efl backend 33*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_PINENTRY_EFL),y) 34*4882a593SmuzhiyunPINENTRY_CONF_OPTS += --enable-pinentry-efl 35*4882a593SmuzhiyunPINENTRY_DEPENDENCIES += efl 36*4882a593Smuzhiyunelse 37*4882a593SmuzhiyunPINENTRY_CONF_OPTS += --disable-pinentry-efl 38*4882a593Smuzhiyunendif 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun# pinentry-fltk backend 41*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_PINENTRY_FLTK),y) 42*4882a593SmuzhiyunPINENTRY_CONF_ENV += ac_cv_path_FLTK_CONFIG=$(STAGING_DIR)/usr/bin/fltk-config 43*4882a593SmuzhiyunPINENTRY_CONF_OPTS += --enable-pinentry-fltk 44*4882a593SmuzhiyunPINENTRY_DEPENDENCIES += fltk 45*4882a593Smuzhiyunelse 46*4882a593SmuzhiyunPINENTRY_CONF_OPTS += --disable-pinentry-fltk 47*4882a593Smuzhiyunendif 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun# pinentry-ncurses backend 50*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_PINENTRY_NCURSES),y) 51*4882a593SmuzhiyunPINENTRY_CONF_OPTS += --enable-ncurses --with-ncurses-include-dir=none 52*4882a593SmuzhiyunPINENTRY_DEPENDENCIES += ncurses 53*4882a593Smuzhiyunelse 54*4882a593SmuzhiyunPINENTRY_CONF_OPTS += --disable-ncurses 55*4882a593Smuzhiyunendif 56*4882a593Smuzhiyun 57*4882a593Smuzhiyun# pinentry-gtk2 backend 58*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_PINENTRY_GTK2),y) 59*4882a593SmuzhiyunPINENTRY_CONF_OPTS += --enable-pinentry-gtk2 60*4882a593SmuzhiyunPINENTRY_DEPENDENCIES += libgtk2 61*4882a593Smuzhiyunelse 62*4882a593SmuzhiyunPINENTRY_CONF_OPTS += --disable-pinentry-gtk2 63*4882a593Smuzhiyunendif 64*4882a593Smuzhiyun 65*4882a593Smuzhiyun# pinentry-qt5 backend 66*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_PINENTRY_QT5),y) 67*4882a593SmuzhiyunPINENTRY_CONF_OPTS += --enable-pinentry-qt 68*4882a593SmuzhiyunPINENTRY_DEPENDENCIES += qt5base 69*4882a593Smuzhiyunelse 70*4882a593SmuzhiyunPINENTRY_CONF_OPTS += --disable-pinentry-qt 71*4882a593Smuzhiyunendif 72*4882a593Smuzhiyun 73*4882a593Smuzhiyun$(eval $(autotools-package)) 74