From f3a2ed15eac8e9a03983c90f7f91b69a50650566 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Mon, 28 Dec 2015 12:28:35 +0100 Subject: [PATCH] pinentry: optionally depend on libsecret pinentry can use libsecret when available, so we should handle this optional dependencies properly. Signed-off-by: Thomas Petazzoni --- package/pinentry/pinentry.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/pinentry/pinentry.mk b/package/pinentry/pinentry.mk index ab7be54d88..09a7705c27 100644 --- a/package/pinentry/pinentry.mk +++ b/package/pinentry/pinentry.mk @@ -21,6 +21,13 @@ 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 -- 2.30.2