wok-next view spidermonkey/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | 8e1b2a143eb3 |
children |
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="devel@slitaz.org"
8 LICENSE="MPL GPL2 LGPL2.1"
9 WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/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="$PACKAGE-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=$install/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 }