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

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

  ViewVC Help
Powered by ViewVC 1.1.20