SUMMARY="The MAD id3tag library" 
DESCRIPTION="The MAD id3tag library" 
HOMEPAGE="http://www.underbit.com/products/mad/" 
SRC_URI="ftp://ftp.mars.org/pub/mpeg/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151"
REVISION="1"
ARCHITECTURES="x86_gcc2"

PROVIDES="
	$portName = $portVersion
	lib:libid3tag = 0.3.0 compat = 0
"

REQUIRES="
	haiku >= $haikuVersion
	lib:libz
	"

BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	devel:libz
	"
BUILD_PREREQUIRES="
	cmd:libtoolize
	cmd:autoconf
	cmd:make
	cmd:gcc
	"

PATCHES="$portName-$portVersion.patchset"
BUILD()
{
	libtoolize --force --copy --install
	aclocal
	autoconf
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
	prepareInstalledDevelLib libid3tag
	packageEntries devel $developDir
}

TEST()
{
	make test
	make check
}

LICENSE="GNU GPL v2"
COPYRIGHT="2000-2004 Underbit Technologies, Inc."

PROVIDES_devel="
	devel:libid3tag
"

REQUIRES_devel="
	$portName == $portVersion base
"
