wok view spidermonkey/receipt @ rev 24737

updated libevdev and libevdev-dev (1.9.0 -> 1.12.0)
author Hans-G?nter Theisgen
date Wed Mar 16 09:39:00 2022 +0100 (2022-03-16)
parents 6135577f4d08
children 870e1ce31226
line source
1 # SliTaz package receipt.
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 SOURCE="js"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
12 WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL"
13 TAGS="javascript"
15 DEPENDS="nspr"
16 BUILD_DEPENDS="nspr-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
22 sed '/\/js-[0-9]/!d;s|.*js-||;s|.tar.*||' | sort -r | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src/src
29 sed -i 's|uname -m|echo i486|' fdlibm/Makefile.in config/*.mk config.mk
31 # Fix from Archlinux
32 # http://projects.archlinux.org/svntogit/community.git/tree/spidermonkey/trunk/PKGBUILD
33 #patch -p0 < $stuff/spidermonkey-Makefile.patch || return 1
34 sed -i 's|include|include/js|' rules.mk || return 1
35 # patch Makefile for threadsafe support with native nspr
36 patch -p2 -i $stuff/spidermonkey-1.7-threadsafe.patch || return 1
37 # FS#16673
38 export CFLAGS="${CFLAGS} -DJS_C_STRINGS_ARE_UTF8"
39 # build - threadsafe
40 make -j1 -f Makefile.ref BUILD_OPT=1 JS_THREADSAFE=1 \
41 DIST=$DESTDIR/usr all export 2>&1 | grep -v 'OBJ/nspr/Version'
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib/*so* $fs/usr/lib
51 }