wok view spidermonkey/receipt @ rev 13921
Up nethogs (0.8.0)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Fri Jan 25 20:35:32 2013 +0000 (2013-01-25) |
parents | d68eaab08c02 |
children | 44d062fcbe9b |
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 SOURCE="js"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.mozilla.org/js/spidermonkey/"
11 WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL"
12 TAGS="javascript"
14 DEPENDS="nspr"
15 BUILD_DEPENDS="nspr-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/src
22 # Fix from Archlinux
23 # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD
24 #patch -p0 < $stuff/spidermonkey-Makefile.patch || return 1
25 sed -i 's|include|include/js|' rules.mk || return 1
26 # patch Makefile for threadsafe support with native nspr
27 patch -p2 -i $stuff/spidermonkey-1.7-threadsafe.patch || return 1
28 # FS#16673
29 export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8"
30 # build - threadsafe
31 make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \
32 DIST=$DESTDIR/usr all export
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
42 }