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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sun Jan 28 11:47:34 2007 UTC (12 years, 8 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Remove vulnerable version, see bug #164226.
(Portage version: 2.1.2-r4)

1 # Copyright 1999-2006 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-r9.ebuild,v 1.12 2006/05/08 04:31:16 tcort Exp $
4
5 inherit eutils
6
7 PATCH_VER=1.5
8 S="${WORKDIR}/${PN}"
9
10 DESCRIPTION="Real Time mp3 player"
11 HOMEPAGE="http://www.mpg123.de/"
12 SRC_URI="http://www.mpg123.de/mpg123/${PN}-pre${PV}.tar.gz
13 mirror://gentoo/${P}-gentoo-${PATCH_VER}.tar.bz2"
14
15 LICENSE="as-is"
16 SLOT="0"
17 KEYWORDS="alpha amd64 hppa ia64 mips ppc ppc-macos ppc64 sparc x86"
18 IUSE="mmx 3dnow esd nas oss"
19
20 RDEPEND="esd? ( media-sound/esound )
21 nas? ( media-libs/nas )"
22
23 # alsa-1 b0rks and it's not a simple fix
24 # alsa? ( media-libs/alsa-lib )"
25
26 DEPEND="${RDEPEND}
27 >=sys-apps/sed-4"
28
29 PROVIDE="virtual/mpg123"
30
31 PATCHDIR="${WORKDIR}/patches"
32
33 src_unpack() {
34 unpack ${A}
35
36 cd ${S}
37
38 EPATCH_SUFFIX="patch"
39 epatch ${PATCHDIR}
40
41 if use ppc-macos;
42 then
43 einfo "Patching for OSX build"
44 epatch ${FILESDIR}/${PN}-osx.diff
45 fi
46
47 sed -i "s:${PV}-mh4:${PVR}:" version.h
48 }
49
50 src_compile() {
51 mkdir gentoo-bin
52
53 # The last one in $styles is the default
54 local styles
55
56 use nas && styles="${styles} -nas"
57 use oss && styles="${styles} -generic"
58 atype="linux"
59
60 case $ARCH in
61 ppc64)
62 use esd && styles="${styles} -ppc64-esd"
63 use oss && styles="${styles} -ppc64"
64
65 [ -z "${styles}" ] && styles="-ppc64"
66 ;;
67 ppc)
68 if use ppc-macos; then
69 [ -z "${styles}" ] && styles="macos"
70 atype=""
71 else
72 use esd && styles="${styles} -ppc-esd"
73 use oss && styles="${styles} -ppc"
74
75 [ -z "${styles}" ] && styles="-ppc"
76 fi
77 ;;
78 x86)
79 use esd && styles="${styles} -esd"
80 use esd && use 3dnow && styles="${styles} -3dnow-esd"
81 use oss && styles="${styles} -i486"
82 use oss && use mmx && styles="${styles} -mmx"
83 use oss && use 3dnow && styles="${styles} -3dnow"
84 # use alsa && styles="${styles} -alsa"
85 # use alsa && use 3dnow && styles="${styles} -3dnow-alsa"
86
87 [ -z "${styles}" ] && styles="-generic"
88 ;;
89 sparc*)
90 use esd && styles="${styles} -sparc-esd"
91 styles="${styles} -sparc -generic"
92 ;;
93 amd64)
94 use esd && styles="${styles} -x86_64-esd"
95 use oss && styles="${styles} -x86_64"
96 # use alsa && styles="${styles} -x86_64-alsa"
97
98 [ -z "${styles}" ] && styles="-x86_64"
99 ;;
100 alpha)
101 use esd && styles="${styles} -alpha-esd"
102 use oss && styles="${styles} -alpha"
103 # use alsa && styles="${styles} -alpha-alsa"
104
105 [ -z "${styles}" ] && styles="-generic"
106 ;;
107 mips|hppa|ia64)
108 # use alsa && styles="${styles} -mips-alsa"
109
110 [ -z "${styles}" ] && styles="-generic"
111 ;;
112 *)
113 eerror "No support has been added for your architecture."
114 exit 1
115 ;;
116 esac
117
118 for style in ${styles};
119 do
120 make clean ${atype}${style} CFLAGS="${CFLAGS}" || die
121 mv mpg123 gentoo-bin/mpg123${style}
122 [ -L "gentoo-bin/mpg123" ] && rm gentoo-bin/mpg123
123 ln -s mpg123${style} gentoo-bin/mpg123
124 done
125 }
126
127 src_install() {
128 dodir /usr
129 cp -R gentoo-bin ${D}/usr/bin
130 doman mpg123.1
131 dodoc BENCHMARKING BUGS CHANGES JUKEBOX README* TODO
132 }

  ViewVC Help
Powered by ViewVC 1.1.20