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="https://github.com/HaikuArchives/GuitarMaster/"
COPYRIGHT="Toxic Labs 2008-2009"
LICENSE="MIT"
REVISION="2"
srcGitRev="51007c785e1504dbfe305beddf94aed8d699e25a"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="5993b48765c4fce050e0d7edb2eb771cd99f038941654af178308329ba7bd74b"
SOURCE_DIR="GuitarMaster-$srcGitRev"

ARCHITECTURES="all ?x86"

PROVIDES="
	guitarmaster = $portVersion
	app:GuitarMaster = $portVersion
	"
REQUIRES="
	haiku
	lib:libGL
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libGL
	"
BUILD_PREREQUIRES="
	cmd:gcc
	"

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
}
