summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2010-09-03 23:01:47 +0000
committerwiz <wiz@pkgsrc.org>2010-09-03 23:01:47 +0000
commitc2bec584f0f4898ccf7dab8625dda13de94ad242 (patch)
treed7732e1f6f66ff542fb98a7ac77f635c393b4474
parent7599dec0359d236ffbc4e3096ee0fd9f56459fbf (diff)
downloadpkgsrc-c2bec584f0f4898ccf7dab8625dda13de94ad242.tar.gz
Initial import of bullet-2.76:
Bullet is a 3D Collision Detection and Rigid Body Dynamics Library for games and animation. Free for commercial use, including Playstation 3, open source under the ZLib License. Discrete and continuous collision detection, integrated into Blender 3D, and COLLADA 1.4 Physics import.
-rw-r--r--devel/bullet/DESCR5
-rw-r--r--devel/bullet/Makefile44
-rw-r--r--devel/bullet/PLIST193
-rw-r--r--devel/bullet/buildlink3.mk14
-rw-r--r--devel/bullet/distinfo6
-rw-r--r--devel/bullet/patches/patch-aa28
6 files changed, 290 insertions, 0 deletions
diff --git a/devel/bullet/DESCR b/devel/bullet/DESCR
new file mode 100644
index 00000000000..656ba5e2c0c
--- /dev/null
+++ b/devel/bullet/DESCR
@@ -0,0 +1,5 @@
+Bullet is a 3D Collision Detection and Rigid Body Dynamics Library
+for games and animation. Free for commercial use, including
+Playstation 3, open source under the ZLib License. Discrete and
+continuous collision detection, integrated into Blender 3D, and
+COLLADA 1.4 Physics import.
diff --git a/devel/bullet/Makefile b/devel/bullet/Makefile
new file mode 100644
index 00000000000..682d797b1a6
--- /dev/null
+++ b/devel/bullet/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/09/03 23:01:47 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= zlib
+
+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"
diff --git a/devel/bullet/PLIST b/devel/bullet/PLIST
new file mode 100644
index 00000000000..a6dc28c4bf6
--- /dev/null
+++ b/devel/bullet/PLIST
@@ -0,0 +1,193 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/09/03 23:01:47 wiz Exp $
+include/Bullet-C-Api.h
+include/BulletCollision/BroadphaseCollision/btAxisSweep3.h
+include/BulletCollision/BroadphaseCollision/btBroadphaseInterface.h
+include/BulletCollision/BroadphaseCollision/btBroadphaseProxy.h
+include/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.h
+include/BulletCollision/BroadphaseCollision/btDbvt.h
+include/BulletCollision/BroadphaseCollision/btDbvtBroadphase.h
+include/BulletCollision/BroadphaseCollision/btDispatcher.h
+include/BulletCollision/BroadphaseCollision/btMultiSapBroadphase.h
+include/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h
+include/BulletCollision/BroadphaseCollision/btOverlappingPairCallback.h
+include/BulletCollision/BroadphaseCollision/btQuantizedBvh.h
+include/BulletCollision/BroadphaseCollision/btSimpleBroadphase.h
+include/BulletCollision/CollisionDispatch/SphereTriangleDetector.h
+include/BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.h
+include/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.h
+include/BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.h
+include/BulletCollision/CollisionDispatch/btBoxBoxDetector.h
+include/BulletCollision/CollisionDispatch/btCollisionConfiguration.h
+include/BulletCollision/CollisionDispatch/btCollisionCreateFunc.h
+include/BulletCollision/CollisionDispatch/btCollisionDispatcher.h
+include/BulletCollision/CollisionDispatch/btCollisionObject.h
+include/BulletCollision/CollisionDispatch/btCollisionWorld.h
+include/BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.h
+include/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.h
+include/BulletCollision/CollisionDispatch/btConvexConcaveCollisionAlgorithm.h
+include/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.h
+include/BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.h
+include/BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.h
+include/BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.h
+include/BulletCollision/CollisionDispatch/btGhostObject.h
+include/BulletCollision/CollisionDispatch/btInternalEdgeUtility.h
+include/BulletCollision/CollisionDispatch/btManifoldResult.h
+include/BulletCollision/CollisionDispatch/btSimulationIslandManager.h
+include/BulletCollision/CollisionDispatch/btSphereBoxCollisionAlgorithm.h
+include/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.h
+include/BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.h
+include/BulletCollision/CollisionDispatch/btUnionFind.h
+include/BulletCollision/CollisionShapes/btBox2dShape.h
+include/BulletCollision/CollisionShapes/btBoxShape.h
+include/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.h
+include/BulletCollision/CollisionShapes/btCapsuleShape.h
+include/BulletCollision/CollisionShapes/btCollisionMargin.h
+include/BulletCollision/CollisionShapes/btCollisionShape.h
+include/BulletCollision/CollisionShapes/btCompoundShape.h
+include/BulletCollision/CollisionShapes/btConcaveShape.h
+include/BulletCollision/CollisionShapes/btConeShape.h
+include/BulletCollision/CollisionShapes/btConvex2dShape.h
+include/BulletCollision/CollisionShapes/btConvexHullShape.h
+include/BulletCollision/CollisionShapes/btConvexInternalShape.h
+include/BulletCollision/CollisionShapes/btConvexPointCloudShape.h
+include/BulletCollision/CollisionShapes/btConvexShape.h
+include/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.h
+include/BulletCollision/CollisionShapes/btCylinderShape.h
+include/BulletCollision/CollisionShapes/btEmptyShape.h
+include/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h
+include/BulletCollision/CollisionShapes/btMaterial.h
+include/BulletCollision/CollisionShapes/btMinkowskiSumShape.h
+include/BulletCollision/CollisionShapes/btMultiSphereShape.h
+include/BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.h
+include/BulletCollision/CollisionShapes/btOptimizedBvh.h
+include/BulletCollision/CollisionShapes/btPolyhedralConvexShape.h
+include/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.h
+include/BulletCollision/CollisionShapes/btShapeHull.h
+include/BulletCollision/CollisionShapes/btSphereShape.h
+include/BulletCollision/CollisionShapes/btStaticPlaneShape.h
+include/BulletCollision/CollisionShapes/btStridingMeshInterface.h
+include/BulletCollision/CollisionShapes/btTetrahedronShape.h
+include/BulletCollision/CollisionShapes/btTriangleBuffer.h
+include/BulletCollision/CollisionShapes/btTriangleCallback.h
+include/BulletCollision/CollisionShapes/btTriangleIndexVertexArray.h
+include/BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.h
+include/BulletCollision/CollisionShapes/btTriangleInfoMap.h
+include/BulletCollision/CollisionShapes/btTriangleMesh.h
+include/BulletCollision/CollisionShapes/btTriangleMeshShape.h
+include/BulletCollision/CollisionShapes/btTriangleShape.h
+include/BulletCollision/CollisionShapes/btUniformScalingShape.h
+include/BulletCollision/Gimpact/btBoxCollision.h
+include/BulletCollision/Gimpact/btClipPolygon.h
+include/BulletCollision/Gimpact/btContactProcessing.h
+include/BulletCollision/Gimpact/btGImpactBvh.h
+include/BulletCollision/Gimpact/btGImpactCollisionAlgorithm.h
+include/BulletCollision/Gimpact/btGImpactMassUtil.h
+include/BulletCollision/Gimpact/btGImpactQuantizedBvh.h
+include/BulletCollision/Gimpact/btGImpactShape.h
+include/BulletCollision/Gimpact/btGenericPoolAllocator.h
+include/BulletCollision/Gimpact/btGeometryOperations.h
+include/BulletCollision/Gimpact/btQuantization.h
+include/BulletCollision/Gimpact/btTriangleShapeEx.h
+include/BulletCollision/Gimpact/gim_array.h
+include/BulletCollision/Gimpact/gim_basic_geometry_operations.h
+include/BulletCollision/Gimpact/gim_bitset.h
+include/BulletCollision/Gimpact/gim_box_collision.h
+include/BulletCollision/Gimpact/gim_box_set.h
+include/BulletCollision/Gimpact/gim_clip_polygon.h
+include/BulletCollision/Gimpact/gim_contact.h
+include/BulletCollision/Gimpact/gim_geom_types.h
+include/BulletCollision/Gimpact/gim_geometry.h
+include/BulletCollision/Gimpact/gim_hash_table.h
+include/BulletCollision/Gimpact/gim_linear_math.h
+include/BulletCollision/Gimpact/gim_math.h
+include/BulletCollision/Gimpact/gim_memory.h
+include/BulletCollision/Gimpact/gim_radixsort.h
+include/BulletCollision/Gimpact/gim_tri_collision.h
+include/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.h
+include/BulletCollision/NarrowPhaseCollision/btConvexCast.h
+include/BulletCollision/NarrowPhaseCollision/btConvexPenetrationDepthSolver.h
+include/BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.h
+include/BulletCollision/NarrowPhaseCollision/btGjkConvexCast.h
+include/BulletCollision/NarrowPhaseCollision/btGjkEpa2.h
+include/BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.h
+include/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.h
+include/BulletCollision/NarrowPhaseCollision/btManifoldPoint.h
+include/BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.h
+include/BulletCollision/NarrowPhaseCollision/btPersistentManifold.h
+include/BulletCollision/NarrowPhaseCollision/btPointCollector.h
+include/BulletCollision/NarrowPhaseCollision/btRaycastCallback.h
+include/BulletCollision/NarrowPhaseCollision/btSimplexSolverInterface.h
+include/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.h
+include/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h
+include/BulletCollision/btBulletCollisionCommon.h
+include/BulletDynamics/Character/btCharacterControllerInterface.h
+include/BulletDynamics/Character/btKinematicCharacterController.h
+include/BulletDynamics/ConstraintSolver/btConeTwistConstraint.h
+include/BulletDynamics/ConstraintSolver/btConstraintSolver.h
+include/BulletDynamics/ConstraintSolver/btContactConstraint.h
+include/BulletDynamics/ConstraintSolver/btContactSolverInfo.h
+include/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.h
+include/BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.h
+include/BulletDynamics/ConstraintSolver/btHinge2Constraint.h
+include/BulletDynamics/ConstraintSolver/btHingeConstraint.h
+include/BulletDynamics/ConstraintSolver/btJacobianEntry.h
+include/BulletDynamics/ConstraintSolver/btPoint2PointConstraint.h
+include/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h
+include/BulletDynamics/ConstraintSolver/btSliderConstraint.h
+include/BulletDynamics/ConstraintSolver/btSolve2LinearConstraint.h
+include/BulletDynamics/ConstraintSolver/btSolverBody.h
+include/BulletDynamics/ConstraintSolver/btSolverConstraint.h
+include/BulletDynamics/ConstraintSolver/btTypedConstraint.h
+include/BulletDynamics/ConstraintSolver/btUniversalConstraint.h
+include/BulletDynamics/Dynamics/btActionInterface.h
+include/BulletDynamics/Dynamics/btContinuousDynamicsWorld.h
+include/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h
+include/BulletDynamics/Dynamics/btDynamicsWorld.h
+include/BulletDynamics/Dynamics/btRigidBody.h
+include/BulletDynamics/Dynamics/btSimpleDynamicsWorld.h
+include/BulletDynamics/Vehicle/btRaycastVehicle.h
+include/BulletDynamics/Vehicle/btVehicleRaycaster.h
+include/BulletDynamics/Vehicle/btWheelInfo.h
+include/BulletDynamics/btBulletDynamicsCommon.h
+include/BulletSoftBody/btSoftBody.h
+include/BulletSoftBody/btSoftBodyConcaveCollisionAlgorithm.h
+include/BulletSoftBody/btSoftBodyHelpers.h
+include/BulletSoftBody/btSoftBodyInternals.h
+include/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.h
+include/BulletSoftBody/btSoftRigidCollisionAlgorithm.h
+include/BulletSoftBody/btSoftRigidDynamicsWorld.h
+include/BulletSoftBody/btSoftSoftCollisionAlgorithm.h
+include/BulletSoftBody/btSparseSDF.h
+include/LinearMath/btAabbUtil2.h
+include/LinearMath/btAlignedAllocator.h
+include/LinearMath/btAlignedObjectArray.h
+include/LinearMath/btConvexHull.h
+include/LinearMath/btDefaultMotionState.h
+include/LinearMath/btGeometryUtil.h
+include/LinearMath/btHashMap.h
+include/LinearMath/btIDebugDraw.h
+include/LinearMath/btList.h
+include/LinearMath/btMatrix3x3.h
+include/LinearMath/btMinMax.h
+include/LinearMath/btMotionState.h
+include/LinearMath/btPoolAllocator.h
+include/LinearMath/btQuadWord.h
+include/LinearMath/btQuaternion.h
+include/LinearMath/btQuickprof.h
+include/LinearMath/btRandom.h
+include/LinearMath/btScalar.h
+include/LinearMath/btSerializer.h
+include/LinearMath/btStackAlloc.h
+include/LinearMath/btTransform.h
+include/LinearMath/btTransformUtil.h
+include/LinearMath/btVector3.h
+include/btBulletCollisionCommon.h
+include/btBulletDynamicsCommon.h
+lib/libBulletCollision.so
+lib/libBulletCollision.so.${PKGVERSION}
+lib/libBulletDynamics.so
+lib/libBulletDynamics.so.${PKGVERSION}
+lib/libBulletSoftBody.so
+lib/libBulletSoftBody.so.${PKGVERSION}
+lib/libLinearMath.so
+lib/libLinearMath.so.${PKGVERSION}
diff --git a/devel/bullet/buildlink3.mk b/devel/bullet/buildlink3.mk
new file mode 100644
index 00000000000..731f4e5e7ab
--- /dev/null
+++ b/devel/bullet/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/09/03 23:01:47 wiz Exp $
+
+BUILDLINK_TREE+= bullet
+
+.if !defined(BULLET_BUILDLINK3_MK)
+BULLET_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.bullet+= bullet>=2.76
+BUILDLINK_PKGSRCDIR.bullet?= ../../devel/bullet
+
+#.include "../../graphics/glut/buildlink3.mk"
+.endif # BULLET_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -bullet
diff --git a/devel/bullet/distinfo b/devel/bullet/distinfo
new file mode 100644
index 00000000000..a1573ed029a
--- /dev/null
+++ b/devel/bullet/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/09/03 23:01:47 wiz Exp $
+
+SHA1 (bullet-2.76.tgz) = 95043d586001387eab50cd773f4082e1a0d6f1b0
+RMD160 (bullet-2.76.tgz) = 2024f8674791e596dd6b605000dad8052a796eed
+Size (bullet-2.76.tgz) = 6193578 bytes
+SHA1 (patch-aa) = de9d5ce6e67c8e5a4a2efa5c67e48bbb790d54ce
diff --git a/devel/bullet/patches/patch-aa b/devel/bullet/patches/patch-aa
new file mode 100644
index 00000000000..4ec436a58fa
--- /dev/null
+++ b/devel/bullet/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/09/03 23:01:47 wiz Exp $
+
+Avoid using obsolete functions.
+
+--- Extras/glui/glui_list.cpp.orig 2008-05-10 18:00:21.000000000 +0000
++++ Extras/glui/glui_list.cpp
+@@ -20,7 +20,7 @@
+
+ #include "glui_internal_control.h"
+ #include <cmath>
+-#include <sys/timeb.h>
++#include <sys/time.h>
+
+ /****************************** GLUI_List::GLUI_List() **********/
+
+@@ -90,9 +90,9 @@ int GLUI_List::mouse_down_handler( in
+ {
+ int tmp_line;
+ unsigned long int ms;
+- timeb time;
+- ftime(&time);
+- ms = time.millitm + (time.time)*1000;
++ struct timeval now;
++ gettimeofday(&now, NULL);
++ ms = now.tv_usec/1000 + now.tv_sec*1000;
+
+ tmp_line = find_line( local_x-x_abs, local_y-y_abs-5 );
+ if ( tmp_line == -1 ) {