# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="faad2 MPEG-2 and MPEG-4 AAC audio decoding library (libfaad2)" HOMEPAGE="http://faac.sourceforge.net" SRC_URI="http://faac.sourceforge.net/files/faad2-1.1.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=libsndfile-1.0.4 >=libtool-1.4.1-r10 sys-devel/autoconf sys-devel/automake" # Run-time dependencies, same as DEPEND if RDEPEND isn't defined: #RDEPEND="" S=${WORKDIR}/${PN} src_unpack() { unpack ${P}.tar.gz # since we want version 1.0.4 of libsndfile, we need to change # the name on a single variable, which is what the patch does cd ${S}/frontend/; mv audio.c audio.c.orig sed -e 's/sfinfo\.samples/sfinfo\.frames/' audio.c.orig > audio.c rm audio.c.orig } src_compile() { chmod +x ${S}/bootstrap ${S}/bootstrap econf mv ${S}/frontend/Makefile ${S}/frontend/Makefile.orig sed -e 's/CCLD = \$(CC)/CCLD = \$(CXX)/' ${S}/frontend/Makefile.orig > ${S}/frontend/Makefile rm ${S}/frontend/Makefile.orig emake || die } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README README.linux TODO }