wok-next annotate js/receipt @ rev 20514
ardour, gdal, icu, js, jsoncpp, libvpx, llvm, mesa, minetest, opencv, qt5, scilab, webkit2gtk, webkitgtk, xalan-c: remove std.patch, use `fix math`.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 21 16:15:19 2018 +0200 (2018-03-21) |
parents | 0e7893ac206d |
children | ba185924812c |
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@20405 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/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@20405 | 20 zlib-dev icu-dev" |
al@19789 | 21 SPLIT="js-dev" |
al@19789 | 22 |
al@20405 | 23 compile_rules() { |
al@20514 | 24 fix math |
al@20405 | 25 cd js/src |
al@19789 | 26 |
al@20405 | 27 autoconf-2.13 && |
al@19789 | 28 |
al@19789 | 29 ./configure \ |
al@20405 | 30 --with-intl-api \ |
al@20405 | 31 --with-system-zlib \ |
al@19789 | 32 --with-system-ffi \ |
al@19789 | 33 --with-system-nspr \ |
al@20405 | 34 --with-system-icu \ |
al@20405 | 35 --enable-threadsafe \ |
al@20405 | 36 --enable-readline \ |
al@19789 | 37 $CONFIGURE_ARGS && |
al@20405 | 38 make && make install || return 1 |
al@19789 | 39 |
al@20405 | 40 cd $install/usr/include/mozjs-38 |
al@20405 | 41 for link in $(find . -type l); do |
al@20405 | 42 header=$(readlink $link) |
al@20405 | 43 rm -f $link |
al@20405 | 44 cp -pv $header $link |
al@20405 | 45 chmod 644 $link |
al@20405 | 46 done |
al@20405 | 47 cd - >/dev/null |
al@20405 | 48 |
al@20405 | 49 find $install/usr/include/ \ |
al@20405 | 50 $install/usr/lib/pkgconfig/ \ |
al@19789 | 51 -type f -exec chmod -v 644 '{}' \; |
al@20411 | 52 |
al@20411 | 53 chown -R root:root $install |
al@19789 | 54 } |
al@19789 | 55 |
al@20405 | 56 genpkg_rules() { |
al@19789 | 57 case $PACKAGE in |
al@20405 | 58 js) |
al@20405 | 59 copy @std |
al@20410 | 60 rm $fs/usr/lib/libjs_static.ajs |
al@20405 | 61 DEPENDS="icu libicu ncurses nspr readline zlib" |
al@20405 | 62 ;; |
al@20405 | 63 js-dev) |
al@20410 | 64 copy @dev *.ajs |
al@20405 | 65 DEPENDS="js nspr-dev" |
al@20405 | 66 ;; |
al@19789 | 67 esac |
al@19789 | 68 } |
al@20443 | 69 |