SUMMARY="Tools for using the Ogg Vorbis sound file format"
DESCRIPTION="vorbis-tools - tools for using the Ogg Vorbis sound file format."
HOMEPAGE="http://www.vorbis.com/"
COPYRIGHT="2000-2005 Michael Smith, Stan Seibert and other contributers"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://downloads.xiph.org/releases/vorbis/vorbis-tools-$portVersion.tar.gz"
CHECKSUM_SHA256="db7774ec2bf2c939b139452183669be84fda5774d6400fc57fde37f77624f0b0"
SOURCE_DIR="vorbis-tools-$portVersion"
PATCHES="vorbis_tools-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	vorbis_tools = $portVersion
	cmd:ogg123
	cmd:oggdec
	cmd:oggenc
	cmd:ogginfo
	cmd:vcut
	cmd:vorbiscomment
	"
REQUIRES="
	haiku
	lib:libao
	lib:libcurl
	lib:libFLAC
	lib:libintl
	lib:libogg
	lib:libspeex
	lib:libssl
	lib:libvorbis
	lib:libvorbis
	lib:libvorbisenc
	lib:libvorbisfile
	lib:libz
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libao
	devel:libcurl
	devel:libFLAC
	devel:libogg
	devel:libspeex
	devel:libssl
	devel:libvorbis
	devel:libvorbis
	devel:libvorbisenc
	devel:libvorbisfile
	devel:libz
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:automake
	cmd:autoreconf
	cmd:gcc
	cmd:ld
	cmd:libtoolize
	cmd:make
	cmd:pkg_config
	"

BUILD()
{
	sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
	autoreconf -fi
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
	rm -rf $prefix/lib
}
