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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Oct 21 20:35:57 2004 UTC (16 years, 1 month ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Revbump for security bug #68343.  Moved patches out of files and onto mirrors.  Cleaned up patches.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-0.59s-r2.ebuild,v 1.9 2004/07/01 10:58:52 eradicator Exp $
4
5 inherit eutils
6
7 IUSE="mmx"
8
9 DESCRIPTION="Real Time mp3 player"
10 HOMEPAGE="http://www.mpg123.de/"
11 SRC_URI="http://www.mpg123.de/mpg123/${PN}-pre${PV}.tar.gz"
12
13 LICENSE="as-is"
14 SLOT="0"
15 KEYWORDS="x86 ia64 amd64 ppc sparc alpha hppa -mips"
16
17 DEPEND="virtual/libc
18 >=sys-apps/sed-4"
19 PROVIDE="virtual/mpg123"
20
21 S=${WORKDIR}/${PN}
22
23 src_unpack() {
24 unpack ${A} && cd ${S} || die "unpack failed"
25
26 # Apply security fixes
27 epatch ${FILESDIR}/${P}-security.diff
28 epatch ${FILESDIR}/${P}-heapfix.diff
29
30 # Add linux-generic target
31 epatch ${FILESDIR}/${PV}-generic.patch
32
33 # Always apply this patch, even though it's particularly for
34 # amd64. It's good to understand the distinction between int and
35 # long: ANSI says that int should be 32-bits, long should be the
36 # native size of the CPU (usually the same as a pointer).
37 epatch ${FILESDIR}/mpg123-0.59s-amd64.patch
38
39 # Don't force gcc since icc/ccc might be possible
40 sed -i -e "s|CC=gcc||" Makefile
41
42 # Fix a glitch in the x86 related section of the Makefile
43 sed -i -e "s:-m486::g" Makefile
44 # Fix a glitch in the ppc-related section of the Makefile
45 sed -i -e "s:-mcpu=ppc::" Makefile
46 # Make sure we use our CFLAGS
47 sed -i -e "s:-O2::g" Makefile
48 }
49
50 src_compile() {
51 local style=""
52
53 case $ARCH in
54 ppc)
55 style="-ppc";;
56 x86)
57 use mmx && style="-mmx" || style="-i486";;
58 sparc*)
59 style="-sparc";;
60 amd64|x86_64)
61 style="-x86_64";;
62 alpha)
63 style="-alpha";;
64 arm|hppa|ia64)
65 style="-generic";;
66 esac
67
68 make linux${style} CFLAGS="${CFLAGS}" || die
69 }
70
71 src_install() {
72 into /usr
73 dobin mpg123
74 doman mpg123.1
75 dodoc BENCHMARKING BUGS CHANGES COPYING JUKEBOX README* TODO
76 }

  ViewVC Help
Powered by ViewVC 1.1.20