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