Bruce Leidl
e20e601129
Updated Recipes: gcr4 3.92 -> 4.0.0 geoclue 2.5.7 -> 2.7.0 gjs 1.73.2 -> 1.77.90 gnome-backgrounds 42.0 -> 45.0 gnome-control-center 43.0 -> 45.0 gnome-desktop 43.rc -> 44.0 gsettings-desktop-schema 43.0 -> 45.0 libblockdev 2.26 -> 2.28 libgweather4 4.0.0 -> 4.2.0 libnma 1.8.38 -> 1.10.6 mozjs 102 -> 115 nss 3.64 -> 3.74 ovmf 202205 -> 202211 New recipes: appstream 0.16.3 libei 1.1.0 libxmlb 0.3.14 tecla 45.0 webm/libvpx 1.13 Recipes updated to replace poky recipes with insufficient version: glib-2.0 2.78.0 gtk+/gtk+3 3.24.38 gtk+/gtk4 4.12.1 icu 73_2 wayland/wayland 1.22.0 wayland/wayland-protocols 1.32 wayland/libinput 1.24.0 libadwaita 1.4.0
82 lines
2.9 KiB
BlitzBasic
82 lines
2.9 KiB
BlitzBasic
SUMMARY = "SpiderMonkey is Mozilla's JavaScript engine written in C/C++"
|
|
HOMEPAGE = "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
|
|
LICENSE = "MPL-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=dc9b6ecd19a14a54a628edaaf23733bf"
|
|
|
|
SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/firefox-${PV}esr.source.tar.xz \
|
|
file://0001-Cargo.toml-do-not-abort-on-panic.patch \
|
|
file://0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch \
|
|
file://0004-use-asm-sgidefs.h.patch \
|
|
file://fix-musl-build.patch \
|
|
file://riscv32.patch \
|
|
file://0002-moz.configure-do-not-look-for-llvm-objdump.patch \
|
|
file://0001-util.configure-fix-one-occasionally-reproduced-confi.patch \
|
|
file://0001-rewrite-cargo-host-linker-in-python3.patch \
|
|
file://musl-disable-stackwalk.patch \
|
|
file://0001-add-arm-to-list-of-mozinline.patch \
|
|
file://0001-fix-init-configure.patch \
|
|
"
|
|
#SRC_URI[sha256sum] = "31b074623f09ca821a8a7dee0b3d2df1a45f1164264d31c26b4969a4d6a21dd1"
|
|
SRC_URI[sha256sum] = "51534dd2a158d955a2cb67cc1308f100f6c9def0788713ed8b4d743f3ad72457"
|
|
|
|
|
|
S = "${WORKDIR}/firefox-${PV}"
|
|
|
|
inherit pkgconfig perlnative python3native rust
|
|
|
|
DEPENDS += "zlib cargo-native python3 icu"
|
|
DEPENDS:remove:mipsarch = "icu"
|
|
DEPENDS:remove:powerpc:toolchain-clang = "icu"
|
|
|
|
B = "${WORKDIR}/build"
|
|
|
|
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"
|
|
|
|
export HOST_CC = "${BUILD_CC}"
|
|
export HOST_CXX = "${BUILD_CXX}"
|
|
export HOST_CFLAGS = "${BUILD_CFLAGS}"
|
|
export HOST_CPPFLAGS = "${BUILD_CPPFLAGS}"
|
|
export HOST_CXXFLAGS = "${BUILD_CXXFLAGS}"
|
|
|
|
export AS = "${CC}"
|
|
|
|
export RUSTFLAGS
|
|
|
|
JIT ?= ""
|
|
JIT:mipsarch = "--disable-jit"
|
|
ICU ?= "--with-system-icu"
|
|
ICU:mipsarch = ""
|
|
ICU:powerpc:toolchain-clang = ""
|
|
|
|
do_configure() {
|
|
cd ${B}
|
|
python3 ${S}/configure.py \
|
|
--enable-project=js \
|
|
--target=${RUST_HOST_SYS} \
|
|
--host=${BUILD_SYS} \
|
|
--prefix=${prefix} \
|
|
--libdir=${libdir} \
|
|
--disable-jemalloc \
|
|
--disable-strip \
|
|
${JIT} \
|
|
${ICU}
|
|
}
|
|
|
|
do_install() {
|
|
oe_runmake 'DESTDIR=${D}' install
|
|
}
|
|
|
|
inherit multilib_script multilib_header
|
|
|
|
MULTILIB_SCRIPTS += " ${PN}-dev:${bindir}/js115-config"
|
|
|
|
do_install:append() {
|
|
oe_multilib_header mozjs-115/js-config.h
|
|
sed -e 's@${STAGING_DIR_HOST}@@g' \
|
|
-i ${D}${bindir}/js115-config
|
|
rm -f ${D}${libdir}/libjs_static.ajs
|
|
}
|
|
|
|
PACKAGES =+ "lib${BPN}"
|
|
FILES:lib${BPN} += "${libdir}/lib*"
|