summaryrefslogtreecommitdiff
blob: d58aa97c3990d46901ab89cba42e495b57ee16a3 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/faad2/faad2-1.1.ebuild,v 1.11 2004/04/26 02:41:35 agriffis Exp $

inherit eutils

HOMEPAGE="http://faac.sourceforge.net/"
SRC_URI="mirror://sourceforge/faac/${P}.tar.gz"
LICENSE="GPL-2"
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."
S="${WORKDIR}/${PN}"
IUSE=""
KEYWORDS="x86 ppc ~sparc amd64"
DEPEND=">=media-libs/libsndfile-1.0.1
	>=sys-devel/libtool-1.4.1-r10
	sys-devel/automake
	sys-devel/autoconf"
SLOT="0"

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/${P}-gentoo.diff
}

src_compile() {
	./bootstrap
	econf || die "econf failed"
	cd frontend
	cp Makefile Makefile.orig
	sed -e "s:CCLD = \$(CC):CCLD = \$(CXX):" Makefile.orig > Makefile
	cd ${S}
	emake || die
}

src_install() {
	einstall
	dodoc AUTHORS ChangeLog INSTALL NEWS README README.linux TODO
}