SUMMARY="Mp3 encoder based on LAME3.88"
DESCRIPTION="
Mp3 encoder based on LAME3.88, which is optimized for Enhanced 3D \
Now!/SSE/SSE2 and dual-CPUs.
"
HOMEPAGE="https://github.com/teragonaudio/gogo-no-coda"
COPYRIGHT="2001-2003 Respective gogo-no-coda creators"
LICENSE="GNU LGPL v2"
REVISION="2"
SOURCE_URI="https://github.com/teragonaudio/gogo-no-coda/archive/82b1c8ccab661df3413c16435a957da393f93fcb.zip"
CHECKSUM_SHA256="4171bd2c085af61ea2281f0ebd483f93ed9f2808ada321cea48187dbdbb4c447"
SOURCE_FILENAME="gogo_no_coda-$portVersion.zip"
SOURCE_DIR="gogo-no-coda-82b1c8ccab661df3413c16435a957da393f93fcb"
PATCHES="gogo_no_coda-3.13.patch"

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

PROVIDES="
	gogo_no_coda$secondaryArchSuffix = $portVersion
	cmd:gogo$secondaryArchSuffix
	cmd:gogo_enc$secondaryArchSuffix
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	cmd:nasm
	"

BUILD()
{
	cd linux
	make $jobArgs
}

INSTALL()
{
	cd linux
	mkdir -p $prefix/bin
	make install prefix=$prefix
}
