SUMMARY="A free cross-platform MP3 encoder"
DESCRIPTION="
BladeEnc is a free, cross-platform, console-based MP3 encoder, based on the \
ISO reference code. It is mostly intended for high quality encoding in high \
bitrates.
"
HOMEPAGE="http://bladeenc.mp3.no/" 
SOURCE_URI="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/bladeenc-0.94.2-src-stable.tar.gz"
CHECKSUM_SHA256="c5e9dd180f28d1865599d0755e36fa1a4c146bb5e1b7ba9ad099955261fc1164"
REVISION="2"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="1998-2000 Tord Jansson"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	bladeenc = $portVersion
	cmd:bladeenc
"

REQUIRES="
	haiku
"

BUILD_REQUIRES="
	haiku_devel
"

BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	cmd:libtoolize
	cmd:aclocal
	cmd:automake
	cmd:autoconf
"

PATCHES="
	bladeenc-0.94.2.patch
"

BUILD()
{
	libtoolize --force --copy --install
	aclocal
	automake --add-missing
	autoconf
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
}
