void-packages/srcpkgs/v8/template

62 lines
1.7 KiB
Text
Raw Normal View History

2011-12-19 15:19:28 +00:00
# Template file for 'v8'
pkgname=v8
2014-04-09 07:27:00 +00:00
_sonamever=3.24
2014-05-10 11:22:06 +00:00
version=${_sonamever}.35.33
2014-03-08 01:56:35 +00:00
revision=1
2014-02-16 10:25:33 +00:00
hostmakedepends="which python"
makedepends="readline-devel>=6.3"
2011-12-19 15:19:28 +00:00
short_desc="V8 JavaScript Engine"
2014-04-09 07:27:00 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
2011-12-19 15:19:28 +00:00
homepage="http://code.google.com/p/v8/"
license="BSD"
2012-11-06 06:21:25 +00:00
distfiles="http://commondatastorage.googleapis.com/chromium-browser-official/v8-${version}.tar.bz2"
2014-05-10 11:22:06 +00:00
checksum=ebde3d100aa61ee6cdff436ef8cc9291b99f0c246afddd67120838f1b85871ec
2014-04-09 07:27:00 +00:00
2014-03-09 17:44:53 +00:00
case "${XBPS_TARGET_MACHINE}" in
x86_64) _target="x64";;
i686) _target="ia32";;
arm*) _target="arm"; _opts="hardfp=on snapshot=off";;
*) msg_error "$pkgver: unknown target architecture!\n" ;;
esac
2011-12-19 15:19:28 +00:00
2012-11-05 22:02:21 +00:00
do_build() {
2014-03-09 17:44:53 +00:00
if [ $_target = arm ]; then
sed -e "s/m32flag':.*/m32flag':'',/" -i build/toolchain.gypi
fi
2014-03-09 17:44:53 +00:00
LINK=${CXX} make ${makejobs} ${_target} ${_opts} i18nsupport=off \
werror=no library=shared soname_version=${_sonamever} \
console=readline disassembler=on \
CXX.host=${CXX} CXX.link=${CXX} LINK.target=${CXX} \
BUILTYPE=Release
2012-11-05 22:02:21 +00:00
}
do_install() {
2014-03-09 17:44:53 +00:00
vinstall out/${_target}.release/d8 755 usr/bin
vinstall out/${_target}.release/lib.target/libv8.so.${_sonamever} 755 usr/lib
if [ $_target != arm ]; then
vinstall out/${_target}.release/mksnapshot.${_target} 755 usr/bin mksnapshot
fi
vmkdir usr/include
vcopy 'include/v8*.h' usr/include
ln -sfr ${DESTDIR}/usr/lib/libv8.so.${_sonamever} ${DESTDIR}/usr/lib/libv8.so
2011-12-19 15:19:28 +00:00
}
v8-devel_package() {
depends="libv8-${version}_${revision}"
2013-08-21 10:14:51 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/libv8.so
}
}
libv8_package() {
2013-08-21 10:14:51 +00:00
short_desc+=" - runtime library"
pkg_install() {
vmove usr/lib/libv8.so.${_sonamever}
}
}