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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Feb 18 11:42:06 2004 UTC (16 years, 9 months ago) by mholzer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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-r3.ebuild,v 1.6 2004/02/18 00:08:18 kumba Exp $
4
5 inherit eutils
6
7 S=${WORKDIR}/${P}
8 DESCRIPTION="Real Time mp3 player"
9 HOMEPAGE="http://www.mpg123.de/"
10 SRC_URI="http://www.mpg123.de/mpg123/${P}.tar.gz
11 mirror://gentoo/${P}-gentoo.tar.bz2"
12
13 DEPEND=">=sys-apps/sed-4
14 virtual/glibc
15 sparc? ( media-libs/audiofile ) "
16
17 SLOT="0"
18 LICENSE="as-is"
19 KEYWORDS="x86 ppc sparc alpha hppa amd64 -mips"
20
21 PROVIDE="virtual/mpg123"
22
23 src_unpack () {
24 unpack ${A}
25 unpack ${P}-gentoo.tar.bz2
26 cd ${S}
27
28 EPATCH_SUFFIX="diff" epatch ${WORKDIR}/patches
29 use amd64 && epatch ${WORKDIR}/patches/003_amd64-compile.diff
30
31 sed -i \
32 -e "s:-O2 -m486:${CFLAGS}:" \
33 -e "s:-O2 -mcpu=ppc:${CFLAGS}:g" \
34 -e "s:-O6:${CFLAGS}:" \
35 Makefile
36 }
37
38 src_compile() {
39 local MAKEOPT=""
40 local MAKESTYLE=""
41
42 SYSTEM_ARCH=`echo $ARCH |\
43 sed -e s/[i]*.86/i386/ \
44 -e s/sun.*/sparc/ \
45 -e s/arm.*/arm/ \
46 -e s/amd64/x86_64/ \
47 -e s/sa110/arm/`
48
49 if [ -z "$SYSTEM_ARCH" ]
50 then
51 SYSTEM_ARCH=`uname -m |\
52 sed -e s/[i]*.86/i386/ -e s/arm.*/arm/ -e s/sa110/arm/`
53 fi
54
55 case $SYSTEM_ARCH in
56 ppc)
57 MAKESTYLE="-ppc";;
58 i386)
59 MAKESTYLE="-i486";;
60 sparc)
61 MAKESTYLE="-sparc";;
62 alpha)
63 MAKESTYLE="-alpha";;
64 hppa)
65 MAKESTYLE="-hppa";;
66 x86_64)
67 MAKESTYLE="-x86_64";;
68 arm)
69 ;;
70 esac
71
72 make linux${MAKESTYLE}${MAKEOPT} || die
73 }
74
75 src_install () {
76 into /usr
77 dobin mpg123
78 doman mpg123.1
79 dodoc BENCHMARKING BUGS CHANGES COPYING JUKEBOX README* TODO
80 }

  ViewVC Help
Powered by ViewVC 1.1.20