SUMMARY="A lightweight static music DSP library"
DESCRIPTION="Soundpipe is a lightweight music DSP library for musicians \
and creative coders. It exists to bring beautiful sounds to your projects. \
The Soundpipe library is built up of over 100 (and counting!) high quality \
modules, many of which have been ported directly from the time-honored Csound \
synthesis language. These modules can be combined together to build unique sounds."
HOMEPAGE="http://paulbatchelor.github.io/proj/soundpipe.html"
COPYRIGHT="2015 Paul Batchelor"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/PaulBatchelor/Soundpipe/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="2d6f6b155ad93d12f59ae30e2b0f95dceed27e0723147991da6defc6d65eadda"
SOURCE_DIR="Soundpipe-$portVersion"

ARCHITECTURES="all ?x86_gcc2"

PROVIDES="
	soundpipe$secondaryArchSuffix = $portVersion
	devel:libsoundpipe$secondaryArchSuffix
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libsndfile$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libsndfile$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:find
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	PREFIX=$prefix make
}

INSTALL()
{
	PREFIX=$prefix make install
	prepareInstalledDevelLibs libsoundpipe

	mkdir $includeDir
	mv $prefix/include/* $includeDir/
	rm -rf $prefix/include
}
