wok-next view spidermonkey/receipt @ rev 20496
Packages with tag "Xfce": fix (b)deps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 14 17:14:32 2018 +0200 (2018-03-14) |
parents | 44d062fcbe9b |
children | f431dfa51f83 |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://www.mozilla.org/js/spidermonkey/"
11 TARBALL="js-$VERSION.tar.gz"
12 WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL"
14 BUILD_DEPENDS="nspr-dev"
15 SPLIT="spidermonkey-dev"
17 compile_rules() {
18 cd $src/src
20 # Fix from Archlinux
21 # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD
22 #patch -p0 < $stuff/spidermonkey-Makefile.patch || return 1
23 sed -i 's|include|include/js|' rules.mk || return 1
24 # patch Makefile for threadsafe support with native nspr
25 patch -p2 -i $stuff/spidermonkey-1.7-threadsafe.patch || return 1
26 # FS#16673
27 export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8"
28 # build - threadsafe
29 make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \
30 DIST=$DESTDIR/usr all export 2>&1 | grep -v 'OBJ/nspr/Version'
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 spidermonkey)
36 mkdir -p $fs/usr/lib
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib/*so* $fs/usr/lib
40 DEPENDS="nspr"
41 TAGS="javascript"
42 ;;
43 *-dev)
44 mkdir -p $fs/usr/lib $fs/usr/include/js
45 cp -a $install/usr/include/js/* $fs/usr/include/js
46 cp -a $install/usr/lib/*.*a $fs/usr/lib/
47 ;;
48 esac
49 }