blob: d765970137c9a4049629d9081d9d4cdf972ff718 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-0.59r-r3.ebuild,v 1.5 2004/02/15 21:40:34 eradicator Exp $
inherit eutils
S=${WORKDIR}/${P}
DESCRIPTION="Real Time mp3 player"
HOMEPAGE="http://www.mpg123.de/"
SRC_URI="http://www.mpg123.de/mpg123/${P}.tar.gz
mirror://gentoo/${P}-gentoo.tar.bz2"
DEPEND=">=sys-apps/sed-4
virtual/glibc
sparc? ( media-libs/audiofile ) "
SLOT="0"
LICENSE="as-is"
KEYWORDS="x86 ppc sparc alpha hppa amd64"
PROVIDE="virtual/mpg123"
src_unpack () {
unpack ${A}
unpack ${P}-gentoo.tar.bz2
cd ${S}
EPATCH_SUFFIX="diff" epatch ${WORKDIR}/patches
use amd64 && epatch ${WORKDIR}/patches/003_amd64-compile.diff
sed -i \
-e "s:-O2 -m486:${CFLAGS}:" \
-e "s:-O2 -mcpu=ppc:${CFLAGS}:g" \
-e "s:-O6:${CFLAGS}:" \
Makefile
}
src_compile() {
local MAKEOPT=""
local MAKESTYLE=""
SYSTEM_ARCH=`echo $ARCH |\
sed -e s/[i]*.86/i386/ \
-e s/sun.*/sparc/ \
-e s/arm.*/arm/ \
-e s/amd64/x86_64/ \
-e s/sa110/arm/`
if [ -z "$SYSTEM_ARCH" ]
then
SYSTEM_ARCH=`uname -m |\
sed -e s/[i]*.86/i386/ -e s/arm.*/arm/ -e s/sa110/arm/`
fi
case $SYSTEM_ARCH in
ppc)
MAKESTYLE="-ppc";;
i386)
MAKESTYLE="-i486";;
sparc)
MAKESTYLE="-sparc";;
alpha)
MAKESTYLE="-alpha";;
hppa)
MAKESTYLE="-hppa";;
x86_64)
MAKESTYLE="-x86_64";;
arm)
;;
esac
make linux${MAKESTYLE}${MAKEOPT} || die
}
src_install () {
into /usr
dobin mpg123
doman mpg123.1
dodoc BENCHMARKING BUGS CHANGES COPYING JUKEBOX README* TODO
}
|