SUMMARY="A 3D OpenGL Billard Simulator"
DESCRIPTION="
BillardGL is a very nice looking OpenGL pool billiard simulation, which was \
developed within the scope of the course "Computergraphics" at the University \
of Freiburg (Germany)"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2001-2008 Tobias Nopper"
HOMEPAGE="http://www.billardgl.de"

SOURCE_URI="http://prdownloads.sourceforge.net/billardgl/BillardGL-$portVersion.tar.gz"
CHECKSUM_SHA256="9b865b1254aa30125480ec7ea2ce00d91524db066a524b78492545782856df96"

ARCHITECTURES="x86_gcc2 ?x86"

PROVIDES="
	billardgl = $portVersion
	app:BillardGL
	"

REQUIRES="
	haiku
	"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:g++
	cmd:make
	"

SOURCE_DIR="BillardGL-$portVersion/src"

PATCHES="billardgl-$portVersion.patchset"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/BillardGL
	cp BillardGL $appsDir/BillardGL
	cp -r lang $appsDir/BillardGL
	cp -r Texturen $appsDir/BillardGL
	addResourcesToBinaries $portDir/additional-files/haiku_icon.rdef $appsDir/BillardGL/BillardGL
}
