SUMMARY="A 2D Physics Engine for Games"
DESCRIPTION="Box2D is a feature rich 2D rigid body physics engine, written in C++. \
It has been used in many games, including Crayon Physics Deluxe, \
winner of the 2008 Independant Game Festival Grand Prize"
HOMEPAGE="http://www.box2d.org"
SOURCE_URI="http://box2d.googlecode.com/files/Box2D_v2.1.2.zip"
LICENSE="MIT"
COPYRIGHT="2007-2009 Erin Catto"
CHECKSUM_SHA256="3b351c3e51c6bf78c3e48a2b51260297f3f309fde389c9bfc21ebd484efbba54"
REVISION="2"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SOURCE_DIR="Box2D_v2.1.2"

PROVIDES="
	box2d
	"

REQUIRES="
	haiku
"

PATCHES="box2d-2.1.2.patch"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:make
	cmd:cmake
	cmd:gcc
	devel:libgl
	devel:libglu
"

BUILD_REQUIRES=""

BUILD()
{
	cd Box2D
	cmake .
	make
}
	
INSTALL()
{
	cd Box2D
	make install
}
