[oe-commits] Jackie Huang : mozjs: add PACKAGECONFIG for x11

git at git.openembedded.org git at git.openembedded.org
Thu Sep 17 15:05:01 UTC 2015


Module: meta-openembedded.git
Branch: master-next
Commit: 8b74494a4c71f11d777b9b2fcddd217b55560b52
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=8b74494a4c71f11d777b9b2fcddd217b55560b52

Author: Jackie Huang <jackie.huang at windriver.com>
Date:   Wed Sep 16 14:57:46 2015 +0800

mozjs: add PACKAGECONFIG for x11

Add PACKAGECONFIG for x11 and enable it when x11 is
included in DISTRO_FEATURES, and specify the correct
path for x-includes and x-libraries to avoid
searching the host libraries.

Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
index 6621a70..bb71707 100644
--- a/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
+++ b/meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
@@ -39,6 +39,9 @@ EXTRA_OECONF_append_armv4 += " \
     --disable-methodjit \
 "
 
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
+PACKAGECONFIG[x11] = "--with-x --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR},--without-x,virtual/libx11"
+
 # mozjs requires autoreconf 2.13
 do_configure() {
     ( cd ${S} 



More information about the Openembedded-commits mailing list