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

Contents of /media-sound/mpg123/mpg123-0.59s.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Feb 15 20:39:08 2004 UTC (15 years, 8 months ago) by agriffis
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Mark 0.59s-r1 stable on x86 for bug 40631. Remove older ebuilds. Add this ebuild to the sound herd.

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-0.59s.ebuild,v 1.5 2003/11/05 01:03:23 wwoods Exp $
4
5 S=${WORKDIR}/mpg123
6
7 DESCRIPTION="Real Time mp3 player"
8 SRC_URI="http://www.mpg123.de/mpg123/${PN}-pre${PV}.tar.gz"
9 HOMEPAGE="http://www.mpg123.de/"
10
11 DEPEND="virtual/glibc"
12
13 SLOT="0"
14 LICENSE="as-is"
15 KEYWORDS="~x86 ~sparc"
16
17 src_unpack () {
18 unpack ${A}
19 cd ${S}
20 cp Makefile Makefile.orig
21 sed -e "s:-O2 -m486:${CFLAGS}:" \
22 -e "s:-O2 -mcpu=ppc:${CFLAGS}:g" Makefile.orig > Makefile
23 }
24
25 src_compile() {
26 local MAKEOPT=""
27 local MAKESTYLE=""
28
29 SYSTEM_ARCH=`echo $ARCH |\
30 sed -e s/[i]*.86/i386/ \
31 -e s/sun.*/sparc/ \
32 -e s/arm.*/arm/ \
33 -e s/sa110/arm/`
34
35 if [ -z "$SYSTEM_ARCH" ]
36 then
37 SYSTEM_ARCH=`uname -m |\
38 sed -e s/[i]*.86/i386/ -e s/arm.*/arm/ -e s/sa110/arm/`
39 fi
40
41 case $SYSTEM_ARCH in
42 ppc)
43 MAKESTYLE="-ppc";;
44 i386)
45 if [ -z "use mmx" ]
46 then
47 MAKESTYLE="-mmx"
48 else
49 MAKESTYLE="-i486"
50 fi;;
51 sparc64)
52 MAKESTYLE="-sparc";;
53 sparc)
54 MAKESTYLE="-sparc";;
55 alpha)
56 MAKESTYLE="-alpha";;
57 arm)
58 ;;
59 esac
60
61 make linux${MAKESTYLE}${MAKEOPT} || die
62 }
63
64 src_install () {
65 into /usr
66 dobin mpg123
67 doman mpg123.1
68 dodoc BENCHMARKING BUGS CHANGES COPYING JUKEBOX README* TODO
69 }
70

  ViewVC Help
Powered by ViewVC 1.1.20