wok view spidermonkey/receipt @ rev 16245

grisbi: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 03 09:22:13 2014 +0000 (2014-04-03)
parents a34b2bcf117e
children 3705d68ed8f3
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 }