summaryrefslogtreecommitdiff
path: root/devel/bullet/Makefile
blob: 8821dfdb5429eee19abbbe12f3d312d8e13a1919 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $NetBSD: Makefile,v 1.2 2010/09/03 23:04:02 wiz Exp $
#

DISTNAME=	bullet-2.76
CATEGORIES=	devel
MASTER_SITES=	http://bullet.googlecode.com/files/
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://bullet.googlecode.com/
COMMENT=	Collision detection, soft body and rigid body dynamics library
LICENSE=	mit

PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=	pkg-config
USE_CMAKE=	yes
USE_LANGUAGES=	c c++

PKGCONFIG_OVERRIDE+=	bullet.pc.in
CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE:STRING=Release
CMAKE_ARGS+=	-DBUILD_SHARED_LIBS:BOOL=on
# doesn't install anything without this
CMAKE_ARGS+=	-DINSTALL_LIBS:BOOL=on

# clean up after install rules
post-install:
	${RMDIR} ${DESTDIR}${PREFIX}/include/LinearMath/ibmsdk
	${RMDIR} ${DESTDIR}${PREFIX}/include/LinearMath/CMakeFiles/LinearMath.dir
	${RMDIR} ${DESTDIR}${PREFIX}/include/BulletSoftBody/CMakeFiles/BulletSoftBody.dir
	${RMDIR} ${DESTDIR}${PREFIX}/include/BulletDynamics/ibmsdk
	${RMDIR} ${DESTDIR}${PREFIX}/include/BulletDynamics/CMakeFiles/BulletDynamics.dir/Vehicle
	${RMDIR} ${DESTDIR}${PREFIX}/include/BulletDynamics/CMakeFiles/BulletDynamics.dir/Dynamics
	${RMDIR} ${DESTDIR}${PREFIX}/include/BulletDynamics/CMakeFiles/BulletDynamics.dir/ConstraintSolver
	${RMDIR} ${DESTDIR}${PREFIX}/include/BulletDynamics/CMakeFiles/BulletDynamics.dir/Character
	${RMDIR} ${DESTDIR}${PREFIX}/include/BulletCollision/ibmsdk
	${RMDIR} ${DESTDIR}${PREFIX}/include/BulletCollision/CMakeFiles/BulletCollision.dir/NarrowPhaseCollision
	${RMDIR} ${DESTDIR}${PREFIX}/include/BulletCollision/CMakeFiles/BulletCollision.dir/Gimpact
	${RMDIR} ${DESTDIR}${PREFIX}/include/BulletCollision/CMakeFiles/BulletCollision.dir/CollisionShapes
	${RMDIR} ${DESTDIR}${PREFIX}/include/BulletCollision/CMakeFiles/BulletCollision.dir/CollisionDispatch
	${RMDIR} ${DESTDIR}${PREFIX}/include/BulletCollision/CMakeFiles/BulletCollision.dir/BroadphaseCollision

.include "../../graphics/glut/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"