SUMMARY="A tracker program based upon the AHX format"
DESCRIPTION="
Hively Tracker is a tracker program based upon the AHX format created in the \
mid '90s by Dexter and Pink of Abyss. The format was relatively popular, and \
many songs were created and used in scene productions and games. AHX was \
designed to create a very SID-like sound on the Amiga.
HivelyTracker can import and export modules and instruments in the AHX format, \
but it also improves on AHX in several ways and therefore has its own \
instrument and module formats.
"
HOMEPAGE="http://www.hivelytracker.co.uk/"
SOURCE_URI="svn+http://hivelytracker.googlecode.com/svn/trunk/#r66"
REVISION="1"
LICENSE="BSD (3-clause)"
COPYRIGHT="2010-2013 IRIS & Up Rough"

ARCHITECTURES="x86_gcc2"

PROVIDES="
	hivelytracker = $portVersion
	app:HivelyTracker = $portVersion
	"

REQUIRES="
	haiku
	lib:libsdl
	lib:libfreetype
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libfreetype
	devel:sdl_image
	devel:sdl_ttf
	devel:libz
	cmd:sdl_config
	cmd:make
	cmd:gcc
	"

BUILD()
{
	cd sdl
	make -f Makefile.haiku $jobArgs
	rc hively.rdef
	xres -o hivelytracker hively.rsrc 
}

INSTALL()
{
	mkdir -p $appsDir/HivelyTracker
	cp sdl/hivelytracker $appsDir/HivelyTracker/HivelyTracker
	cp -r Songs Instruments Skins $appsDir/HivelyTracker
	cp -r Docs $appsDir/HivelyTracker

	addAppDeskbarSymlink $appsDir/HivelyTracker/HivelyTracker HivelyTracker
}
