diff options
Diffstat (limited to 'media-libs/faad2/faad2-2.0-r12.ebuild')
-rw-r--r-- | media-libs/faad2/faad2-2.0-r12.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/media-libs/faad2/faad2-2.0-r12.ebuild b/media-libs/faad2/faad2-2.0-r12.ebuild new file mode 100644 index 000000000000..a99f6b9b973f --- /dev/null +++ b/media-libs/faad2/faad2-2.0-r12.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/faad2/faad2-2.0-r12.ebuild,v 1.1 2006/05/13 08:25:15 robbat2 Exp $ + +inherit eutils libtool flag-o-matic autotools + +PATCHLEVEL="5" + +DESCRIPTION="AAC audio decoding library" +HOMEPAGE="http://www.audiocoding.com/" +SRC_URI="mirror://sourceforge/faac/${PN}-${PV/_/-}.tar.gz + mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="xmms" + +RDEPEND="xmms? ( >=media-sound/xmms-1.2.7 + media-libs/id3lib ) + media-libs/libmp4v2" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}" + +src_unpack() { + unpack ${A} + cd ${S} + + EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" + epatch "${FILESDIR}/faad-2.0-xmms.patch" + eautoreconf +} + +src_compile() { + # see #34392 + filter-flags -mfpmath=sse + + # mp4v2 needed for rhythmbox + # drm needed for nothing but doesn't hurt + econf \ + --with-drm \ + $(use_with xmms) \ + + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + + dodoc AUTHORS ChangeLog NEWS README README.linux TODO + + # unneeded include, <systems.h> breaks building of apps, but + # it is necessary because includes <sys/types.h>, + # which is needed by /usr/include/mp4.h... so we just + # include <sys/types.h> instead. See bug #55767 + sed -i -e "s:#include <systems.h>:#include <sys/types.h>:" \ + ${D}/usr/include/mpeg4ip.h + sed -i -e "s:\"mp4ff_int_types.h\":<stdint.h>:" \ + ${D}/usr/include/mp4ff.h + +} |