SUMMARY="An interactive 'analogue' synth sequencer"
DESCRIPTION="Q is a simple 'analogue' synth that can be controlled via MIDI. \
You don't necessarily need any MIDI equipment, an installed soundfont is \
enough to have some fun. Just twiddle those knobs..."
HOMEPAGE="https://github.com/HaikuArchives/Q"
COPYRIGHT="2001 Masaaki Tani, Dr. Hartmut Reh"
LICENSE="Unknown"
REVISION="2"
srcGitRev="b17751e7256ee51531802dfd1882598f5127b463"
SOURCE_URI="https://github.com/HaikuArchives/q/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="2e311b3e036cfe2913454a9a9b6fdbb1bf1d28761edb11e7907bdb436c964501"
SOURCE_DIR="Q-$srcGitRev"

ARCHITECTURES="!all x86_gcc2"

PROVIDES="
	q = $portVersion
	app:Q = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:make
	"

BUILD()
{
	cd src
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir
	cd src
	cp -af objects/Q $appsDir

	addAppDeskbarSymlink $appsDir/Q
}
