void-packages/srcpkgs/bullet/template

36 lines
1.1 KiB
Text
Raw Normal View History

2014-05-18 14:33:55 +00:00
# Template file for 'bullet'
pkgname=bullet
_distver=2.82
_revver=r2704
version="${_distver}${_revver}"
wrksrc="${pkgname}-${_distver}-${_revver}"
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=1 -DBUILD_DEMOS=0 -DBUILD_MULTITHREADING=1
-DBUILD_EXTRAS=1 -DINSTLAL_LIBS=1 -DINSTALL_EXTRA_LIBS=1"
hostmakedepends="cmake"
short_desc="A 3D Collision Detection and Rigid Body Dynamics Library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="zlib"
homepage="http://www.bulletphysics.com/Bullet/"
update_pattern='bullet-\K[\d.]+-r\d+'
2014-05-18 14:33:55 +00:00
distfiles="http://bullet.googlecode.com/files/${pkgname}-${_distver}-${_revver}.tgz"
checksum=67e4c9eb76f7adf99501d726d8ad5e9b525dfd0843fbce9ca73aaca4ba9eced2
post_install() {
vmkdir usr/lib/pkgconfig
sed "s|VERSION|${version}|g" ${FILESDIR}/bullet.pc > ${DESTDIR}/usr/lib/pkgconfig/bullet.pc
vinstall BulletLicense.txt 644 usr/share/licenses/${pkgname} LICENSE
}
bullet-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
}
}