pinentry: optionally depend on libsecret

pinentry can use libsecret when available, so we should handle this
optional dependencies properly.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Thomas Petazzoni 2015-12-28 12:28:35 +01:00
parent 116b9b4adf
commit f3a2ed15ea

View File

@ -21,6 +21,13 @@ else
PINENTRY_CONF_OPTS += --without-x PINENTRY_CONF_OPTS += --without-x
endif endif
ifeq ($(BR2_PACKAGE_LIBSECRET),y)
PINENTRY_CONF_OPTS += --enable-libsecret
PINENTRY_DEPENDENCIES += libsecret
else
PINENTRY_CONF_OPTS += --disable-libsecret
endif
# pinentry-ncurses backend # pinentry-ncurses backend
ifeq ($(BR2_PACKAGE_PINENTRY_NCURSES),y) ifeq ($(BR2_PACKAGE_PINENTRY_NCURSES),y)
PINENTRY_CONF_OPTS += --enable-ncurses --with-ncurses-include-dir=none PINENTRY_CONF_OPTS += --enable-ncurses --with-ncurses-include-dir=none