diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:11 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:57 +0100 |
commit | d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch) | |
tree | f36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-support/js/js_1.7.0+1.8.0rc1.bb | |
parent | caab7fc509bf27706ff3248689f6afd04225cfda (diff) | |
download | poky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz |
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-support/js/js_1.7.0+1.8.0rc1.bb')
-rw-r--r-- | meta/recipes-support/js/js_1.7.0+1.8.0rc1.bb | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-support/js/js_1.7.0+1.8.0rc1.bb b/meta/recipes-support/js/js_1.7.0+1.8.0rc1.bb new file mode 100644 index 0000000000..97cba90d03 --- /dev/null +++ b/meta/recipes-support/js/js_1.7.0+1.8.0rc1.bb | |||
@@ -0,0 +1,47 @@ | |||
1 | DESCRIPTION = "Spidermonkey: a javascript engine written in C" | ||
2 | HOMEPAGE = "http://www.mozilla.org/js/spidermonkey/" | ||
3 | SECTION = "libs" | ||
4 | |||
5 | # the package is licensed under either of the following | ||
6 | LICENSE = "MPL1.1 | GPLv2+ | LGPLv2.1+" | ||
7 | LIC_FILES_CHKSUM = "file://jsapi.c;beginline=4;endline=39;md5=347c6bbf4fb4547de1fa5ad830030063" | ||
8 | PR = "r1" | ||
9 | |||
10 | SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/js/js-1.8.0-rc1.tar.gz \ | ||
11 | file://link_with_gcc.patch \ | ||
12 | file://usepic.patch \ | ||
13 | file://buildcc.patch;striplevel=2 \ | ||
14 | file://jsautocfg.h \ | ||
15 | file://configure.ac" | ||
16 | |||
17 | S = "${WORKDIR}/js/src" | ||
18 | |||
19 | # use local autoconf script to generate a usable jsautocfg.h | ||
20 | # don't bother with automake | ||
21 | inherit autotools | ||
22 | |||
23 | do_configure_prepend() { | ||
24 | cp -f ${WORKDIR}/configure.ac ${S} | ||
25 | cp -f ${WORKDIR}/jsautocfg.h ${S} | ||
26 | } | ||
27 | |||
28 | EXTRA_OEMAKE = "'CC=${CC}' 'LD=${LD}' 'XCFLAGS=${CFLAGS}' 'XLDFLAGS=${LDFLAGS} -Wl,-soname=libjs' \ | ||
29 | 'BUILD_CC=${BUILD_CC}' 'BUILD_CFLAGS=${BUILD_CFLAGS}' 'BUILD_LDFLAGS=${BUILD_LDFLAGS}'" | ||
30 | |||
31 | PARALLEL_MAKE = "" | ||
32 | |||
33 | do_compile() { | ||
34 | oe_runmake -f Makefile.ref JS_EDITLINE=1 PREBUILT_CPUCFG=1 BUILD_OPT=1 | ||
35 | } | ||
36 | |||
37 | do_install() { | ||
38 | install -d ${D}${libdir} | ||
39 | install -d ${D}${includedir} | ||
40 | install -d ${D}${includedir}/js | ||
41 | oe_libinstall -so -C Linux_All_OPT.OBJ libjs ${D}${libdir} | ||
42 | install -m 0644 ${S}/*.h ${D}${includedir}/js | ||
43 | } | ||
44 | |||
45 | FILES_${PN} = "${libdir}/lib*.so" | ||
46 | FILES_${PN}-dev = "${includedir} ${libdir}/lib*.a" | ||
47 | |||