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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Sep 18 14:37:36 2007 UTC (12 years, 1 month ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Version bump wrt #192925 and add new optimization options altivec, 3dnowext, sse.
(Portage version: 2.1.3.9)

1 # Copyright 1999-2007 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.61.ebuild,v 1.6 2007/05/01 00:15:44 genone Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Real Time mp3 player"
8 HOMEPAGE="http://www.mpg123.de/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10
11 LICENSE="LGPL-2.1"
12 SLOT="0"
13
14 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
15 IUSE="mmx 3dnow alsa oss sdl esd nas jack portaudio"
16
17 RDEPEND="alsa? ( media-libs/alsa-lib )
18 sdl? ( !alsa? ( !oss? ( media-libs/libsdl ) ) )
19 esd? ( !alsa? ( !oss? ( !sdl? ( media-sound/esound ) ) ) )
20 nas? ( !alsa? ( !oss? ( !sdl? ( !esd? ( media-libs/nas ) ) ) ) )
21 jack? ( !alsa? ( !oss? ( !sdl? ( !esd? ( !nas? ( media-sound/jack-audio-connection-kit ) ) ) ) ) )
22 portaudio? ( !alsa? ( !oss? ( !sdl? ( !esd? ( !nas? ( !jack? ( media-libs/portaudio ) ) ) ) ) ) )"
23
24 DEPEND="${RDEPEND}"
25
26 PROVIDE="virtual/mpg123"
27
28 src_compile() {
29 local audiodev
30 if use alsa; then
31 audiodev="alsa"
32 elif use oss; then
33 audiodev="oss"
34 elif use sdl; then
35 audiodev="sdl"
36 elif use esd; then
37 audiodev="esd"
38 elif use nas; then
39 audiodev="nas"
40 elif use jack; then
41 audiodev="jack"
42 elif use portaudio; then
43 audiodev="portaudio"
44 elif use ppc-macos; then
45 audiodev="macosx";
46 else audiodev="dummy"
47 fi
48
49 if use 3dnow; then
50 myconf="--with-cpu=3dnow"
51 elif use mmx; then
52 myconf="--with-cpu=mmx"
53 fi
54
55 elog "Compiling with ${audiodev} audio output."
56 elog "If that is not what you want, then select exactly ONE"
57 elog "of the following USE flags:"
58 elog "alsa oss sdl esd nas jack portaudio"
59 elog "and recompile ${PN}."
60 epause 5
61
62 econf \
63 --with-optimization=0 \
64 --with-audio=$audiodev \
65 ${myconf} || die "econf failed"
66
67 emake || die "emake failed"
68 }
69
70 src_install() {
71 emake DESTDIR="${D}" install || die "emake install failed"
72 }

  ViewVC Help
Powered by ViewVC 1.1.20