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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Feb 3 16:17:30 2008 UTC (11 years, 8 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump wrt #208758, thanks to Tobias Jakobi.
(Portage version: 2.1.4.1)

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-1.0.1.ebuild,v 1.1 2007/12/30 14:32:53 drac Exp $
4
5 WANT_AUTOMAKE=1.9
6
7 inherit autotools eutils
8
9 DESCRIPTION="Real Time mp3 player"
10 HOMEPAGE="http://www.mpg123.de"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
12
13 LICENSE="GPL-2 LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
16 IUSE="3dnow 3dnowext alsa altivec esd jack mmx nas oss portaudio pulseaudio sdl sse"
17
18 RDEPEND="alsa? ( media-libs/alsa-lib )
19 sdl? ( media-libs/libsdl )
20 esd? ( media-sound/esound )
21 nas? ( media-libs/nas )
22 jack? ( media-sound/jack-audio-connection-kit )
23 portaudio? ( media-libs/portaudio )
24 pulseaudio? ( media-sound/pulseaudio )"
25 DEPEND="${RDEPEND}
26 dev-util/pkgconfig"
27
28 PROVIDE="virtual/mpg123"
29
30 src_unpack() {
31 unpack ${A}
32 cd "${S}"
33 epatch "${FILESDIR}"/${P}-no-faltivec.patch
34 eautoreconf
35 }
36
37 src_compile() {
38 local myaudio
39
40 use alsa && myaudio="${myaudio} alsa"
41 use esd && myaudio="${myaudio} esd"
42 use jack && myaudio="${myaudio} jack"
43 use nas && myaudio="${myaudio} nas"
44 use oss && myaudio="${myaudio} oss"
45 use pulseaudio && myaudio="${myaudio} pulse"
46 use sdl && myaudio="${myaudio} sdl"
47
48 local mycpu
49
50 if use altivec; then
51 mycpu="--with-cpu=altivec"
52 elif use 3dnowext; then
53 mycpu="--with-cpu=3dnowext"
54 elif use 3dnow; then
55 mycpu="--with-cpu=3dnow"
56 elif use sse; then
57 mycpu="--with-cpu=sse"
58 elif use mmx; then
59 mycpu="--with-cpu=mmx"
60 fi
61
62 econf --with-optimization=0 \
63 --with-audio="${myaudio}" \
64 ${mycpu} || die "econf failed."
65
66 emake || die "emake failed."
67 }
68
69 src_install() {
70 emake DESTDIR="${D}" install || die "emake install failed."
71 dodoc AUTHORS ChangeLog NEWS README
72 }

  ViewVC Help
Powered by ViewVC 1.1.20