wok-next annotate js/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 65f5c0b7dcd4 |
children | d5aab818505e |
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@20405 | 19 BUILD_DEPENDS="autoconf213 xorg-libXt-dev python-dev xorg-libX11-dev nspr-dev \ |
al@20960 | 20 zlib-dev icu-dev coreutils-file-special" |
al@19789 | 21 SPLIT="js-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@20405 | 43 make && make install || return 1 |
al@19789 | 44 |
al@20405 | 45 cd $install/usr/include/mozjs-38 |
al@20405 | 46 for link in $(find . -type l); do |
al@20405 | 47 header=$(readlink $link) |
al@20405 | 48 rm -f $link |
al@20405 | 49 cp -pv $header $link |
al@20405 | 50 chmod 644 $link |
al@20405 | 51 done |
al@20405 | 52 cd - >/dev/null |
al@20405 | 53 |
al@20405 | 54 find $install/usr/include/ \ |
al@20405 | 55 $install/usr/lib/pkgconfig/ \ |
al@19789 | 56 -type f -exec chmod -v 644 '{}' \; |
al@20411 | 57 |
al@20411 | 58 chown -R root:root $install |
al@19789 | 59 } |
al@19789 | 60 |
al@20405 | 61 genpkg_rules() { |
al@19789 | 62 case $PACKAGE in |
al@20405 | 63 js) |
al@20405 | 64 copy @std |
al@20410 | 65 rm $fs/usr/lib/libjs_static.ajs |
al@20405 | 66 DEPENDS="icu libicu ncurses nspr readline zlib" |
al@20405 | 67 ;; |
al@20405 | 68 js-dev) |
al@20410 | 69 copy @dev *.ajs |
al@20405 | 70 DEPENDS="js nspr-dev" |
al@20405 | 71 ;; |
al@19789 | 72 esac |
al@19789 | 73 } |
al@20443 | 74 |