From feff5905c9a50ae7a00bfc236f7d7cfa27a2699e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 18 May 2014 16:33:55 +0200 Subject: [PATCH] New package: bullet-2.82. --- srcpkgs/bullet-devel | 1 + srcpkgs/bullet/files/bullet.pc | 11 +++++++++++ srcpkgs/bullet/template | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 120000 srcpkgs/bullet-devel create mode 100644 srcpkgs/bullet/files/bullet.pc create mode 100644 srcpkgs/bullet/template diff --git a/srcpkgs/bullet-devel b/srcpkgs/bullet-devel new file mode 120000 index 00000000000..cdf95fe4b13 --- /dev/null +++ b/srcpkgs/bullet-devel @@ -0,0 +1 @@ +bullet \ No newline at end of file diff --git a/srcpkgs/bullet/files/bullet.pc b/srcpkgs/bullet/files/bullet.pc new file mode 100644 index 00000000000..d236b477ffa --- /dev/null +++ b/srcpkgs/bullet/files/bullet.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: bullet +Description: Bullet Continuous Collision Detection and Physics Library +Requires: +Version: VERSION +Libs: -L${libdir} -lBulletDynamics -lBulletCollision -lLinearMath -lBulletSoftBody +Cflags: -I${includedir}/bullet diff --git a/srcpkgs/bullet/template b/srcpkgs/bullet/template new file mode 100644 index 00000000000..218f26d3246 --- /dev/null +++ b/srcpkgs/bullet/template @@ -0,0 +1,34 @@ +# 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 " +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 + 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 + } +}