wok annotate spidermonkey/receipt @ rev 9582

Up: dmraid to 1.0.0.rc16-3.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Apr 12 12:07:39 2011 +0000 (2011-04-12)
parents e1df651a683c
children a34b2bcf117e
rev   line source
jozee@3119 1 # SliTaz package receipt.
jozee@3119 2
jozee@3119 3 PACKAGE="spidermonkey"
claudinei@9177 4 VERSION="1.8.0-rc1"
jozee@3119 5 CATEGORY="multimedia"
jozee@3119 6 SHORT_DESC="Mozilla C implementation of Javascript"
jozee@3119 7 MAINTAINER="jozee@slitaz.org"
gokhlayeh@8689 8 DEPENDS="nspr"
jozee@3119 9 BUILD_DEPENDS=""
jozee@3119 10 SOURCE="js"
jozee@3119 11 TARBALL="$SOURCE-$VERSION.tar.gz"
jozee@3119 12 WEB_SITE="http://www.mozilla.org/js/spidermonkey/"
jozee@3119 13 WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL"
jozee@3119 14 TAGS="javascript"
jozee@3119 15
jozee@3119 16 # Rules to configure and make the package.
jozee@3119 17 compile_rules()
jozee@3119 18 {
gokhlayeh@8689 19 cd $src/src
jozee@3119 20
gokhlayeh@8689 21 # Fix from Archlinux
gokhlayeh@8689 22 # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD
pascal@9197 23 #patch -p0 < $stuff/spidermonkey-Makefile.patch || return 1
gokhlayeh@8689 24 sed -i 's|include|include/js|' rules.mk || return 1
gokhlayeh@8689 25 # patch Makefile for threadsafe support with native nspr
gokhlayeh@8689 26 patch -p2 -i $stuff/spidermonkey-1.7-threadsafe.patch || return 1
gokhlayeh@8689 27 # FS#16673
gokhlayeh@8689 28 export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8"
gokhlayeh@8689 29 # build - threadsafe
gokhlayeh@8689 30 make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \
gokhlayeh@8689 31 DIST=$DESTDIR/usr all export
jozee@3119 32 }
jozee@3119 33
jozee@3119 34 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@3119 35 genpkg_rules()
jozee@3119 36 {
jozee@3119 37 mkdir -p $fs/usr/lib
jozee@3119 38
jozee@3119 39 cp -a $_pkg/usr/bin $fs/usr
jozee@3119 40 cp -a $_pkg/usr/lib/*so* $fs/usr/lib
jozee@3119 41 }