SUMMARY="Why Another Audio Video Engine"
DESCRIPTION="Waave intent to be a simple, modular and multi-contextual \
audio/video library based on FFmpeg and SDL. Its name refers to a natural \
question you can ask yourself : Why Another Audio Video Engine ?"
HOMEPAGE="http://waave.sourceforge.net/"
COPYRIGHT="2012 Baptiste Pellegrin"
LICENSE="GNU GPL v3"
REVISION="4"
SOURCE_URI="https://downloads.sourceforge.net/waave/waave-$portVersion.tar.gz"
CHECKSUM_SHA256="f4f151b0e7f858de819f499443bb46ba08b55e488ed3c5dc30473b593100801e"

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

PROVIDES="
	waave$secondaryArchSuffix = $portVersion
	cmd:waaveplayer$secondaryArchSuffix
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libavcodec$secondaryArchSuffix
	lib:libavformat$secondaryArchSuffix
	lib:libavutil$secondaryArchSuffix
	lib:libSDL$secondaryArchSuffix
	lib:libswresample$secondaryArchSuffix
	lib:libswscale$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libavcodec$secondaryArchSuffix
	devel:libavformat$secondaryArchSuffix
	devel:libavutil$secondaryArchSuffix
	devel:libSDL$secondaryArchSuffix
	devel:libswresample$secondaryArchSuffix
	devel:libswscale$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:diff
	cmd:gcc$secondaryArchSuffix
	cmd:make
	cmd:pkg_config$secondaryArchSuffix
	"

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

INSTALL()
{
	make install
}
