diff options
Diffstat (limited to 'meta-oe/recipes-extended/mozjs/mozjs-91_91.8.0.bb')
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-91_91.8.0.bb | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-91_91.8.0.bb b/meta-oe/recipes-extended/mozjs/mozjs-91_91.8.0.bb new file mode 100644 index 0000000000..9025e4159a --- /dev/null +++ b/meta-oe/recipes-extended/mozjs/mozjs-91_91.8.0.bb | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | SUMMARY = "SpiderMonkey is Mozilla's JavaScript engine written in C/C++" | ||
| 2 | HOMEPAGE = "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey" | ||
| 3 | LICENSE = "MPL-2.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=dc9b6ecd19a14a54a628edaaf23733bf" | ||
| 5 | |||
| 6 | SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/firefox-${PV}esr.source.tar.xz \ | ||
| 7 | file://0001-Cargo.toml-do-not-abort-on-panic.patch \ | ||
| 8 | file://0002-moz.configure-do-not-look-for-llvm-objdump.patch \ | ||
| 9 | file://0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch \ | ||
| 10 | file://0004-use-asm-sgidefs.h.patch \ | ||
| 11 | file://fix-musl-build.patch \ | ||
| 12 | file://0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch \ | ||
| 13 | file://riscv32.patch \ | ||
| 14 | file://0005-nojit-32bit-arch-fix.patch \ | ||
| 15 | file://0006-Fix-build-on-powerpc.patch \ | ||
| 16 | file://0001-util.configure-fix-one-occasionally-reproduced-confi.patch \ | ||
| 17 | file://0001-rewrite-cargo-host-linker-in-python3.patch \ | ||
| 18 | " | ||
| 19 | SRC_URI[sha256sum] = "d483a853cbf5c7f93621093432e3dc0b7ed847f2a5318b964828d19f9f087f3a" | ||
| 20 | |||
| 21 | S = "${WORKDIR}/firefox-${@d.getVar("PV").replace("esr", "")}" | ||
| 22 | |||
| 23 | inherit pkgconfig perlnative python3native rust | ||
| 24 | |||
| 25 | DEPENDS += "zlib cargo-native python3" | ||
| 26 | |||
| 27 | B = "${WORKDIR}/build" | ||
| 28 | |||
| 29 | export PYTHONPATH = "${S}/build:${S}/third_party/python/PyYAML/lib3:${S}/testing/mozbase/mozfile:${S}/python/mozboot:${S}/third_party/python/distro:${S}/testing/mozbase/mozinfo:${S}/config:${S}/testing/mozbase/manifestparser:${S}/third_party/python/pytoml:${S}/testing/mozbase/mozprocess:${S}/third_party/python/six:${S}/python/mozbuild:${S}/python/mozbuild/mozbuild:${S}/python/mach:${S}/third_party/python/jsmin:${S}/python/mozversioncontrol" | ||
| 30 | |||
| 31 | export HOST_CC = "${BUILD_CC}" | ||
| 32 | export HOST_CXX = "${BUILD_CXX}" | ||
| 33 | export HOST_CFLAGS = "${BUILD_CFLAGS}" | ||
| 34 | export HOST_CPPFLAGS = "${BUILD_CPPFLAGS}" | ||
| 35 | export HOST_CXXFLAGS = "${BUILD_CXXFLAGS}" | ||
| 36 | |||
| 37 | export AS = "${CC}" | ||
| 38 | |||
| 39 | export RUSTFLAGS | ||
| 40 | |||
| 41 | JIT ?= "" | ||
| 42 | |||
| 43 | JIT:mipsarch = "--disable-jit" | ||
| 44 | |||
| 45 | do_configure() { | ||
| 46 | cd ${B} | ||
| 47 | python3 ${S}/configure.py \ | ||
| 48 | --enable-project=js \ | ||
| 49 | --target=${HOST_SYS} \ | ||
| 50 | --host=${BUILD_SYS} \ | ||
| 51 | --prefix=${prefix} \ | ||
| 52 | --libdir=${libdir} \ | ||
| 53 | --disable-jemalloc \ | ||
| 54 | ${JIT} | ||
| 55 | |||
| 56 | } | ||
| 57 | |||
| 58 | do_install() { | ||
| 59 | oe_runmake 'DESTDIR=${D}' install | ||
| 60 | } | ||
| 61 | |||
| 62 | inherit multilib_script multilib_header | ||
| 63 | |||
| 64 | MULTILIB_SCRIPTS += " ${PN}-dev:${bindir}/js91-config" | ||
| 65 | |||
| 66 | do_install:append() { | ||
| 67 | oe_multilib_header mozjs-91/js-config.h | ||
| 68 | sed -e 's@${STAGING_DIR_HOST}@@g' \ | ||
| 69 | -i ${D}${bindir}/js91-config | ||
| 70 | rm -f ${D}${libdir}/libjs_static.ajs | ||
| 71 | } | ||
| 72 | |||
| 73 | PACKAGES =+ "lib${BPN}" | ||
| 74 | FILES:lib${BPN} += "${libdir}/lib*" | ||
