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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jul 24 10:27:54 2010 UTC (9 years, 2 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump.
(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.12.2.ebuild,v 1.1 2010/06/21 11:25:41 chainsaw Exp $
4
5 EAPI=2
6 inherit toolchain-funcs
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 ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
16 IUSE="3dnow 3dnowext alsa altivec ipv6 jack mmx nas 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_configure() {
29 local _audio=dummy
30 local _output=dummy
31 local _cpu=generic_fpu
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 [[ $(tc-arch) == amd64 ]]; then
43 use sse && _cpu=x86-64
44 else
45 use mmx && _cpu=mmx
46 use 3dnow && _cpu=3dnow
47 use sse && _cpu=x86
48 use 3dnowext && _cpu=x86
49 fi
50
51 econf \
52 --disable-dependency-tracking \
53 --with-optimization=0 \
54 --with-audio="${_audio}" \
55 --with-default-audio=${_output} \
56 --with-cpu=${_cpu} \
57 --enable-network \
58 $(use_enable ipv6)
59 }
60
61 src_install() {
62 emake DESTDIR="${D}" install || die
63 dodoc AUTHORS ChangeLog NEWS* README
64 }

  ViewVC Help
Powered by ViewVC 1.1.20