mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
mozjs: initial add 17.0.0
later versions of polkit will need it Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
parent
31613424db
commit
0368f18b3f
|
|
@ -0,0 +1,35 @@
|
|||
From 0a61b0b98c152f10404ccbdeeac583a486638a7a Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Thu, 6 Jun 2013 18:36:01 +0200
|
||||
Subject: [PATCH] js.pc.in: do not include RequiredDefines.h for depending
|
||||
packages
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
in our cross environment the would fail with:
|
||||
|
||||
| cc1: fatal error: /usr/include/js-17.0/js/RequiredDefines.h: No such file or directory
|
||||
|
||||
and currently it only defines __STDC_LIMIT_MACROS
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
js.pc.in | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/js.pc.in b/js.pc.in
|
||||
index 13d761d..a95a7bd 100644
|
||||
--- a/js.pc.in
|
||||
+++ b/js.pc.in
|
||||
@@ -8,4 +8,4 @@ Description: The Mozilla library for JavaScript
|
||||
Version: @MOZILLA_VERSION@
|
||||
Requires.private: @NSPR_PKGCONF_CHECK@
|
||||
Libs: -L${libdir} -l@LIBRARY_NAME@
|
||||
-Cflags: -include ${includedir}/@MODULE@/js/RequiredDefines.h -I${includedir}/@MODULE@
|
||||
+Cflags: -I${includedir}/@MODULE@
|
||||
--
|
||||
1.7.6.5
|
||||
|
||||
35
meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
Normal file
35
meta-oe/recipes-extended/mozjs/mozjs_17.0.0.bb
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
SUMMARY = "SpiderMonkey is Mozilla's JavaScript engine written in C/C++"
|
||||
LICENSE = "MPL-2.0"
|
||||
LIC_FILES_CHKSUM = "file://../../LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
|
||||
|
||||
SRC_URI = " \
|
||||
http://ftp.mozilla.org/pub/mozilla.org/js/${PN}${PV}.tar.gz \
|
||||
file://0001-js.pc.in-do-not-include-RequiredDefines.h-for-depend.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "20b6f8f1140ef6e47daa3b16965c9202"
|
||||
SRC_URI[sha256sum] = "321e964fe9386785d3bf80870640f2fa1c683e32fe988eeb201b04471c172fba"
|
||||
|
||||
S = "${WORKDIR}/${PN}${PV}/js/src"
|
||||
|
||||
inherit autotools pkgconfig perlnative
|
||||
|
||||
DEPENDS += "nspr"
|
||||
|
||||
# nspr's package-config is ignored so set libs manually
|
||||
EXTRA_OECONF = " \
|
||||
--target=${TARGET_SYS} \
|
||||
--host=${BUILD_SYS} \
|
||||
--build=${BUILD_SYS} \
|
||||
--prefix=${prefix} \
|
||||
--with-nspr-libs='-lplds4 -lplc4 -lnspr4' \
|
||||
--enable-threadsafe \
|
||||
"
|
||||
|
||||
# mozjs requires autoreconf 2.13
|
||||
do_configure() {
|
||||
./configure ${EXTRA_OECONF}
|
||||
}
|
||||
|
||||
PACKAGES =+ "lib${PN}"
|
||||
FILES_lib${PN} += "${libdir}/lib*.so"
|
||||
FILES_${PN}-dev += "${bindir}/js17-config"
|
||||
Loading…
Reference in New Issue
Block a user