# $Id: Portfile,v 1.4 2005/06/04 09:49:32 pguyot Exp $

PortSystem 1.0
name		faac
version		18102004
# this is 1.24+ with important fixes and mp4v2.
categories	audio
maintainers	pguyot@kallisys.net
description	ISO AAC audio encoder
long_description	FAAC is an AAC audio encoder. FAAC currently supports MPEG-4 \
			LTP, MAIN and LOW COMPLEXITY object types and MAIN and LOW \
			MPEG-2 object types. It also supports multichannel and \
			gapless encoding.

homepage	http://www.audiocoding.com/
platforms	darwin
#master_sites	sourceforge
master_sites	${homepage}/snapshot/
checksums	md5 6051e5831aea16848822163b30d9456b
worksrcdir	${name}
use_automake    yes
automake.args   --add-missing
use_autoconf    yes
configure.env	CFLAGS="-D__unix__"
patchfiles	patch-configure.in

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