| ################################################################################ |
| # |
| # pinentry |
| # |
| ################################################################################ |
| |
| PINENTRY_VERSION = 1.0.0 |
| PINENTRY_SOURCE = pinentry-$(PINENTRY_VERSION).tar.bz2 |
| PINENTRY_SITE = https://www.gnupg.org/ftp/gcrypt/pinentry |
| PINENTRY_LICENSE = GPL-2.0+ |
| PINENTRY_LICENSE_FILES = COPYING |
| PINENTRY_DEPENDENCIES = \ |
| libassuan libgpg-error \ |
| $(if $(BR2_PACKAGE_LIBICONV),libiconv) \ |
| host-pkgconf |
| PINENTRY_CONF_OPTS += \ |
| --with-libassuan-prefix=$(STAGING_DIR)/usr \ |
| --with-libgpg-error-prefix=$(STAGING_DIR)/usr \ |
| --without-libcap # requires PAM |
| |
| # build with X if available |
| ifeq ($(BR2_PACKAGE_XORG7),y) |
| PINENTRY_CONF_OPTS += --with-x |
| else |
| PINENTRY_CONF_OPTS += --without-x |
| endif |
| |
| ifeq ($(BR2_PACKAGE_LIBSECRET),y) |
| PINENTRY_CONF_OPTS += --enable-libsecret |
| PINENTRY_DEPENDENCIES += libsecret |
| else |
| PINENTRY_CONF_OPTS += --disable-libsecret |
| endif |
| |
| # pinentry-ncurses backend |
| ifeq ($(BR2_PACKAGE_PINENTRY_NCURSES),y) |
| PINENTRY_CONF_OPTS += --enable-ncurses --with-ncurses-include-dir=none |
| PINENTRY_DEPENDENCIES += ncurses |
| else |
| PINENTRY_CONF_OPTS += --disable-ncurses |
| endif |
| |
| # pinentry-gtk2 backend |
| ifeq ($(BR2_PACKAGE_PINENTRY_GTK2),y) |
| PINENTRY_CONF_OPTS += --enable-pinentry-gtk2 |
| PINENTRY_DEPENDENCIES += libgtk2 |
| else |
| PINENTRY_CONF_OPTS += --disable-pinentry-gtk2 |
| endif |
| |
| # pinentry-qt4/5 backend |
| ifeq ($(BR2_PACKAGE_PINENTRY_QT4)$(BR2_PACKAGE_PINENTRY_QT5),y) |
| ifeq ($(BR2_PACKAGE_PINENTRY_QT4),y) |
| # -pthread needs to be passed for certain toolchains |
| # http://autobuild.buildroot.net/results/6be/6be109ccedec603a67cebdb31b55865dcce0e128/ |
| PINENTRY_CONF_OPTS += LIBS=-pthread MOC=$(HOST_DIR)/bin/moc |
| endif |
| PINENTRY_CONF_OPTS += --enable-pinentry-qt |
| PINENTRY_DEPENDENCIES += $(if $(BR2_PACKAGE_PINENTRY_QT4),qt,qt5base) |
| else |
| PINENTRY_CONF_OPTS += --disable-pinentry-qt |
| endif |
| |
| $(eval $(autotools-package)) |