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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jul 18 06:53:57 2011 UTC (8 years, 3 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha45/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.3.ebuild,v 1.2 2010/08/24 14:41:35 darkside Exp $
4
5 EAPI=3
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 src_prepare() {
29 elibtoolize # for Darwin bundles
30 }
31
32 src_configure() {
33 local _audio=dummy
34 local _output=dummy
35 local _cpu=generic_fpu
36
37 for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do
38 if use ${flag}; then
39 _audio="${_audio} ${flag/pulseaudio/pulse}"
40 _output=${flag/pulseaudio/pulse}
41 fi
42 done
43
44 use altivec && _cpu=altivec
45
46 if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then
47 use sse && _cpu=x86-64
48 else
49 use mmx && _cpu=mmx
50 use 3dnow && _cpu=3dnow
51 use sse && _cpu=x86
52 use 3dnowext && _cpu=x86
53 fi
54
55 econf \
56 --disable-dependency-tracking \
57 --with-optimization=0 \
58 --with-audio="${_audio}" \
59 --with-default-audio=${_output} \
60 --with-cpu=${_cpu} \
61 --enable-network \
62 $(use_enable ipv6)
63 }
64
65 src_install() {
66 emake DESTDIR="${D}" install || die
67 dodoc AUTHORS ChangeLog NEWS* README
68 }

  ViewVC Help
Powered by ViewVC 1.1.20