wok-stable view spidermonkey/receipt @ rev 9004
Fixed python-kiwi.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Mar 03 11:52:25 2011 +0000 (2011-03-03) |
parents | 6e152ae05ea6 |
children | e1df651a683c |
line source
1 # SliTaz package receipt.
3 PACKAGE="spidermonkey"
4 VERSION="1.7.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="Mozilla C implementation of Javascript"
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="nspr"
9 BUILD_DEPENDS=""
10 SOURCE="js"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://www.mozilla.org/js/spidermonkey/"
13 WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL"
14 TAGS="javascript"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src/src
21 # Fix from Archlinux
22 # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD
23 patch -p0 < $stuff/spidermonkey-Makefile.patch || return 1
24 sed -i 's|include|include/js|' rules.mk || return 1
25 # patch Makefile for threadsafe support with native nspr
26 patch -p2 -i $stuff/spidermonkey-1.7-threadsafe.patch || return 1
27 # FS#16673
28 export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8"
29 # build - threadsafe
30 make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \
31 DIST=$DESTDIR/usr all export
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
41 }