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

Contents of /media-sound/mpg123/mpg123-1.10.1_pre.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Mar 20 08:22:15 2010 UTC (9 years, 6 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump wrt #308441 by Karl-Robert Ernst.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.10.1_pre.ebuild,v 1.1 2010/02/13 17:51:22 ssuominen Exp $
4
5 # Only for testing http://bugs.gentoo.org/show_bug.cgi?id=299490
6
7 EAPI=2
8
9 MY_P=${P/_pre/-prerelease}
10
11 DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3"
12 HOMEPAGE="http://www.mpg123.org/"
13 SRC_URI="http://www.mpg123.org/download/${MY_P}.tar.bz2"
14
15 LICENSE="GPL-2 LGPL-2.1"
16 SLOT="0"
17 KEYWORDS=""
18 IUSE="3dnow 3dnowext alsa altivec ipv6 jack mmx nas +network oss portaudio pulseaudio sdl sse"
19
20 RDEPEND="alsa? ( media-libs/alsa-lib )
21 jack? ( media-sound/jack-audio-connection-kit )
22 nas? ( media-libs/nas )
23 portaudio? ( media-libs/portaudio )
24 pulseaudio? ( media-sound/pulseaudio )
25 sdl? ( media-libs/libsdl )
26 sys-devel/libtool"
27 DEPEND="${RDEPEND}
28 dev-util/pkgconfig"
29
30 S=${WORKDIR}/${MY_P}
31
32 src_configure() {
33 local _audio=dummy
34 local _output=dummy
35 local _cpu=generic_fpu
36 local _ipv6=disable
37
38 for flag in nas portaudio sdl oss jack alsa pulseaudio; do
39 if use ${flag}; then
40 _audio="${_audio} ${flag/pulseaudio/pulse}"
41 _output=${flag/pulseaudio/pulse}
42 fi
43 done
44
45 use altivec && _cpu=altivec
46
47 if [[ ${ABI} = amd64 ]] && use sse; then
48 _cpu=x86-64
49 fi
50
51 if [[ ${ABI} = x86 ]]; then
52 _cpu=i586
53 use mmx && _cpu=mmx
54 use 3dnow && _cpu=3dnow
55 use sse && _cpu=x86
56 use 3dnowext && _cpu=x86
57 fi
58
59 if use network && use ipv6; then
60 _ipv6=enable
61 fi
62
63 econf \
64 --disable-dependency-tracking \
65 --with-optimization=0 \
66 --with-audio="${_audio}" \
67 --with-default-audio=${_output} \
68 --with-cpu=${_cpu} \
69 $(use_enable network) \
70 --${_ipv6}-ipv6
71 }
72
73 src_install() {
74 emake DESTDIR="${D}" install || die
75 dodoc AUTHORS ChangeLog NEWS* README
76 }

  ViewVC Help
Powered by ViewVC 1.1.20