wok-next view js185/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="js185"
4 VERSION="1.0.0"
5 CATEGORY="libdevel"
6 SHORT_DESC="JavaScript interpreter and libraries (legacy)"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MPL2"
9 WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/1.8.5"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/js38.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://ftp.mozilla.org/pub/js/$TARBALL"
15 COOKOPTS="force-arch" # different configs, .h
17 BUILD_DEPENDS="perl zip nspr-dev libffi-dev"
18 SPLIT="$PACKAGE-dev"
20 compile_rules() {
21 cd js/src
22 unset CPPFLAGS
24 ./configure \
25 --with-system-nspr \
26 --disable-tests \
27 --enable-ctypes \
28 --enable-threadsafe \
29 --enable-system-ffi \
30 $CONFIGURE_ARGS &&
31 make &&
32 make install || return 1
34 install -Dm755 shell/js -t $install/usr/bin/
35 rm $install/usr/lib/libmozjs185-1.0.a
37 find $install -type f \
38 \( -name '*.h' -o -name '*.tbl' -o -name '*.msg' -o -name '*.a' \) \
39 -exec chmod 644 '{}' \;
40 }
42 genpkg_rules() {
43 case $PACKAGE in
44 js185)
45 copy @std
46 DEPENDS="libffi nspr"
47 ;;
48 js185-dev)
49 copy @dev
50 DEPENDS="js185 nspr-dev"
51 ;;
52 esac
53 }