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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Mar 6 15:51:14 2008 UTC (11 years, 7 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump.
(Portage version: 2.1.4.4)

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.2.1.ebuild,v 1.1 2008/02/25 14:02:36 drac 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"
12 IUSE="3dnow 3dnowext alsa altivec arts esd jack mmx nas 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 PROVIDE="virtual/mpg123"
26
27 src_unpack() {
28 unpack ${A}
29 sed -i -e 's:-faltivec::' "${S}"/configure
30 }
31
32 src_compile() {
33 local myaudio
34
35 use alsa && myaudio="${myaudio} alsa"
36 use esd && myaudio="${myaudio} esd"
37 use jack && myaudio="${myaudio} jack"
38 use nas && myaudio="${myaudio} nas"
39 use oss && myaudio="${myaudio} oss"
40 use portaudio && myaudio="${myaudio} portaudio"
41 use pulseaudio && myaudio="${myaudio} pulse"
42 use sdl && myaudio="${myaudio} sdl"
43 use arts && myaudio="${myaudio} arts"
44
45 local mycpu
46
47 if use altivec; then
48 mycpu="--with-cpu=altivec"
49 elif use 3dnowext; then
50 mycpu="--with-cpu=3dnowext"
51 elif use 3dnow; then
52 mycpu="--with-cpu=3dnow"
53 elif use sse; then
54 mycpu="--with-cpu=sse"
55 elif use mmx; then
56 mycpu="--with-cpu=mmx"
57 fi
58
59 econf --with-optimization=0 ${mycpu} \
60 --with-audio="${myaudio}"
61
62 emake || die "emake failed."
63 }
64
65 src_install() {
66 emake DESTDIR="${D}" install || die "emake install failed."
67 dodoc AUTHORS ChangeLog NEWS* README
68 }

  ViewVC Help
Powered by ViewVC 1.1.20