blob: c587fa3d4a89d5b05e6dc285529b65e17895993e (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-0.67.ebuild,v 1.11 2008/02/25 14:02:36 drac Exp $
inherit eutils autotools
DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3."
HOMEPAGE="http://www.mpg123.org"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
IUSE="3dnow 3dnowext alsa altivec esd jack mmx nas oss portaudio sdl sse"
RDEPEND="alsa? ( media-libs/alsa-lib )
sdl? ( !alsa? ( !oss? ( media-libs/libsdl ) ) )
esd? ( !alsa? ( !oss? ( !sdl? ( media-sound/esound ) ) ) )
nas? ( !alsa? ( !oss? ( !sdl? ( !esd? ( media-libs/nas ) ) ) ) )
jack? ( !alsa? ( !oss? ( !sdl? ( !esd? ( !nas? ( media-sound/jack-audio-connection-kit ) ) ) ) ) )
portaudio? ( !alsa? ( !oss? ( !sdl? ( !esd? ( !nas? ( !jack? ( media-libs/portaudio ) ) ) ) ) ) )"
DEPEND="${RDEPEND}"
PROVIDE="virtual/mpg123"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PV}-no-faltivec.patch"
eautoreconf
}
src_compile() {
local audiodev
if use alsa; then
audiodev="alsa"
elif use oss; then
audiodev="oss"
elif use sdl; then
audiodev="sdl"
elif use esd; then
audiodev="esd"
elif use nas; then
audiodev="nas"
elif use jack; then
audiodev="jack"
elif use portaudio; then
audiodev="portaudio";
else audiodev="dummy"
fi
if use altivec; then
myconf="--with-cpu=altivec"
elif use 3dnowext; then
myconf="--with-cpu=3dnowext"
elif use 3dnow; then
myconf="--with-cpu=3dnow"
elif use sse; then
myconf="--with-cpu=sse"
elif use mmx; then
myconf="--with-cpu=mmx"
fi
elog "Compiling with ${audiodev} audio output."
elog "If that is not what you want, then select exactly ONE"
elog "of the following USE flags:"
elog "alsa oss sdl esd nas jack portaudio"
elog "and recompile ${PN}."
econf --with-optimization=0 \
--with-audio=${audiodev} \
${myconf} || die "econf failed."
emake || die "emake failed."
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."
dodoc AUTHORS ChangeLog NEWS README
}
|