2011-07-12 16:53:07 +00:00
|
|
|
# Template file for 'js'
|
|
|
|
pkgname=js
|
|
|
|
version=1.8.5
|
2014-12-19 08:57:58 +00:00
|
|
|
revision=7
|
2011-07-12 16:53:07 +00:00
|
|
|
build_wrksrc="js/src"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-02-05 08:19:33 +00:00
|
|
|
hostmakedepends="zip python perl nspr-devel"
|
|
|
|
makedepends="nspr-devel"
|
2011-07-12 16:53:07 +00:00
|
|
|
short_desc="Spidermonkey JavaScript interpreter and library"
|
2013-03-29 22:49:22 +00:00
|
|
|
homepage="https://developer.mozilla.org/en/docs/SpiderMonkey"
|
|
|
|
license="MPL-1.1, GPL-2, LGPL-2.1"
|
2011-07-12 16:53:07 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-04-12 14:52:48 +00:00
|
|
|
distfiles="${MOZILLA_SITE}/js/js185-1.0.0.tar.gz"
|
2011-07-12 16:53:07 +00:00
|
|
|
checksum=5d12f7e1f5b4a99436685d97b9b7b75f094d33580227aa998c406bbae6f2a687
|
2014-02-05 08:19:33 +00:00
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
local _args
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
export HOST_CC=cc
|
|
|
|
export HOST_CXX=g++
|
|
|
|
export HOST_CFLAGS="-Os -DFORCE_LITTLE_ENDIAN"
|
|
|
|
export HOST_CXXFLAGS="-Os -DFORCE_LITTLE_ENDIAN"
|
|
|
|
|
|
|
|
case "$XBPS_MACHINE" in
|
|
|
|
armv6l*) _args+=" --with-cpu-arch=armv6";;
|
|
|
|
armv7l*) _args+=" --with-cpu-arch=armv7";;
|
|
|
|
esac
|
|
|
|
_args+=" --target=$XBPS_CROSS_TRIPLET"
|
|
|
|
|
|
|
|
sed -e "s,-march=armv7-a -marm -mfloat-abi=softfp,${CFLAGS},g" -i configure
|
|
|
|
sed -e "s,-march=armv7 -marm -msoftfp,${CFLAGS},g" -i configure
|
|
|
|
fi
|
|
|
|
|
|
|
|
./configure --prefix=/usr --with-system-nspr --enable-threadsafe ${_args}
|
|
|
|
|
|
|
|
sed -e 's,-L/usr/lib,,g' -i config/autoconf.mk
|
|
|
|
}
|
2011-07-12 16:53:07 +00:00
|
|
|
|
2013-04-12 14:52:48 +00:00
|
|
|
js-devel_package() {
|
2014-02-05 08:19:33 +00:00
|
|
|
depends="nspr-devel js>=${version}_${revision}"
|
2013-04-12 14:52:48 +00:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2014-02-05 08:19:33 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 14:52:48 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|