wok-next diff spidermonkey/receipt @ rev 8799
(try to) fix dmraid compile_rules()
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Wed Feb 23 00:17:31 2011 +0100 (2011-02-23) |
parents | 6e152ae05ea6 |
children | e1df651a683c |
line diff
1.1 --- a/spidermonkey/receipt Sun Feb 06 19:18:49 2011 +0000 1.2 +++ b/spidermonkey/receipt Wed Feb 23 00:17:31 2011 +0100 1.3 @@ -5,7 +5,7 @@ 1.4 CATEGORY="multimedia" 1.5 SHORT_DESC="Mozilla C implementation of Javascript" 1.6 MAINTAINER="jozee@slitaz.org" 1.7 -DEPENDS="" 1.8 +DEPENDS="nspr" 1.9 BUILD_DEPENDS="" 1.10 SOURCE="js" 1.11 TARBALL="$SOURCE-$VERSION.tar.gz" 1.12 @@ -16,9 +16,19 @@ 1.13 # Rules to configure and make the package. 1.14 compile_rules() 1.15 { 1.16 - cd $src/src 1.17 - make -f Makefile.ref DIST=../_pkg/usr all export 1.18 + cd $src/src 1.19 1.20 + # Fix from Archlinux 1.21 + # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD 1.22 + patch -p0 < $stuff/spidermonkey-Makefile.patch || return 1 1.23 + sed -i 's|include|include/js|' rules.mk || return 1 1.24 + # patch Makefile for threadsafe support with native nspr 1.25 + patch -p2 -i $stuff/spidermonkey-1.7-threadsafe.patch || return 1 1.26 + # FS#16673 1.27 + export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8" 1.28 + # build - threadsafe 1.29 + make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \ 1.30 + DIST=$DESTDIR/usr all export 1.31 } 1.32 1.33 # Rules to gen a SliTaz package suitable for Tazpkg.