wok-next view spidermonkey/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | f431dfa51f83 |
children | 8e1b2a143eb3 |
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 COOKOPTS="skip-log-errors"
19 compile_rules() {
20 cd $src/src
22 # Fix from Archlinux
23 # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD
24 sed -i 's|include|include/js|' rules.mk || return 1
25 # FS#16673
26 export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8"
27 # build - threadsafe
28 make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \
29 DIST=$DESTDIR/usr all export
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 spidermonkey)
35 copy @std
36 DEPENDS="nspr"
37 TAGS="javascript"
38 ;;
39 *-dev)
40 copy @dev
41 ;;
42 esac
43 }