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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Jun 21 07:45:45 2009 UTC (10 years, 3 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc33/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.7.3.ebuild,v 1.10 2009/06/09 18:53:40 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
11 LICENSE="GPL-2 LGPL-2.1"
12 SLOT="0"
13 KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
14 IUSE="3dnow 3dnowext alsa altivec ipv6 jack mmx nas +network oss portaudio pulseaudio sdl sse"
15
16 RDEPEND="alsa? ( media-libs/alsa-lib )
17 jack? ( media-sound/jack-audio-connection-kit )
18 nas? ( media-libs/nas )
19 portaudio? ( media-libs/portaudio )
20 pulseaudio? ( media-sound/pulseaudio )
21 sdl? ( media-libs/libsdl )"
22 DEPEND="${RDEPEND}
23 dev-util/pkgconfig"
24
25 src_prepare() {
26 sed -i -e 's:-faltivec::' configure || die "sed failed"
27 }
28
29 src_configure() {
30 local myaudio
31
32 use alsa && myaudio="${myaudio} alsa"
33 use jack && myaudio="${myaudio} jack"
34 use nas && myaudio="${myaudio} nas"
35 use oss && myaudio="${myaudio} oss"
36 use portaudio && myaudio="${myaudio} portaudio"
37 use pulseaudio && myaudio="${myaudio} pulse"
38 use sdl && myaudio="${myaudio} sdl"
39
40 local mycpu
41
42 if use altivec; then
43 mycpu="--with-cpu=altivec"
44 elif use 3dnowext; then
45 mycpu="--with-cpu=3dnowext"
46 elif use 3dnow; then
47 mycpu="--with-cpu=3dnow"
48 elif use sse; then
49 mycpu="--with-cpu=sse"
50 elif use mmx; then
51 mycpu="--with-cpu=mmx"
52 fi
53
54 econf \
55 --disable-dependency-tracking \
56 --with-optimization=0 ${mycpu} \
57 --with-audio="${myaudio}" \
58 $(use_enable network) \
59 $(use_enable ipv6)
60 }
61
62 src_install() {
63 emake DESTDIR="${D}" install || die "emake install failed"
64 dodoc AUTHORS ChangeLog NEWS* README
65 }

  ViewVC Help
Powered by ViewVC 1.1.20