# 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.6.1
release=3
source=(http://kent.dl.sourceforge.net/sourceforge/faac/${name}-${version}.tar.gz)

build() {
	cd $name
	touch INSTALL
	chmod +x bootstrap
	./bootstrap
	./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
}
