SUMMARY="A game of musical skill and fast fingers"
DESCRIPTION="
Guitar Master is a Frets on Fire clone made for Haiku. It uses low-resolution \
graphics in order to run on Haiku's software-GL.
Usage: GuitarMaster [/path/to/songsDirectory]
"
HOMEPAGE="http://code.google.com/p/guitarmaster/"
SRC_URI="svn+http://guitarmaster.googlecode.com/svn/trunk/@21"
LICENSE="MIT"
COPYRIGHT="Toxic Labs 2008-2009"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	guitarmaster = $portVersion
	app:guitarmaster = $portVersion
	"

REQUIRES="
	haiku >= $haikuVersion
	"

BUILD_REQUIRES=""
BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:gcc
	"

SRC_FILENAME="download"
SOURCE_DIR="$portName"

BUILD()
{
	g++ -o GuitarMaster -lbe -lGL \
		main.cpp \
		TApp.cpp \
		TGameView.cpp \
		TGraphics.cpp \
		TMainWindow.cpp \
		TMidiReader.cpp
}

INSTALL()
{
	mkdir -p $appsDir
	cp -a GuitarMaster $appsDir
	addAppDeskbarSymlink $appsDir/GuitarMaster
}
