SUMMARY="Author a DVD-Audio DVD"
DESCRIPTION="A set of tools for authoring and playback of unencrypted \
and uncompressed audio on DVD-Audio discs and hybrid DVD-Audio/Video discs."
HOMEPAGE="http://dvd-audio.sourceforge.net"
COPYRIGHT="2005 Dave Chapman"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://netcologne.dl.sourceforge.net/project/dvd-audio/dvda-author/dvda-author%20older%20versions/Maintained%20original%2005.07%20version/dvda-author-05.07.tar.gz"
CHECKSUM_SHA256="519d59c217c58c6ceda6256bac3b029e3a3ea2d89a0e1ab4bcf7124a5d27b4e5"
SOURCE_DIR="dvda-author-05.07"
PATCHES="dvda_author-05.07.patchset"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	dvda_author$secondaryArchSuffix = $portVersion
	cmd:dvda$secondaryArchSuffix
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libFLAC$secondaryArchSuffix
	lib:libz$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libFLAC$secondaryArchSuffix
	devel:libz$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:awk
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	autoreconf -vfi
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}

TEST()
{
	# No real test at the moment
	make check
}
