2014-03-27 08:32:28 +01:00
|
|
|
# Template file for 'mozjs24'
|
|
|
|
pkgname=mozjs24
|
|
|
|
version=24.2.0
|
2015-06-24 14:08:53 +02:00
|
|
|
revision=5
|
2014-03-27 08:32:28 +01:00
|
|
|
wrksrc="mozjs-${version}"
|
|
|
|
build_wrksrc="js/src"
|
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="zip python perl nspr-devel"
|
|
|
|
makedepends="zlib-devel nspr-devel libedit-devel libffi-devel"
|
|
|
|
short_desc="Mozilla JavaScript interpreter and library (24.x series)"
|
|
|
|
homepage="http://www.mozilla.org/js/"
|
|
|
|
license="MPL-1.1, GPL-2, LGPL-2.1"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-03-27 08:32:28 +01:00
|
|
|
distfiles="${MOZILLA_SITE}/js/mozjs-${version}.tar.bz2"
|
|
|
|
checksum=e62f3f331ddd90df1e238c09d61a505c516fe9fd8c5c95336611d191d18437d8
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
local _args
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
export HOST_CFLAGS="-Os"
|
|
|
|
export HOST_CXXFLAGS="-Os"
|
|
|
|
_args+=" --target=$XBPS_CROSS_TRIPLET"
|
|
|
|
fi
|
|
|
|
|
|
|
|
SHELL=/bin/bash ./configure --prefix=/usr --with-system-nspr \
|
|
|
|
--enable-threadsafe ${_args}
|
|
|
|
}
|
|
|
|
|
|
|
|
mozjs24-devel_package() {
|
|
|
|
depends="nspr-devel ${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/js24-config
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|