Skip to contentSkip to conversation

mozjs: add PACKAGECONFIG for x11

PATCH New [email protected] 1 participant 1 message Sep 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mozjs: add PACKAGECONFIG for x11

From: Jackie Huang <[email protected]>

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.

---
 meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb +3 -0
index 6621a70..bb71707 100644
@@ -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} 
Signature · 1 line
1.9.1