wok-next view js/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents f675dd6d4363
children 6477d7f70481
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 cd js/src
26 autoconf-2.13 &&
28 ./configure \
29 --with-intl-api \
30 --with-system-zlib \
31 --with-system-ffi \
32 --with-system-nspr \
33 --with-system-icu \
34 --enable-threadsafe \
35 --enable-readline \
36 $CONFIGURE_ARGS &&
37 make && make install || return 1
39 cd $install/usr/include/mozjs-38
40 for link in $(find . -type l); do
41 header=$(readlink $link)
42 rm -f $link
43 cp -pv $header $link
44 chmod 644 $link
45 done
46 cd - >/dev/null
48 find $install/usr/include/ \
49 $install/usr/lib/pkgconfig/ \
50 -type f -exec chmod -v 644 '{}' \;
52 chown -R root:root $install
53 }
55 genpkg_rules() {
56 case $PACKAGE in
57 js)
58 copy @std
59 rm $fs/usr/lib/libjs_static.ajs
60 DEPENDS="icu libicu ncurses nspr readline zlib"
61 ;;
62 js-dev)
63 copy @dev *.ajs
64 DEPENDS="js nspr-dev"
65 ;;
66 esac
67 }