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

Contents of /media-sound/mpg123/mpg123-0.59r-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Tue Sep 30 07:42:52 2003 UTC (16 years ago) by seemant
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
security fix

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.59r-r1.ebuild,v 1.15 2003/09/07 00:06:06 msterret Exp $
4
5 S=${WORKDIR}/${P}
6
7 DESCRIPTION="Real Time mp3 player"
8 SRC_URI="http://www.mpg123.de/mpg123/${P}.tar.gz"
9 HOMEPAGE="http://www.mpg123.de/"
10
11 DEPEND="virtual/glibc
12 sparc? ( media-libs/audiofile ) "
13
14 SLOT="0"
15 LICENSE="as-is"
16 KEYWORDS="x86 ppc sparc alpha"
17
18 src_unpack () {
19 unpack ${A}
20 cd ${S}
21 patch -p1 < ${FILESDIR}/${P}-sparc.diff
22 use alpha && patch -p1 < ${FILESDIR}/${P}-alpha.diff
23 cp Makefile Makefile.orig
24 sed -e "s:-O2 -m486:${CFLAGS}:" \
25 -e "s:-O2 -mcpu=ppc:${CFLAGS}:g" \
26 -e "s:-O6:${CFLAGS}:" \
27 Makefile.orig > Makefile
28 }
29
30 src_compile() {
31 local MAKEOPT=""
32 local MAKESTYLE=""
33
34 SYSTEM_ARCH=`echo $ARCH |\
35 sed -e s/[i]*.86/i386/ \
36 -e s/sun.*/sparc/ \
37 -e s/arm.*/arm/ \
38 -e s/sa110/arm/`
39
40 if [ -z "$SYSTEM_ARCH" ]
41 then
42 SYSTEM_ARCH=`uname -m |\
43 sed -e s/[i]*.86/i386/ -e s/arm.*/arm/ -e s/sa110/arm/`
44 fi
45
46 case $SYSTEM_ARCH in
47 ppc)
48 MAKESTYLE="-ppc";;
49 i386)
50 MAKESTYLE="-i486";;
51 sparc)
52 MAKESTYLE="-sparc";;
53 alpha)
54 MAKESTYLE="-alpha";;
55 arm)
56 ;;
57 esac
58
59 make linux${MAKESTYLE}${MAKEOPT} || die
60 }
61
62 src_install () {
63 into /usr
64 dobin mpg123
65 doman mpg123.1
66 dodoc BENCHMARKING BUGS CHANGES COPYING JUKEBOX README* TODO
67 }

  ViewVC Help
Powered by ViewVC 1.1.20