wok-next annotate js/receipt @ rev 19884
libxklavier: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 07 14:53:11 2017 +0200 (2017-10-07) |
parents | |
children | ab7c63b80420 |
rev | line source |
---|---|
al@19789 | 1 # SliTaz package receipt v2. |
al@19789 | 2 |
al@19789 | 3 PACKAGE="js" |
al@19789 | 4 VERSION="17.0.0" |
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@19789 | 10 |
al@19789 | 11 TARBALL="mozjs$VERSION.tar.gz" |
al@19789 | 12 WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL" |
al@19789 | 13 |
al@19789 | 14 BUILD_DEPENDS="perl python nspr-dev zlib-dev" |
al@19789 | 15 SPLIT="js-dev" |
al@19789 | 16 |
al@19789 | 17 # Rules to configure and make the package. |
al@19789 | 18 compile_rules() |
al@19789 | 19 { |
al@19789 | 20 cd js/src && |
al@19789 | 21 |
al@19789 | 22 sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl && |
al@19789 | 23 |
al@19789 | 24 ./configure \ |
al@19789 | 25 --enable-readline \ |
al@19789 | 26 --enable-threadsafe \ |
al@19789 | 27 --with-system-ffi \ |
al@19789 | 28 --with-system-nspr \ |
al@19789 | 29 $CONFIGURE_ARGS && |
al@19789 | 30 make && make install && |
al@19789 | 31 |
al@19789 | 32 find $install/usr/include/js-${VERSION%.*}/ \ |
al@19789 | 33 $install/usr/lib/libmozjs-${VERSION%.*}.a \ |
al@19789 | 34 $install/usr/lib/pkgconfig/mozjs-${VERSION%.*}.pc \ |
al@19789 | 35 -type f -exec chmod -v 644 '{}' \; |
al@19789 | 36 } |
al@19789 | 37 |
al@19789 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19789 | 39 genpkg_rules() |
al@19789 | 40 { |
al@19789 | 41 case $PACKAGE in |
al@19789 | 42 js) copy @std; DEPENDS="ncurses nspr readline zlib";; |
al@19789 | 43 js-dev) copy @dev; DEPENDS="js nspr-dev";; |
al@19789 | 44 esac |
al@19789 | 45 } |