summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-12-28 12:28:35 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-12-28 12:28:35 +0100
commitf3a2ed15eac8e9a03983c90f7f91b69a50650566 (patch)
treef81d2ff7cb62a0a05a1691d2098ad0bfd024799e
parent116b9b4adf715aaedae653dd904e42f9114abea9 (diff)
downloadbuildroot-f3a2ed15eac8e9a03983c90f7f91b69a50650566.tar.gz
buildroot-f3a2ed15eac8e9a03983c90f7f91b69a50650566.zip
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>
-rw-r--r--package/pinentry/pinentry.mk7
1 files changed, 7 insertions, 0 deletions
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
OpenPOWER on IntegriCloud