wok-next view js/receipt @ rev 21180

updated qt5 again (5.10.1 -> 5.13.0)
author Hans-G?nter Theisgen
date Tue Jul 16 16:52:21 2019 +0100 (2019-07-16)
parents d5aab818505e
children
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/svn/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 libxt-dev python-dev libx11-dev nspr-dev \
20 zlib-dev icu-dev coreutils-file-special"
21 SPLIT="$PACKAGE-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 &&
44 make install || return 1
46 cd $install/usr/include/mozjs-38
47 for link in $(find . -type l); do
48 header=$(readlink $link)
49 rm -f $link
50 cp -pv $header $link
51 chmod 644 $link
52 done
53 cd - >/dev/null
55 find $install/usr/include/ \
56 $install/usr/lib/pkgconfig/ \
57 -type f -exec chmod -v 644 '{}' \;
59 chown -R root:root $install
60 }
62 genpkg_rules() {
63 case $PACKAGE in
64 js)
65 copy @std
66 rm $fs/usr/lib/libjs_static.ajs
67 DEPENDS="icu libicu ncurses nspr readline zlib"
68 ;;
69 js-dev)
70 copy @dev *.ajs
71 DEPENDS="js nspr-dev"
72 ;;
73 esac
74 }