void-packages/srcpkgs/mozjs17/template

42 lines
1.1 KiB
Bash
Raw Normal View History

2013-09-26 11:54:34 +00:00
# Template file for 'mozjs17'
pkgname=mozjs17
version=17.0.0
revision=3
2013-09-26 11:54:34 +00:00
wrksrc="mozjs${version}"
build_wrksrc="js/src"
build_style=gnu-configure
2014-01-23 22:34:48 +00:00
hostmakedepends="zip python perl nspr-devel"
2013-09-26 11:54:34 +00:00
makedepends="zlib-devel nspr-devel libedit-devel libffi-devel"
short_desc="Mozilla JavaScript interpreter and library"
homepage="http://www.mozilla.org/js/"
license="MPL-1.1, GPL-2, LGPL-2.1"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2013-09-26 11:54:34 +00:00
distfiles="${MOZILLA_SITE}/js/mozjs${version}.tar.gz"
checksum=321e964fe9386785d3bf80870640f2fa1c683e32fe988eeb201b04471c172fba
2014-01-23 22:27:17 +00:00
do_configure() {
local _args
if [ "$CROSS_BUILD" ]; then
export HOST_CFLAGS="-Os"
export HOST_CXXFLAGS="-Os"
_args+=" --target=$XBPS_CROSS_TRIPLET"
fi
./configure --prefix=/usr --with-system-nspr \
--enable-threadsafe ${_args}
sed -e 's,-L/usr/lib,,g' -i config/autoconf.mk
}
2013-09-26 11:54:34 +00:00
mozjs17-devel_package() {
2014-01-23 22:27:17 +00:00
depends="nspr-devel ${sourcepkg}>=${version}_${revision}"
2013-09-26 11:54:34 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/js17-config
vmove usr/include
vmove "usr/lib/*.a"
vmove usr/lib/pkgconfig
}
}