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