wok-6.x view spidermonkey/receipt @ rev 9536
Up: tazpkg (4.6.1) - Bug fix
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 08 18:42:01 2011 +0200 (2011-04-08) |
parents | e1df651a683c |
children | a34b2bcf117e |
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 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 }