summaryrefslogtreecommitdiff
blob: 6df4ba7c3a3c677a3fa0a5b1c55d991e2b5c89e7 (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.9 2004/01/26 00:33:21 vapier 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
	>=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
	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
}