[oe] [meta-networking][PATCH 11/16] znc: control ipv6 support based on DISTRO_FEATURES

jackie.huang at windriver.com jackie.huang at windriver.com
Wed Aug 24 09:06:59 UTC 2016


From: Jackie Huang <jackie.huang at windriver.com>

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
---
 meta-networking/recipes-irc/znc/znc_git.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-networking/recipes-irc/znc/znc_git.bb b/meta-networking/recipes-irc/znc/znc_git.bb
index 22aecba..f3345a9 100644
--- a/meta-networking/recipes-irc/znc/znc_git.bb
+++ b/meta-networking/recipes-irc/znc/znc_git.bb
@@ -21,6 +21,9 @@ S = "${WORKDIR}/git"
 
 inherit autotools-brokensep pkgconfig
 
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
+PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
+
 # ZNC has a custom autogen.sh that states that this command is needed *and* expected to fail
 do_configure_prepend() {
     automake --add-missing || true
-- 
2.8.3




More information about the Openembedded-devel mailing list