wok view spidermonkey/receipt @ rev 22720
updated faenza-icon-theme again (1.3 -> 1.3.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 22 17:20:42 2020 +0100 (2020-01-22) |
parents | 238f49914432 |
children | 934055de50e2 |
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://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
12 WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL"
13 TAGS="javascript"
15 DEPENDS="nspr"
16 BUILD_DEPENDS="nspr-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src/src
22 sed -i 's|uname -m|echo i486|' fdlibm/Makefile.in config/*.mk config.mk
24 # Fix from Archlinux
25 # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD
26 #patch -p0 < $stuff/spidermonkey-Makefile.patch || return 1
27 sed -i 's|include|include/js|' rules.mk || return 1
28 # patch Makefile for threadsafe support with native nspr
29 patch -p2 -i $stuff/spidermonkey-1.7-threadsafe.patch || return 1
30 # FS#16673
31 export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8"
32 # build - threadsafe
33 make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \
34 DIST=$DESTDIR/usr all export 2>&1 | grep -v 'OBJ/nspr/Version'
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/*so* $fs/usr/lib
44 }