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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Mon Feb 16 00:21:05 2004 UTC (16 years, 9 months ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Removing unsecure ebuild.

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.59s-r1.ebuild,v 1.11 2004/02/15 21:40:34 eradicator Exp $
4
5 inherit eutils
6
7 S=${WORKDIR}/mpg123
8 DESCRIPTION="Real Time mp3 player"
9 HOMEPAGE="http://www.mpg123.de/"
10 SRC_URI="http://www.mpg123.de/mpg123/${PN}-pre${PV}.tar.gz"
11
12 SLOT="0"
13 LICENSE="as-is"
14 KEYWORDS="x86 ia64 ~amd64 ppc sparc alpha ~hppa ~mips"
15
16 PROVIDE="virtual/mpg123"
17
18 DEPEND="virtual/glibc
19 >=sys-apps/sed-4"
20
21 src_unpack () {
22 unpack ${A} && cd ${S} || die "unpack failed"
23
24 # Apply security fix
25 epatch ${FILESDIR}/${P}-security.diff
26
27 # Add linux-generic target
28 epatch ${FILESDIR}/${PV}-generic.patch
29
30 # Always apply this patch, even though it's particularly for
31 # amd64. It's good to understand the distinction between int and
32 # long: ANSI says that int should be 32-bits, long should be the
33 # native size of the CPU (usually the same as a pointer).
34 epatch ${FILESDIR}/mpg123-0.59s-amd64.patch
35
36 # Don't force gcc since icc/ccc might be possible
37 sed -i -e "s|CC=gcc||" Makefile
38
39 # Fix a glitch in the ppc-related section of the Makefile
40 sed -i -e "s:-mcpu=ppc::" Makefile
41 }
42
43 src_compile() {
44 local style=""
45
46 case $ARCH in
47 ppc)
48 style="-ppc";;
49 x86)
50 use mmx && style="-mmx" || style="-i486";;
51 sparc*)
52 style="-sparc";;
53 amd64|x86_64)
54 style="-x86_64";;
55 alpha)
56 style="-alpha";;
57 arm|hppa|ia64)
58 style="-generic";;
59 esac
60
61 make linux${style} RPM_OPT_FLAGS="${CFLAGS}" || 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