wok annotate spidermonkey/receipt @ rev 25503

f3: include extra programs
author Hans-G?nter Theisgen
date Fri Jan 27 10:37:43 2023 +0100 (16 months ago)
parents 934055de50e2
children
rev   line source
jozee@3119 1 # SliTaz package receipt.
jozee@3119 2
jozee@3119 3 PACKAGE="spidermonkey"
claudinei@9177 4 VERSION="1.8.0-rc1"
jozee@3119 5 CATEGORY="multimedia"
jozee@3119 6 SHORT_DESC="Mozilla C implementation of Javascript"
jozee@3119 7 MAINTAINER="jozee@slitaz.org"
pascal@15290 8 LICENSE="MPL GPL2 LGPL2.1"
jozee@3119 9 SOURCE="js"
jozee@3119 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@24894 11 WEB_SITE="https://spidermonkey.dev/"
jozee@3119 12 WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL"
jozee@3119 13 TAGS="javascript"
jozee@3119 14
pankso@9771 15 DEPENDS="nspr"
pankso@9771 16 BUILD_DEPENDS="nspr-dev"
pankso@9771 17
pascal@24462 18 # What is the latest version available today?
pascal@24462 19 current_version()
pascal@24462 20 {
pascal@24462 21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24462 22 sed '/\/js-[0-9]/!d;s|.*js-||;s|.tar.*||' | sort -r | sed q
pascal@24462 23 }
pascal@24462 24
jozee@3119 25 # Rules to configure and make the package.
jozee@3119 26 compile_rules()
jozee@3119 27 {
gokhlayeh@8689 28 cd $src/src
pascal@20214 29 sed -i 's|uname -m|echo i486|' fdlibm/Makefile.in config/*.mk config.mk
jozee@3119 30
gokhlayeh@8689 31 # Fix from Archlinux
gokhlayeh@8689 32 # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD
pascal@9197 33 #patch -p0 < $stuff/spidermonkey-Makefile.patch || return 1
gokhlayeh@8689 34 sed -i 's|include|include/js|' rules.mk || return 1
gokhlayeh@8689 35 # patch Makefile for threadsafe support with native nspr
gokhlayeh@8689 36 patch -p2 -i $stuff/spidermonkey-1.7-threadsafe.patch || return 1
gokhlayeh@8689 37 # FS#16673
gokhlayeh@8689 38 export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8"
gokhlayeh@8689 39 # build - threadsafe
gokhlayeh@8689 40 make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \
pascal@15290 41 DIST=$DESTDIR/usr all export 2>&1 | grep -v 'OBJ/nspr/Version'
jozee@3119 42 }
jozee@3119 43
jozee@3119 44 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@3119 45 genpkg_rules()
jozee@3119 46 {
jozee@3119 47 mkdir -p $fs/usr/lib
jozee@3119 48
pascal@15290 49 cp -a $install/usr/bin $fs/usr
pascal@15290 50 cp -a $install/usr/lib/*so* $fs/usr/lib
jozee@3119 51 }