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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Tue Dec 1 18:40:29 2009 UTC (9 years, 10 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc54/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.8.1.ebuild,v 1.11 2009/09/30 15:42:15 armin76 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 DEPEND="${RDEPEND}
24 dev-util/pkgconfig"
25
26 pkg_setup() {
27 # Make sure there is no mpg123 symlink left
28 local link="${ROOT}usr/bin/mpg123"
29 local msg="Removing invalid symlink ${link}"
30 if [ -L "${link}" ] && [ ! -x "${link}" ]; then
31 ebegin "${msg}"
32 rm -f "${link}" || die "${msg} failed, please open a bug."
33 eend $?
34 fi
35 }
36
37 src_prepare() {
38 sed -i -e 's:-faltivec::' configure || die "sed failed"
39 }
40
41 src_configure() {
42 # Audio outputs
43 local myaudio=dummy
44 local mydaudio=dummy
45
46 use nas && myaudio+=" nas" mydaudio=nas
47 use portaudio && myaudio+=" portaudio" mydaudio=portaudio
48 use sdl && myaudio+=" sdl" mydaudio=sdl
49 use oss && myaudio+=" oss" mydaudio=oss
50 use jack && myaudio+=" jack" mydaudio=jack
51 use alsa && myaudio+=" alsa" mydaudio=alsa
52 use pulseaudio && myaudio+=" pulse" mydaudio=pulse
53
54 # You only need to comment out the _dither part to
55 # enable default settings. In case you have probs.
56 local dither=_dither
57
58 local mcpu=generic${dither}
59 local int=no
60
61 use altivec && mcpu=altivec
62
63 if use amd64; then
64 use mmx && mcpu=x86-64
65 use 3dnow && mcpu=x86-64
66 use sse && mcpu=x86-64${dither} int=yes
67 use 3dnowext && mcpu=x86-64${dither} int=yes
68 fi
69
70 if use x86; then
71 mcpu=i586${dither}
72
73 use mmx && mcpu=mmx
74 use 3dnow && mcpu=3dnow
75 use sse && mcpu=sse int=yes
76 use 3dnowext && mcpu=3dnowext int=yes
77 use sse && use 3dnowext && mcpu=x86${dither} int=yes
78 fi
79
80 local myconf
81 use network && myconf+=" $(use_enable ipv6)"
82
83 econf \
84 --disable-dependency-tracking \
85 --disable-ipv6 \
86 --with-optimization=0 \
87 --with-audio="${myaudio}" \
88 --with-default-audio=${mydaudio} \
89 --with-cpu=${mcpu} \
90 $(use_enable network) \
91 --enable-int-quality=${int} \
92 ${myconf}
93
94 einfo "Optimizing with ${mcpu} and int quality set to ${int}."
95 }
96
97 src_install() {
98 emake DESTDIR="${D}" install || die "emake install failed"
99 dodoc AUTHORS ChangeLog NEWS* README
100 }

  ViewVC Help
Powered by ViewVC 1.1.20