SUMMARY="A tracker program based upon the AHX format"
DESCRIPTION="HivelyTracker 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/"
COPYRIGHT="2010-2013 IRIS & Up Rough"
LICENSE="BSD (3-clause)"
REVISION="2"
SOURCE_URI="https://github.com/pete-gordon/hivelytracker/archive/V1_8.zip"
CHECKSUM_SHA256="92ded85779c1d7b388cc09df6d02cd7aa07692092cf337ef87cd71fd8aa6d11a"
SOURCE_DIR="hivelytracker-1_8"

ARCHITECTURES="x86_gcc2"

PROVIDES="
	hivelytracker = $portVersion
	app:HivelyTracker = $portVersion
	"
REQUIRES="
	haiku
	dejavu
	lib:libfreetype
	lib:libsdl
	"

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

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
}
