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