wok-next view js/receipt @ rev 20856

Update libfm-extra, menu-cache, libfm, pcmanfm
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jun 26 17:13:37 2018 +0300 (2018-06-26)
parents 6477d7f70481
children 65f5c0b7dcd4
line source
1 # SliTaz package receipt v2.
3 PACKAGE="js"
4 VERSION="38.2.1"
5 CATEGORY="libdevel"
6 SHORT_DESC="Mozilla's JavaScript engine written in C/C++"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MPL2"
9 WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/js38.html"
12 TARBALL="mozjs-$VERSION.rc0.tar.bz2"
13 #WGET_URL="https://people.mozilla.org/~sstangl/$TARBALL"
14 # SpiderMonkey no more released separately, URL is wrong, see:
15 # https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38
16 # Use BLFS 8.1 source mirror:
17 WGET_URL="http://ftp.osuosl.org/pub/blfs/8.1/m/$TARBALL"
19 BUILD_DEPENDS="autoconf213 xorg-libXt-dev python-dev xorg-libX11-dev nspr-dev \
20 zlib-dev icu-dev"
21 SPLIT="js-dev"
23 compile_rules() {
24 export CFLAGS=${CFLAGS//-Os/-O2}
25 export LDFLAGS=${LDFLAGS//-Os/-O2}
26 echo "CFLAGS : $CFLAGS"
27 echo "LDFLAGS : $LDFLAGS"
29 fix math
30 cd js/src
32 autoconf-2.13 &&
34 ./configure \
35 --with-intl-api \
36 --with-system-zlib \
37 --with-system-ffi \
38 --with-system-nspr \
39 --with-system-icu \
40 --enable-threadsafe \
41 --enable-readline \
42 $CONFIGURE_ARGS &&
43 make && make install || return 1
45 cd $install/usr/include/mozjs-38
46 for link in $(find . -type l); do
47 header=$(readlink $link)
48 rm -f $link
49 cp -pv $header $link
50 chmod 644 $link
51 done
52 cd - >/dev/null
54 find $install/usr/include/ \
55 $install/usr/lib/pkgconfig/ \
56 -type f -exec chmod -v 644 '{}' \;
58 chown -R root:root $install
59 }
61 genpkg_rules() {
62 case $PACKAGE in
63 js)
64 copy @std
65 rm $fs/usr/lib/libjs_static.ajs
66 DEPENDS="icu libicu ncurses nspr readline zlib"
67 ;;
68 js-dev)
69 copy @dev *.ajs
70 DEPENDS="js nspr-dev"
71 ;;
72 esac
73 }