wok-next annotate js/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@19789 1 # SliTaz package receipt v2.
al@19789 2
al@19789 3 PACKAGE="js"
al@20405 4 VERSION="38.2.1"
al@19789 5 CATEGORY="libdevel"
al@19789 6 SHORT_DESC="Mozilla's JavaScript engine written in C/C++"
al@19789 7 MAINTAINER="al.bobylev@gmail.com"
al@19789 8 LICENSE="MPL2"
al@19789 9 WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/js38.html"
al@19789 11
al@20405 12 TARBALL="mozjs-$VERSION.rc0.tar.bz2"
al@20405 13 #WGET_URL="https://people.mozilla.org/~sstangl/$TARBALL"
al@20405 14 # SpiderMonkey no more released separately, URL is wrong, see:
al@20405 15 # https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38
al@20405 16 # Use BLFS 8.1 source mirror:
al@20405 17 WGET_URL="http://ftp.osuosl.org/pub/blfs/8.1/m/$TARBALL"
al@19789 18
al@21078 19 BUILD_DEPENDS="autoconf213 libxt-dev python-dev libx11-dev nspr-dev \
al@20960 20 zlib-dev icu-dev coreutils-file-special"
al@21020 21 SPLIT="$PACKAGE-dev"
al@19789 22
al@20405 23 compile_rules() {
al@20591 24 export CFLAGS=${CFLAGS//-Os/-O2}
al@20591 25 export LDFLAGS=${LDFLAGS//-Os/-O2}
al@20591 26 echo "CFLAGS : $CFLAGS"
al@20591 27 echo "LDFLAGS : $LDFLAGS"
al@20591 28
al@20514 29 fix math
al@20405 30 cd js/src
al@19789 31
al@20405 32 autoconf-2.13 &&
al@19789 33
al@19789 34 ./configure \
al@20405 35 --with-intl-api \
al@20405 36 --with-system-zlib \
al@19789 37 --with-system-ffi \
al@19789 38 --with-system-nspr \
al@20405 39 --with-system-icu \
al@20405 40 --enable-threadsafe \
al@20405 41 --enable-readline \
al@19789 42 $CONFIGURE_ARGS &&
al@21020 43 make &&
al@21020 44 make install || return 1
al@19789 45
al@20405 46 cd $install/usr/include/mozjs-38
al@20405 47 for link in $(find . -type l); do
al@20405 48 header=$(readlink $link)
al@20405 49 rm -f $link
al@20405 50 cp -pv $header $link
al@20405 51 chmod 644 $link
al@20405 52 done
al@20405 53 cd - >/dev/null
al@20405 54
al@20405 55 find $install/usr/include/ \
al@20405 56 $install/usr/lib/pkgconfig/ \
al@19789 57 -type f -exec chmod -v 644 '{}' \;
al@20411 58
al@20411 59 chown -R root:root $install
al@19789 60 }
al@19789 61
al@20405 62 genpkg_rules() {
al@19789 63 case $PACKAGE in
al@20405 64 js)
al@20405 65 copy @std
al@20410 66 rm $fs/usr/lib/libjs_static.ajs
al@20405 67 DEPENDS="icu libicu ncurses nspr readline zlib"
al@20405 68 ;;
al@20405 69 js-dev)
al@20410 70 copy @dev *.ajs
al@20405 71 DEPENDS="js nspr-dev"
al@20405 72 ;;
al@19789 73 esac
al@19789 74 }
al@20443 75