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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Jun 24 16:38:24 2010 UTC (9 years, 4 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
old
(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.9.2.ebuild,v 1.9 2010/06/08 14:54:30 chainsaw Exp $
4
5 EAPI=2
6 inherit eutils
7
8 DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3"
9 HOMEPAGE="http://www.mpg123.org"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
11 http://www.mpg123.org/download/${P}.tar.bz2"
12
13 LICENSE="GPL-2 LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="alpha arm ia64 sparc"
16 IUSE="3dnow 3dnowext alsa altivec ipv6 jack mmx nas +network oss portaudio pulseaudio sdl sse"
17
18 RDEPEND="alsa? ( media-libs/alsa-lib )
19 jack? ( media-sound/jack-audio-connection-kit )
20 nas? ( media-libs/nas )
21 portaudio? ( media-libs/portaudio )
22 pulseaudio? ( media-sound/pulseaudio )
23 sdl? ( media-libs/libsdl )
24 sys-devel/libtool"
25 DEPEND="${RDEPEND}
26 dev-util/pkgconfig"
27
28 src_prepare() {
29 epatch "${FILESDIR}"/${P}-libtool.patch
30 }
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