# $Id: Portfile,v 1.3 2005/06/16 01:46:03 pguyot Exp $

PortSystem 1.0
name		faad2
version		2.0
categories	audio
maintainers	pguyot@kallisys.net
description	Fastest ISO AAC audio decoder.
long_description	FAAD2 is the fastest ISO AAC audio decoder available. \
			FAAD2 correctly decodes all MPEG-4 and MPEG-2 MAIN, LC \
			(Low Complexity), HE (High Efficiency), LTP (Long Term \
			Prediction), LD (Low Delay) and ER (Error Resiliency) \
			object type AAC files.
homepage	http://www.audiocoding.com/
platforms	darwin
master_sites	sourceforge:faac
checksums	md5 1a6f79365f2934a4888b210ef47a3a07
worksrcdir	${name}
patchfiles	patch-Makefile.am patch-mp4ffint.h

pre-configure	{
	system "cd ${worksrcpath} && aclocal -I . && autoheader && glibtoolize --automake --copy"
	reinplace "s|-flat_namespace -undefined suppress|-undefined error|g" "${worksrcpath}/aclocal.m4"
}

use_automake	yes
automake.args	--add-missing --copy
use_autoconf	yes
