SUMMARY="Haiku Audio Ripper Encoder"
DESCRIPTION="
Hare - Haiku Audio Ripper Encoder, formerly known as Flip-Side A.E.
"
HOMEPAGE="http://github.com/HaikuArchives/Hare" 
SRC_URI="git://github.com/HaikuArchives/Hare.git#af69ba7b06"
LICENSE="MIT"
COPYRIGHT="2000 FlipSide Software
	2001-2003 BeUnited.org
	2009-2013 Hare Maintainers
	"

REVISION="1"

ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	Hare = $portVersion
	app:Hare = $portVersion
	"

REQUIRES="
	haiku >= $haikuVersion
	cmd:lame
	cmd:oggenc$secondaryArchSuffix
	cmd:flac$secondaryArchSuffix
	cmd:gogo_enc$secondaryArchSuffix
	lib:libtag$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	devel:libtag$secondaryArchSuffix
	"

BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:cmake
	cmd:make
	"

BUILD()
{
	cmake .
	make
}

INSTALL()
{
	mkdir -p $appsDir/Hare
	cp -r build/* $appsDir/Hare
	addAppDeskbarSymlink $appsDir/Hare/Hare Hare
}
