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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Nov 26 09:02:04 2008 UTC (10 years, 10 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc15/cvs/Linux 2.6.27-gentoo-r3 i686)

1 # Copyright 1999-2008 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.6.1.ebuild,v 1.1 2008/11/10 11:59:08 aballier Exp $
4
5 DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3."
6 HOMEPAGE="http://www.mpg123.org"
7 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
8
9 LICENSE="GPL-2 LGPL-2.1"
10 SLOT="0"
11 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
12 IUSE="3dnow 3dnowext alsa altivec arts esd ipv6 jack mmx nas network oss portaudio pulseaudio sdl sse"
13
14 RDEPEND="alsa? ( media-libs/alsa-lib )
15 esd? ( media-sound/esound )
16 jack? ( media-sound/jack-audio-connection-kit )
17 nas? ( media-libs/nas )
18 portaudio? ( media-libs/portaudio )
19 pulseaudio? ( media-sound/pulseaudio )
20 sdl? ( media-libs/libsdl )
21 arts? ( kde-base/arts )"
22 DEPEND="${RDEPEND}
23 dev-util/pkgconfig"
24
25 src_unpack() {
26 unpack ${A}
27 sed -i -e 's:-faltivec::' "${S}"/configure || die "sed failed."
28 }
29
30 src_compile() {
31 local myaudio
32
33 use alsa && myaudio="${myaudio} alsa"
34 use esd && myaudio="${myaudio} esd"
35 use jack && myaudio="${myaudio} jack"
36 use nas && myaudio="${myaudio} nas"
37 use oss && myaudio="${myaudio} oss"
38 use portaudio && myaudio="${myaudio} portaudio"
39 use pulseaudio && myaudio="${myaudio} pulse"
40 use sdl && myaudio="${myaudio} sdl"
41 use arts && myaudio="${myaudio} arts"
42
43 local mycpu
44
45 if use altivec; then
46 mycpu="--with-cpu=altivec"
47 elif use 3dnowext; then
48 mycpu="--with-cpu=3dnowext"
49 elif use 3dnow; then
50 mycpu="--with-cpu=3dnow"
51 elif use sse; then
52 mycpu="--with-cpu=sse"
53 elif use mmx; then
54 mycpu="--with-cpu=mmx"
55 fi
56
57 econf --disable-dependency-tracking \
58 --with-optimization=0 ${mycpu} \
59 --with-audio="${myaudio}" \
60 $(use_enable network) \
61 $(use_enable ipv6)
62
63 emake || die "emake failed."
64 }
65
66 src_install() {
67 emake DESTDIR="${D}" install || die "emake install failed."
68 dodoc AUTHORS ChangeLog NEWS* README
69 }

  ViewVC Help
Powered by ViewVC 1.1.20