wok-next view js/receipt @ rev 20215
rsync, x11vnc, xautomation, xinput-calibrator, xlockmore: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 05 09:09:04 2017 +0100 (2017-11-05) |
parents | |
children | ab7c63b80420 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="js"
4 VERSION="17.0.0"
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"
11 TARBALL="mozjs$VERSION.tar.gz"
12 WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL"
14 BUILD_DEPENDS="perl python nspr-dev zlib-dev"
15 SPLIT="js-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd js/src &&
22 sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl &&
24 ./configure \
25 --enable-readline \
26 --enable-threadsafe \
27 --with-system-ffi \
28 --with-system-nspr \
29 $CONFIGURE_ARGS &&
30 make && make install &&
32 find $install/usr/include/js-${VERSION%.*}/ \
33 $install/usr/lib/libmozjs-${VERSION%.*}.a \
34 $install/usr/lib/pkgconfig/mozjs-${VERSION%.*}.pc \
35 -type f -exec chmod -v 644 '{}' \;
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 case $PACKAGE in
42 js) copy @std; DEPENDS="ncurses nspr readline zlib";;
43 js-dev) copy @dev; DEPENDS="js nspr-dev";;
44 esac
45 }