SUMMARY="A MIDI node creator"
DESCRIPTION="Creates a MIDI (MidiKit2) node for the internal General MIDI \
synthesizer of Haiku.

You can connect it to every BeOS MIDI program that supports the Midi2 Kit. \
With a nice panel you can change all the settings that the internal BeOS \
synthesizer accepts: Sound quality, different patches, pause, volume, reverb, \
and transposition."
HOMEPAGE="https://github.com/HaikuArchives/InternalMIDI"
COPYRIGHT="2001-2008 Werner Freytag
	2009 Haiku"
LICENSE="MIT"
REVISION="1"
srcGitRev="cb9d90ffb17f0d9d6d1af6b1d6889f4f81d212e3"
SOURCE_URI="https://github.com/HaikuArchives/InternalMIDI/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="47c7c58f4fcb287f59fa4d106f640aadc9826e51126b0b5c556759c591c5d41d"
SOURCE_FILENAME="InternalMIDI-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="InternalMIDI-$srcGitRev"

ARCHITECTURES="!all x86_gcc2"

PROVIDES="
	internalmidi = $portVersion
	app:InternalMIDI = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	cd source
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir $docDir

	cd source
	make install TARGET_DIR=$appsDir

	cp -r ../documentation/* $docDir

	addAppDeskbarSymlink $appsDir/InternalMIDI
}
