wok-next view bullet/receipt @ rev 20102

Up bullet (2.87)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 29 11:03:19 2017 +0100 (2017-10-29)
parents ce9148142ee8
children c649c7c1a5b0
line source
1 # SliTaz package receipt v2.
3 PACKAGE="bullet"
4 VERSION="2.87"
5 CATEGORY="graphics"
6 SHORT_DESC="3D Real-Time Multiphysics Library"
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="zlib/libpng"
9 WEB_SITE="http://bulletphysics.org"
10 TARBALL="$PACKAGE-$VERSION.tgz"
11 WGET_URL="http://bullet.googlecode.com/files/$TARBALL"
13 BUILD_DEPENDS="cmake mesa-dev freeglut-dev libglu-mesa-dev"
14 SPLIT="bullet bullet-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd build
20 cmake .. \
21 -DBUILD_CPU_DEMOS=OFF \
22 -DBUILD_DEMOS=OFF \
23 -DBUILD_SHARED_LIBS=ON \
24 -DCMAKE_INSTALL_PREFIX=/usr &&
25 make $MAKEFLAGS &&
26 make install DESTDIR=$install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 case $PACKAGE in
33 bullet)
34 DEPENDS="mesa freeglut"
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 ;;
38 bullet-dev)
39 CAT="development|3D Real-Time Multiphysics Library - devel"
40 DEPENDS="bullet pkg-config"
41 mkdir -p $fs/usr/lib
42 cp -a $install/usr/include $fs/usr
43 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
44 cp -a $install/usr/lib/cmake $fs/usr/lib
45 ;;
46 esac
47 }