]> code.ossystems Code Review - openembedded-core.git/commitdiff
libgcrypt.inc: Add PACKAGECONFIG for 'capabilities'
authorNathan Rossi <nathan@nathanrossi.com>
Mon, 30 Jan 2017 07:47:45 +0000 (17:47 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 5 Feb 2017 09:20:22 +0000 (09:20 +0000)
Add PACKAGECONFIG options for 'capabilities' which enables the libcap
dependency.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/libgcrypt/libgcrypt.inc

index c8a48623b4fb12489ef242f67464031128c8086f..84c1cc018b36eed14bb4af191c7ca51f857f678f 100644 (file)
@@ -12,7 +12,7 @@ LICENSE_dumpsexp-dev = "GPLv3+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
                     file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff"
 
-DEPENDS = "libgpg-error libcap"
+DEPENDS = "libgpg-error"
 
 UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
 SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.gz \
@@ -26,7 +26,10 @@ BINCONFIG = "${bindir}/libgcrypt-config"
 
 inherit autotools texinfo binconfig-disabled pkgconfig
 
-EXTRA_OECONF = "--disable-asm --with-capabilities"
+EXTRA_OECONF = "--disable-asm"
+
+PACKAGECONFIG ??= "capabilities"
+PACKAGECONFIG[capabilities] = "--with-capabilities,--without-capabilities,libcap"
 
 do_configure_prepend () {
        # Else this could be used in preference to the one in aclocal-copy