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

Contents of /media-sound/mpg123/mpg123-1.0_rc2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Jan 7 14:15:59 2008 UTC (11 years, 9 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old version and leave one ebuild behind for mips wrt #200106
(Portage version: 2.1.4_rc14)

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

  ViewVC Help
Powered by ViewVC 1.1.20