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"
SOURCE_URI="https://github.com/teragonaudio/gogo-no-coda/archive/82b1c8ccab661df3413c16435a957da393f93fcb.zip"
CHECKSUM_SHA256="b176cd1c9ced968704b238d27ba63746086e614b6ebc7900c77d371f426e0002"
SOURCE_FILENAME="gogo_no_coda-$portVersion.zip"
LICENSE="GNU LGPL v2"
COPYRIGHT="2001-2003 Respective gogo-no-coda creators"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PATCHES="gogo_no_coda-3.13.patch"

PROVIDES=" 
	gogo_enc$secondaryArchSuffix = $portVersion compat >= 1
	cmd:gogo_enc$secondaryArchSuffix
	"

REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"

BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	cmd:nasm
	"

SOURCE_DIR="gogo-no-coda-82b1c8ccab661df3413c16435a957da393f93fcb"

BUILD()
{
	cd linux
	make $jobArgs
}

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