SUMMARY="Select all joysticks found on the system"
DESCRIPTION="SDLJoytest is a program which will allow the user to select \
from all joysticks found on the system (by SDL), and then test that selected \
joystick or other game controller."
HOMEPAGE="http://sdljoytest.sourceforge.net"
COPYRIGHT="2003 Samuel E. Bray"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="http://downloads.sf.net/sdljoytest/SDLJoytest-GL-$portVersion.tar.bz2"
CHECKSUM_SHA256="306aa4b825ad880e71aac77d410f7a040ee6c1a372eb3d1db3301a8536a3c468"
SOURCE_DIR="SDLJoytest-GL"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	sdljoytest = $portVersion
	cmd:SDLJoytest_GL = $portVersion
	"
REQUIRES="
	haiku
	lib:libGL
	lib:libGLU
	lib:libSDL_1.2
	lib:libSDL_image_1.2
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libGL
	devel:libGLU
	devel:libSDL_1.2
	devel:libSDL_image_1.2
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make
}

INSTALL()
{
	mkdir -p $binDir $manDir/man1
	cp SDLJoytest-GL $binDir
	cp SDLJoytest.1 $manDir/man1
}
