This fixes: WARNING: QA Issue: pinentry rdepends on libcap, but it isn't a 
build dependency? [build-deps]

Also add pkgconfig support.

Signed-off-by: Armin Kuster <akuster...@gmail.com>
---
 recipes-security/pinentry/pinentry_0.8.3.bb | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/recipes-security/pinentry/pinentry_0.8.3.bb 
b/recipes-security/pinentry/pinentry_0.8.3.bb
index 3209e53..0bd3021 100644
--- a/recipes-security/pinentry/pinentry_0.8.3.bb
+++ b/recipes-security/pinentry/pinentry_0.8.3.bb
@@ -2,14 +2,19 @@ DESCRIPTION = "This is a collection of simple PIN or 
passphrase entry dialogs wh
 HOMEPAGE = "ftp://ftp.gnupg.org/gcrypt/";
 LICENSE = "GPL-2.0"
 LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-DEPENDS = "glib-2.0 ncurses"
+DEPENDS = "glib-2.0 "
 
 SRC_URI = "ftp://ftp.gnupg.org/gcrypt/pinentry/${PN}-${PV}.tar.bz2";
 
 SRC_URI[md5sum] = "2ae681cbca0d9fb774b2c90b11ebf56c"
 SRC_URI[sha256sum] = 
"568b0b09b50b2388a4f94d704d5bcb28718ecd4654ed1acc43ab1f97d921a0ad"
 
-inherit autotools
+inherit autotools pkgconfig
 
-EXTRA_OECONF +="--disable-pinentry-gtk2 --disable-pinentry-qt 
--disable-pinentry-qt4 --without-x --enable-ncurses \
-    --with-ncurses-include-dir=${STAGING_INCDIR} "
+EXTRA_OECONF +="--disable-pinentry-gtk2 --disable-pinentry-qt \
+                --disable-pinentry-qt4 --without-x "
+
+PACKAGECONFIG ??= "ncurses"
+
+PACKAGECONFIG[ncurses] = "--enable-ncurses  
--with-ncurses-include-dir=${STAGING_INCDIR}, '--disable-ncurses', ncurses"
+PACKAGECONFIG[libcap] = "--with-libcap, --without-libcap, libcap"
-- 
1.9.1

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to