wok rev 8689

Fix spidermonkey
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Feb 17 19:00:59 2011 +0100 (2011-02-17)
parents dadf43e684cb
children 2e5aecadbe0e
files spidermonkey-dev/receipt spidermonkey/receipt
line diff
     1.1 --- a/spidermonkey-dev/receipt	Thu Feb 17 18:59:56 2011 +0100
     1.2 +++ b/spidermonkey-dev/receipt	Thu Feb 17 19:00:59 2011 +0100
     1.3 @@ -12,7 +12,6 @@
     1.4  genpkg_rules()
     1.5  {
     1.6  	mkdir -p $fs/usr/lib $fs/usr/include/js
     1.7 -	_pkg=$WOK/$WANTED/js/_pkg
     1.8  	cp -a $_pkg/usr/include/* $fs/usr/include/js
     1.9  	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib/	
    1.10  }
     2.1 --- a/spidermonkey/receipt	Thu Feb 17 18:59:56 2011 +0100
     2.2 +++ b/spidermonkey/receipt	Thu Feb 17 19:00:59 2011 +0100
     2.3 @@ -5,7 +5,7 @@
     2.4  CATEGORY="multimedia"
     2.5  SHORT_DESC="Mozilla C implementation of Javascript"
     2.6  MAINTAINER="jozee@slitaz.org"
     2.7 -DEPENDS=""
     2.8 +DEPENDS="nspr"
     2.9  BUILD_DEPENDS=""
    2.10  SOURCE="js"
    2.11  TARBALL="$SOURCE-$VERSION.tar.gz"
    2.12 @@ -16,9 +16,19 @@
    2.13  # Rules to configure and make the package.
    2.14  compile_rules()
    2.15  {
    2.16 -	cd $src/src	
    2.17 -	make -f Makefile.ref DIST=../_pkg/usr all export
    2.18 +	cd $src/src
    2.19  
    2.20 +	# Fix from Archlinux
    2.21 +	# http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD
    2.22 +	patch -p0 < $stuff/spidermonkey-Makefile.patch || return 1
    2.23 +	sed -i 's|include|include/js|' rules.mk || return 1
    2.24 +	# patch Makefile for threadsafe support with native nspr
    2.25 +	patch -p2 -i $stuff/spidermonkey-1.7-threadsafe.patch || return 1
    2.26 +	# FS#16673
    2.27 +	export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8"
    2.28 +	# build - threadsafe
    2.29 +	make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \
    2.30 +		DIST=$DESTDIR/usr all export
    2.31  }
    2.32  
    2.33  # Rules to gen a SliTaz package suitable for Tazpkg.