# Description: An HE, LC, MAIN and LTP profile MPEG2 and MPEG-4 AAC decoder
# URL: http://www.audiocoding.com/
# Maintainer: Matt Housh, jaeger at morpheus dot net
# Depends on: libsndfile, id3lib, libmp4v2

name=faad2
version=2.7
release=1
source=(http://dl.sourceforge.net/sourceforge/faac/$name-$version.tar.bz2)

build() {
	cd $name-$version
	./configure --prefix=/usr \
		--enable-mp4v2
	(cd libfaad && make DESTDIR=$PKG install)
	(cd common && make DESTDIR=$PKG install)
	install -m 0644 common/mp4ff/mp4ff_int_types.h $PKG/usr/include
}
