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