summaryrefslogtreecommitdiff
blob: 8d5eb1fd78167d70720bec56c671568c5a624bf7 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/media-sound/mad/mad-0.14.2b-r1.ebuild,v 1.4 2002/07/21 03:07:46 seemant Exp $

S=${WORKDIR}/${P}
HOMEPAGE="http://mad.sourceforge.net/"
DESCRIPTION="A high-quality MP3 decoder"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

DEPEND="sys-devel/ld.so
	esd? ( media-sound/esound )"
RDEPEND="nls? ( sys-devel/gettext )"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc"

src_compile() {
	local myconf

	use esd || myconf="${myconf} --without-esd"
	use nls || myconf="${myconf} --disable-nls"

	econf \
		--enable-static \
		--enable-shared \
		${myconf} || die
	emake || die
}

src_install () {
	make DESTDIR=${D} install || die

	dodoc CHANGES COPY* CREDITS README TODO VERSION
}