SUMMARY="Fluidsynth is a software real-time synthesizer"
DESCRIPTION="
Fluidsynth is a software real-time synthesizer based on the Soundfont 2 \
specifications.
"
HOMEPAGE="http://www.fluidsynth.org/" 
SRC_URI="http://sourceforge.net/projects/fluidsynth/files/fluidsynth-1.1.6/fluidsynth-1.1.6.tar.bz2/download"
CHECKSUM_SHA256="d28b47dfbf7f8e426902ae7fa2981d821fbf84f41da9e1b85be933d2d748f601"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2007-2012 Josh Green, Pedro Lopez-Cabanillas, David Henningsson"

REVISION="1"
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"

PROVIDES="
	fluidsynth$secondaryArchSuffix = $portVersion
	lib:libfluidsynth$secondaryArchSuffix
	"

REQUIRES="
	haiku$secondayArchSuffix >= $haikuVersion
	lib:libsndfile$secondaryArchSuffix
	lib:libreadline
#	lib:glib
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	"

BUILD_PREREQUIRES="
	cmd:cmake
	cmd:make
	cmd:gcc$secondaryArchSuffix
	"

BUILD()
{
	cmake .
	make $jobArgs
}

INSTALL()
{
	make install
}
