SUMMARY="Tracker program to create small sized electronic music"
DESCRIPTION="
ProTrekkr (formerly known as NoiseTrekker by Juan Antonio Arguelles Rius aka \
Arguru) is a tracker program combining a software synthesizer together with a \
traditional samples tracker which can be used to create electronic music (like \
psytrance, trance goa, hard acid, IDM, chip, techno, etc.) for small sized \
intros, demos or games.
"
HOMEPAGE="http://code.google.com/p/protrekkr/"
COPYRIGHT="2008-2010 Franck Charlet.
Based on Juan Antonio Arguelles Rius's NoiseTrekker.
	"
LICENSE="BSD (3-clause)"
SRC_URI="svn+http://protrekkr.googlecode.com/svn/trunk/#670"
REVISION="2"
ARCHITECTURES="x86"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
	# x86_gcc2 is fine as primary target architecture as long as we're building
	# for a different secondary architecture.
	ARCHITECTURES="$ARCHITECTURES x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	protrekkr${secondaryArchSuffix} = $portVersion
	app:Protrekkr = $portVersion
	"

REQUIRES="
	haiku${secondaryArchSuffix} >= $haikuVersion
	lib:libSDL$secondaryArchSuffix
	"
BUILD_REQUIRES="
	devel:libSDL$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	cmd:gcc${secondaryArchSuffix}
	cmd:ld${secondaryArchSuffix}
	cmd:make
	"

PATCHES="protrekkr-2.5.4.patchset"
BUILD()
{
	make -f makefile.haiku
}

INSTALL()
{
	TARGET_DIR=$appsDir/Protrekkr
	mkdir -p $TARGET_DIR
	cd release/distrib
	cp -r history.txt instruments license.txt modules presets ptk_haiku replay reverbs skins $TARGET_DIR
	addAppDeskbarSymlink $TARGET_DIR/ptk_haiku Protrekkr
}
