/[gentoo-x86]/media-sound/mpg123/mpg123-0.67.ebuild
Gentoo

Contents of /media-sound/mpg123/mpg123-0.67.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Thu Apr 17 18:32:22 2008 UTC (11 years, 5 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Version bump.
(Portage version: 2.1.5_rc4)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-0.67.ebuild,v 1.11 2008/02/25 14:02:36 drac Exp $
4
5 inherit eutils autotools
6
7 DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3."
8 HOMEPAGE="http://www.mpg123.org"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10
11 LICENSE="GPL-2 LGPL-2.1"
12 SLOT="0"
13 KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
14 IUSE="3dnow 3dnowext alsa altivec esd jack mmx nas oss portaudio sdl sse"
15
16 RDEPEND="alsa? ( media-libs/alsa-lib )
17 sdl? ( !alsa? ( !oss? ( media-libs/libsdl ) ) )
18 esd? ( !alsa? ( !oss? ( !sdl? ( media-sound/esound ) ) ) )
19 nas? ( !alsa? ( !oss? ( !sdl? ( !esd? ( media-libs/nas ) ) ) ) )
20 jack? ( !alsa? ( !oss? ( !sdl? ( !esd? ( !nas? ( media-sound/jack-audio-connection-kit ) ) ) ) ) )
21 portaudio? ( !alsa? ( !oss? ( !sdl? ( !esd? ( !nas? ( !jack? ( media-libs/portaudio ) ) ) ) ) ) )"
22 DEPEND="${RDEPEND}"
23
24 PROVIDE="virtual/mpg123"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29 epatch "${FILESDIR}/${PV}-no-faltivec.patch"
30 eautoreconf
31 }
32
33 src_compile() {
34 local audiodev
35 if use alsa; then
36 audiodev="alsa"
37 elif use oss; then
38 audiodev="oss"
39 elif use sdl; then
40 audiodev="sdl"
41 elif use esd; then
42 audiodev="esd"
43 elif use nas; then
44 audiodev="nas"
45 elif use jack; then
46 audiodev="jack"
47 elif use portaudio; then
48 audiodev="portaudio";
49 else audiodev="dummy"
50 fi
51
52 if use altivec; then
53 myconf="--with-cpu=altivec"
54 elif use 3dnowext; then
55 myconf="--with-cpu=3dnowext"
56 elif use 3dnow; then
57 myconf="--with-cpu=3dnow"
58 elif use sse; then
59 myconf="--with-cpu=sse"
60 elif use mmx; then
61 myconf="--with-cpu=mmx"
62 fi
63
64 elog "Compiling with ${audiodev} audio output."
65 elog "If that is not what you want, then select exactly ONE"
66 elog "of the following USE flags:"
67 elog "alsa oss sdl esd nas jack portaudio"
68 elog "and recompile ${PN}."
69
70 econf --with-optimization=0 \
71 --with-audio=${audiodev} \
72 ${myconf} || die "econf failed."
73
74 emake || die "emake failed."
75 }
76
77 src_install() {
78 emake DESTDIR="${D}" install || die "emake install failed."
79 dodoc AUTHORS ChangeLog NEWS README
80 }

  ViewVC Help
Powered by ViewVC 1.1.20