void-packages/srcpkgs/bullet/template

34 lines
1 KiB
Bash

# Template file for 'bullet'
pkgname=bullet
_distver=2.82
_revver=r2704
version="${_distver}${_revver}"
wrksrc="${pkgname}-${_distver}-${_revver}"
revision=3
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/"
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
vlicense BulletLicense.txt 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
}
}