SUMMARY="Open Sound System"
DESCRIPTION="Open Sound System audio drivers"
HOMEPAGE="http://developer.opensound.com/" 
LICENSE="BSD (2-clause)"
COPYRIGHT="1996-2008 Hannu Savolainen and Dev Mazumdar"
SRC_URI="git://opensound.git.sourceforge.net/gitroot/opensound/opensound"
REVISION="1"
#CHECKSUM_MD5=""
ARCHITECTURES="?x86_gcc2 ?x86"

PROVIDES="
	opensound$secondaryArchSuffix = $portVersion
	cmd:ossplay$secondaryArchSuffix
	cmd:ossinfo$secondaryArchSuffix
	cmd:ossmix$secondaryArchSuffix
	cmd:ossphone$secondaryArchSuffix
	cmd:ossrecord$secondaryArchSuffix
	cmd:osstest$secondaryArchSuffix
	cmd:savemixer$secondaryArchSuffix
	cmd:vmixctl$secondaryArchSuffix
	"

REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	"

BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:awk
	cmd:find
	cmd:make
	"

GLOBAL_WRITABLE_FILES="settings/kernel/drivers directory keep-old"

BUILD()
{
	mkdir -p build
	cd build
	../configure --config-midi=NO --config-vmix=NO
	make
}

INSTALL()
{
	cd build
	make build SYSTEM_DIR=system
	copyattr -d -r prototype/system/* $prefix/
	copyattr -d -r prototype/home/config/settings/* $settingsDir/
}
