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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Jun 6 16:40:21 2006 UTC (13 years, 4 months ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Revbump for security bug #133988.  Stable amd64, sparc.
(Portage version: 2.1_rc4-r2)
 (Signed Manifest commit)

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-r10.ebuild,v 1.5 2006/05/11 12:30:33 flameeyes Exp $
4
5 inherit eutils toolchain-funcs
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
28 PROVIDE="virtual/mpg123"
29
30 PATCHDIR="${WORKDIR}/patches"
31
32 src_unpack() {
33 unpack ${A}
34
35 cd ${S}
36
37 EPATCH_SUFFIX="patch"
38 epatch ${PATCHDIR}
39
40 # Bug #70592; terminal line settings should only be set once; not everytime a new song starts
41 epatch ${FILESDIR}/${PV}-set-terminal-line-settings-once.patch
42
43 # Bug #87539; user CFLAGS are not respected on amd64
44 epatch ${FILESDIR}/${PN}-respectusercflags.patch
45
46 if use ppc-macos;
47 then
48 einfo "Patching for OSX build"
49 epatch ${FILESDIR}/${PN}-osx.diff
50 fi
51
52 sed -i "s:${PV}-mh4:${PVR}:" version.h
53
54 epatch "${FILESDIR}/${P}-gmake-3.81.patch"
55 }
56
57 src_compile() {
58 mkdir gentoo-bin
59
60 # The last one in $styles is the default
61 local styles
62
63 use nas && styles="${styles} -nas"
64 use oss && styles="${styles} -generic"
65 atype="linux"
66
67 case $ARCH in
68 ppc64)
69 use esd && styles="${styles} -ppc64-esd"
70 use oss && styles="${styles} -ppc64"
71
72 [[ -z "${styles}" ]] && styles="-ppc64"
73 ;;
74 ppc)
75 if use ppc-macos; then
76 [[ -z "${styles}" ]] && styles="macos"
77 atype=""
78 else
79 use esd && styles="${styles} -ppc-esd"
80 use oss && styles="${styles} -ppc"
81
82 [[ -z "${styles}" ]] && styles="-ppc"
83 fi
84 ;;
85 x86)
86 use esd && styles="${styles} -esd"
87 use esd && use 3dnow && styles="${styles} -3dnow-esd"
88 use oss && styles="${styles} -i486"
89 use oss && use mmx && styles="${styles} -mmx"
90 use oss && use 3dnow && styles="${styles} -3dnow"
91 # use alsa && styles="${styles} -alsa"
92 # use alsa && use 3dnow && styles="${styles} -3dnow-alsa"
93
94 [[ -z "${styles}" ]] && styles="-generic"
95 ;;
96 sparc*)
97 use esd && styles="${styles} -sparc-esd"
98 styles="${styles} -sparc -generic"
99 ;;
100 amd64)
101 use esd && styles="${styles} -x86_64-esd"
102 use oss && styles="${styles} -x86_64"
103 # use alsa && styles="${styles} -x86_64-alsa"
104
105 [[ -z "${styles}" ]] && styles="-x86_64"
106 ;;
107 alpha)
108 use esd && styles="${styles} -alpha-esd"
109 use oss && styles="${styles} -alpha"
110 # use alsa && styles="${styles} -alpha-alsa"
111
112 [[ -z "${styles}" ]] && styles="-generic"
113 ;;
114 mips|hppa|ia64)
115 # use alsa && styles="${styles} -mips-alsa"
116
117 [[ -z "${styles}" ]] && styles="-generic"
118 ;;
119 *)
120 eerror "No support has been added for your architecture."
121 exit 1
122 ;;
123 esac
124
125 for style in ${styles};
126 do
127 emake -j1 clean ${atype}${style} CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die
128 mv mpg123 gentoo-bin/mpg123${style}
129 [[ -L "gentoo-bin/mpg123" ]] && rm gentoo-bin/mpg123
130 ln -s mpg123${style} gentoo-bin/mpg123
131 done
132 }
133
134 src_install() {
135 dodir /usr
136 cp -R gentoo-bin ${D}/usr/bin
137 doman mpg123.1
138 dodoc BENCHMARKING BUGS CHANGES JUKEBOX README* TODO
139 }

  ViewVC Help
Powered by ViewVC 1.1.20