summaryrefslogtreecommitdiff
blob: 70d515dc3d216f25d7fe863ca080072db8f1dc91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/faad2/faad2-2.0_rc3.ebuild,v 1.1 2003/11/25 14:13:58 foser Exp $

inherit eutils libtool

HOMEPAGE="http://faac.sourceforge.net/"
DESCRIPTION="FAAD2 is the fastest ISO AAC audio decoder available. FAAD2 correctly decodes all MPEG-4 and MPEG-2 MAIN, LOW, LTP, LD and ER object type AAC files."
LICENSE="GPL-2"

SRC_URI="mirror://sourceforge/faac/${PN}-${PV/_/-}.tar.gz"
IUSE=""
S=${WORKDIR}/${PN}

KEYWORDS="~x86 ~ppc ~sparc ~amd64"

DEPEND="virtual/glibc
	sys-devel/automake
	sys-devel/autoconf"

#	xmms? ( >=media-sound/xmms-1.2.7
#		media-libs/id3lib )"

SLOT="0"

src_compile() {

	WANT_AUTOCONF_2_5=1 WANT_AUTOMAKE=1.7 sh ./bootstrap

	# mp4v2 needed for rhythmbox
	# drm needed for nothing but doesn't hurt
	# xmms disabled, needs some makefile fixing
	econf \
		--with-mp4v2 \
		--with-drm \
		--without-xmms \
		|| die

	emake || die

}

src_install() {

	einstall

	# unneeded include, breaks building of apps
	# <foser@gentoo.org>
	dosed "s:#include <systems.h>::" /usr/include/mpeg4ip.h

	dodoc AUTHORS ChangeLog INSTALL NEWS README README.linux TODO

}