wok-next view spidermonkey/receipt @ rev 18273
Up lemon (3.8.11.1), libgnutls (3.3.16)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 07 12:15:29 2015 +0200 (2015-08-07) |
parents | a34b2bcf117e |
children | a7b1395df64a |
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="http://www.mozilla.org/js/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
23 # Fix from Archlinux
24 # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD
25 #patch -p0 < $stuff/spidermonkey-Makefile.patch || return 1
26 sed -i 's|include|include/js|' rules.mk || return 1
27 # patch Makefile for threadsafe support with native nspr
28 patch -p2 -i $stuff/spidermonkey-1.7-threadsafe.patch || return 1
29 # FS#16673
30 export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8"
31 # build - threadsafe
32 make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \
33 DIST=$DESTDIR/usr all export 2>&1 | grep -v 'OBJ/nspr/Version'
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*so* $fs/usr/lib
43 }