wok-next view js/receipt @ rev 20405

Follow BLFS Chapter 9 "General Libraries": up apr, apr-util, aspell, autoconf213 (for js), dbus-glib, enchant, exempi, fftw, glib, glibmm, gmime, gobject-introspection, gsl, js, libboost.

js is 39.7MB / 87.6MB now. Looks like it's proper time to kick off polkit (Hi, Xander! You was right.)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Dec 07 17:39:40 2017 +0200 (2017-12-07)
parents c1d8355335f2
children 7975a302b55c
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 '{}' \;
51 }
53 genpkg_rules() {
54 case $PACKAGE in
55 js)
56 copy @std
57 DEPENDS="icu libicu ncurses nspr readline zlib"
58 ;;
59 js-dev)
60 copy @dev
61 DEPENDS="js nspr-dev"
62 ;;
63 esac
64 }