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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Wed Feb 18 11:42:06 2004 UTC (15 years, 8 months ago) by mholzer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
cleanup

1 # Copyright 1999-2004 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-r2.ebuild,v 1.10 2004/02/18 00:08:18 kumba 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 hppa amd64 -mips"
17
18 PROVIDE="virtual/mpg123"
19
20 src_unpack () {
21 unpack ${A}
22 cd ${S}
23 patch -p1 < ${FILESDIR}/${P}-make-fix.diff
24 patch -p1 < ${FILESDIR}/${P}-sparc.diff
25 use alpha && patch -p1 < ${FILESDIR}/${P}-alpha.diff
26 use hppa && patch -p0 < ${FILESDIR}/${P}-hppa.diff
27 use amd64 && epatch ${FILESDIR}/${P}-amd64.diff
28 cp Makefile Makefile.orig
29 sed -e "s:-O2 -m486:${CFLAGS}:" \
30 -e "s:-O2 -mcpu=ppc:${CFLAGS}:g" \
31 -e "s:-O6:${CFLAGS}:" \
32 Makefile.orig > Makefile
33 }
34
35 src_compile() {
36 local MAKEOPT=""
37 local MAKESTYLE=""
38
39 SYSTEM_ARCH=`echo $ARCH |\
40 sed -e s/[i]*.86/i386/ \
41 -e s/sun.*/sparc/ \
42 -e s/arm.*/arm/ \
43 -e s/amd64/x86_64/ \
44 -e s/sa110/arm/`
45
46 if [ -z "$SYSTEM_ARCH" ]
47 then
48 SYSTEM_ARCH=`uname -m |\
49 sed -e s/[i]*.86/i386/ -e s/arm.*/arm/ -e s/sa110/arm/`
50 fi
51
52 case $SYSTEM_ARCH in
53 ppc)
54 MAKESTYLE="-ppc";;
55 i386)
56 MAKESTYLE="-i486";;
57 sparc)
58 MAKESTYLE="-sparc";;
59 alpha)
60 MAKESTYLE="-alpha";;
61 hppa)
62 MAKESTYLE="-hppa";;
63 x86_64)
64 MAKESTYLE="-x86_64";;
65 arm)
66 ;;
67 esac
68
69 make linux${MAKESTYLE}${MAKEOPT} || die
70 }
71
72 src_install () {
73 into /usr
74 dobin mpg123
75 doman mpg123.1
76 dodoc BENCHMARKING BUGS CHANGES COPYING JUKEBOX README* TODO
77 }

  ViewVC Help
Powered by ViewVC 1.1.20