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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue May 1 04:28:58 2012 UTC (7 years, 5 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.13.3.ebuild,v 1.1 2011/04/20 01:35:58 radhermit Exp $
4
5 EAPI=4
6 inherit toolchain-funcs libtool
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 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
16 IUSE="3dnow 3dnowext alsa altivec coreaudio 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 DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README )
29
30 src_prepare() {
31 elibtoolize # for Darwin bundles
32 }
33
34 src_configure() {
35 local _audio=dummy
36 local _output=dummy
37 local _cpu=generic_fpu
38
39 for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do
40 if use ${flag}; then
41 _audio="${_audio} ${flag/pulseaudio/pulse}"
42 _output=${flag/pulseaudio/pulse}
43 fi
44 done
45
46 use altivec && _cpu=altivec
47
48 if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then
49 use sse && _cpu=x86-64
50 else
51 use mmx && _cpu=mmx
52 use 3dnow && _cpu=3dnow
53 use sse && _cpu=x86
54 use 3dnowext && _cpu=x86
55 fi
56
57 econf \
58 --with-optimization=0 \
59 --with-audio="${_audio}" \
60 --with-default-audio=${_output} \
61 --with-cpu=${_cpu} \
62 --enable-network \
63 $(use_enable ipv6)
64 }

  ViewVC Help
Powered by ViewVC 1.1.20