New port: misc/box2d: 2D physics engine for games

This commit is contained in:
Yuri Victorovich 2019-02-19 04:24:35 +00:00
parent c91d1bf655
commit 1ff350c594
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=493350
5 changed files with 105 additions and 0 deletions

View File

@ -29,6 +29,7 @@
SUBDIR += birthday
SUBDIR += bogosort
SUBDIR += bottlerocket
SUBDIR += box2d
SUBDIR += boxes
SUBDIR += brs
SUBDIR += bsod

24
misc/box2d/Makefile Normal file
View File

@ -0,0 +1,24 @@
# $FreeBSD$
PORTNAME= Box2D
DISTVERSIONPREFIX= v
DISTVERSION= 2.3.1
CATEGORIES= misc
MAINTAINER= yuri@FreeBSD.org
COMMENT= 2D physics engine for games
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/License.txt
USES= cmake pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= erincatto
USE_LDCONFIG= yes
WRKSRC_SUBDIR= ${PORTNAME}
CMAKE_ON= BOX2D_INSTALL BOX2D_BUILD_SHARED
CMAKE_OFF= BOX2D_BUILD_STATIC BOX2D_BUILD_EXAMPLES
.include <bsd.port.mk>

3
misc/box2d/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1550549351
SHA256 (erincatto-Box2D-v2.3.1_GH0.tar.gz) = 75d62738b13d2836cd56647581b6e574d4005a6e077ddefa5d727d445d649752
SIZE (erincatto-Box2D-v2.3.1_GH0.tar.gz) = 1553222

24
misc/box2d/pkg-descr Normal file
View File

@ -0,0 +1,24 @@
Box2D is a 2D physics engine for games.
Collision:
* Continuous collision detection
* Contact callbacks: begin, end, pre-solve, post-solve
* Convex polygons and circles
* Multiple shapes per body
* One-shot contact manifolds
* Dynamic tree broadphase
* Efficient pair management
* Fast broadphase AABB queries
* Collision groups and categories
Physics:
* Continuous physics with time of impact solver
* Persistent body-joint-contact graph
* Island solution and sleep management
* Contact, friction, and restitution
* Stable stacking with a linear-time solver
* Revolute, prismatic, distance, pulley, gear, mouse joint, other joint types
* Joint limits, motors, and friction
* Momentum decoupled position correction
WWW: https://box2d.org/

53
misc/box2d/pkg-plist Normal file
View File

@ -0,0 +1,53 @@
include/Box2D/Box2D.h
include/Box2D/Collision/Shapes/b2ChainShape.h
include/Box2D/Collision/Shapes/b2CircleShape.h
include/Box2D/Collision/Shapes/b2EdgeShape.h
include/Box2D/Collision/Shapes/b2PolygonShape.h
include/Box2D/Collision/Shapes/b2Shape.h
include/Box2D/Collision/b2BroadPhase.h
include/Box2D/Collision/b2Collision.h
include/Box2D/Collision/b2Distance.h
include/Box2D/Collision/b2DynamicTree.h
include/Box2D/Collision/b2TimeOfImpact.h
include/Box2D/Common/b2BlockAllocator.h
include/Box2D/Common/b2Draw.h
include/Box2D/Common/b2GrowableStack.h
include/Box2D/Common/b2Math.h
include/Box2D/Common/b2Settings.h
include/Box2D/Common/b2StackAllocator.h
include/Box2D/Common/b2Timer.h
include/Box2D/Dynamics/Contacts/b2ChainAndCircleContact.h
include/Box2D/Dynamics/Contacts/b2ChainAndPolygonContact.h
include/Box2D/Dynamics/Contacts/b2CircleContact.h
include/Box2D/Dynamics/Contacts/b2Contact.h
include/Box2D/Dynamics/Contacts/b2ContactSolver.h
include/Box2D/Dynamics/Contacts/b2EdgeAndCircleContact.h
include/Box2D/Dynamics/Contacts/b2EdgeAndPolygonContact.h
include/Box2D/Dynamics/Contacts/b2PolygonAndCircleContact.h
include/Box2D/Dynamics/Contacts/b2PolygonContact.h
include/Box2D/Dynamics/Joints/b2DistanceJoint.h
include/Box2D/Dynamics/Joints/b2FrictionJoint.h
include/Box2D/Dynamics/Joints/b2GearJoint.h
include/Box2D/Dynamics/Joints/b2Joint.h
include/Box2D/Dynamics/Joints/b2MotorJoint.h
include/Box2D/Dynamics/Joints/b2MouseJoint.h
include/Box2D/Dynamics/Joints/b2PrismaticJoint.h
include/Box2D/Dynamics/Joints/b2PulleyJoint.h
include/Box2D/Dynamics/Joints/b2RevoluteJoint.h
include/Box2D/Dynamics/Joints/b2RopeJoint.h
include/Box2D/Dynamics/Joints/b2WeldJoint.h
include/Box2D/Dynamics/Joints/b2WheelJoint.h
include/Box2D/Dynamics/b2Body.h
include/Box2D/Dynamics/b2ContactManager.h
include/Box2D/Dynamics/b2Fixture.h
include/Box2D/Dynamics/b2Island.h
include/Box2D/Dynamics/b2TimeStep.h
include/Box2D/Dynamics/b2World.h
include/Box2D/Dynamics/b2WorldCallbacks.h
include/Box2D/Rope/b2Rope.h
lib/Box2D/Box2D-targets-%%CMAKE_BUILD_TYPE%%.cmake
lib/Box2D/Box2D-targets.cmake
lib/cmake/Box2D/Box2DConfig.cmake
lib/cmake/Box2D/UseBox2D.cmake
lib/libBox2D.so
lib/libBox2D.so.2.3.0