1 |
commit: c3fccd2bc81a9004dc9d13596b5b2b0277e1918b |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 6 11:47:07 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 6 11:54:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3fccd2b |
7 |
|
8 |
media-sound/mpg123: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
|
12 |
media-sound/mpg123/Manifest | 4 -- |
13 |
media-sound/mpg123/mpg123-1.18.1.ebuild | 97 ----------------------------- |
14 |
media-sound/mpg123/mpg123-1.22.4.ebuild | 100 ----------------------------- |
15 |
media-sound/mpg123/mpg123-1.23.6.ebuild | 107 -------------------------------- |
16 |
media-sound/mpg123/mpg123-1.23.7.ebuild | 107 -------------------------------- |
17 |
5 files changed, 415 deletions(-) |
18 |
|
19 |
diff --git a/media-sound/mpg123/Manifest b/media-sound/mpg123/Manifest |
20 |
index 82e93f4a461..72d6ee41337 100644 |
21 |
--- a/media-sound/mpg123/Manifest |
22 |
+++ b/media-sound/mpg123/Manifest |
23 |
@@ -1,6 +1,2 @@ |
24 |
-DIST mpg123-1.18.1.tar.bz2 853423 SHA256 bc6d384f7e038f2458cb05a4d175325e5cb25e0aed441d7b02960e8ec186652d SHA512 973af5e9de67c489dd609d18234ba4118a635d63bb6f1b919f9b89f57adc4bddca9a5bf41a47f1da588f14c84ed130d8ac8e674a081f06d35f5ace85924a70b5 WHIRLPOOL 4959edd4002f021092fffb4c84d864c612b2692b8d9bfa5dd3c16ae7bcdbcf179c20f3af6609260646cb71305fe9831c7f080678783aed1af187251a1d13970c |
25 |
-DIST mpg123-1.22.4.tar.bz2 870889 SHA256 5069e02e50138600f10cc5f7674e44e9bf6f1930af81d0e1d2f869b3c0ee40d2 SHA512 d8552b3522fa58647cee7c43227737993851452a15dc6d3ae6948c6c62d4a8f6064e2b284f170413aa3f805a3f3e1a6f1faac7d19daddd25c6790863e4925212 WHIRLPOOL 079ac4dacbee6bbfb915a84c1f2c5738f1edff69b75a7d1c1e6bc9b323c2e1d574985c91339c5ecab8cc0de93d72fc95c8c278676a92511da0c23d210d64a0dd |
26 |
-DIST mpg123-1.23.6.tar.bz2 893351 SHA256 4073d9c60a43872f6f5a3a322f5ea21ab7f0869d2ed25e79c3eb8521fa3c32d4 SHA512 2fe11f921227c0866717c9268e7034d28a09086d96e3748188dcf41189238d8e605347f3200aa419031ca2975dc61ab9dfa51879e26f9a0d2f736a9c20089e3c WHIRLPOOL 4992224ecbf5a576e7d20ce4727cc3734ff08a261348ed114ad8225f0dd08314aa0b3b751c36aa7ddddf2f287efee968eb7d4bfbb24fde20fff9c66a7185120a |
27 |
-DIST mpg123-1.23.7.tar.bz2 893054 SHA256 934047120953159e364c790e059684b681d7e670884fe179e1954d17d1c6334b SHA512 f63e8f6849447c1b3821e032908c2f7c2c78fa68869bbbb909c4ac9f8732387e5be2440e2f40e349dc103306eed56c409d4f5dd10aaea08ba18dca49a677bf2f WHIRLPOOL 66d6a14176c22202bc7e0a0dedc255b5953c68de31b72e82dcba27adffe912319d9a4b297de55b6d806b40a7fe054ffd139581e7ec1a91bdd648dbe8edf7f842 |
28 |
DIST mpg123-1.23.8.tar.bz2 893728 SHA256 de2303c8ecb65593e39815c0a2f2f2d91f708c43b85a55fdd1934c82e677cf8e SHA512 7b77b543bd6a127095c6a6a2e7f9b5933f5a391734cc6dcbc160f786008afcd74646a7c304e1be682042221648b0fcae7efafda4bbe66ba30a7021740abddc34 WHIRLPOOL bfc0c8d186f6ea827d4d3cbacf2accbba080798113b31757ad1c3f0aea12ebb94233ee81a7fea493af38bdbf59407add73976933d749229e83371833ba79caa4 |
29 |
DIST mpg123-1.24.0.tar.bz2 912049 SHA256 55fb169a7711938f5df0497d1ffe28419fbef50011dc01d00b216379e6a2256c SHA512 e7c0d7a103daf496e75a6aa6aca861cfc0ad391f242335990c2360305e567039d24ca3b37a35f79b75749055e255f4692b8b43d2fec332b119223b00e12b0cb7 WHIRLPOOL 3d1c882c4c2c0cf8fc575be3a65f9c9d61a1549f75abeb983c2bafef3c303507bdc494594060bc732096c3d7fb96c372d2554a698a46a19c1c6e5f48e5e61771 |
30 |
|
31 |
diff --git a/media-sound/mpg123/mpg123-1.18.1.ebuild b/media-sound/mpg123/mpg123-1.18.1.ebuild |
32 |
deleted file mode 100644 |
33 |
index 3ed1c2b1cb9..00000000000 |
34 |
--- a/media-sound/mpg123/mpg123-1.18.1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,97 +0,0 @@ |
37 |
-# Copyright 1999-2017 Gentoo Foundation |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=5 |
41 |
-inherit eutils toolchain-funcs libtool multilib-minimal |
42 |
- |
43 |
-DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3" |
44 |
-HOMEPAGE="http://www.mpg123.org/" |
45 |
-SRC_URI="http://www.mpg123.org/download/${P}.tar.bz2" |
46 |
- |
47 |
-LICENSE="GPL-2 LGPL-2.1" |
48 |
-SLOT="0" |
49 |
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
50 |
-IUSE="cpu_flags_x86_3dnow cpu_flags_x86_3dnowext alsa altivec coreaudio int-quality ipv6 jack cpu_flags_x86_mmx nas oss portaudio pulseaudio sdl cpu_flags_x86_sse" |
51 |
- |
52 |
-# No MULTILIB_USEDEP here since we only build libmpg123 for non native ABIs. |
53 |
-RDEPEND="app-eselect/eselect-mpg123 |
54 |
- >=sys-devel/libtool-2.2.6b |
55 |
- alsa? ( media-libs/alsa-lib ) |
56 |
- jack? ( virtual/jack ) |
57 |
- nas? ( media-libs/nas ) |
58 |
- portaudio? ( media-libs/portaudio ) |
59 |
- pulseaudio? ( media-sound/pulseaudio ) |
60 |
- sdl? ( media-libs/libsdl ) |
61 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r9 |
62 |
- !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )" |
63 |
-DEPEND="${RDEPEND} |
64 |
- virtual/pkgconfig" |
65 |
- |
66 |
-DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README ) |
67 |
- |
68 |
-src_prepare() { |
69 |
- elibtoolize # for Darwin bundles |
70 |
-} |
71 |
- |
72 |
-multilib_src_configure() { |
73 |
- local _audio=dummy |
74 |
- local _output=dummy |
75 |
- local _cpu=generic_fpu |
76 |
- |
77 |
- if $(multilib_is_native_abi) ; then |
78 |
- for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do |
79 |
- if use ${flag}; then |
80 |
- _audio="${_audio} ${flag/pulseaudio/pulse}" |
81 |
- _output=${flag/pulseaudio/pulse} |
82 |
- fi |
83 |
- done |
84 |
- fi |
85 |
- |
86 |
- use altivec && _cpu=altivec |
87 |
- |
88 |
- if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then |
89 |
- use cpu_flags_x86_sse && _cpu=x86-64 |
90 |
- elif use x86 && gcc-specs-pie ; then |
91 |
- # Don't use any mmx, 3dnow, sse and 3dnowext #bug 164504 |
92 |
- _cpu=generic_fpu |
93 |
- elif use x86-macos ; then |
94 |
- # ASM doesn't work quite as expected with the Darwin linker |
95 |
- _cpu=generic_fpu |
96 |
- else |
97 |
- use cpu_flags_x86_mmx && _cpu=mmx |
98 |
- use cpu_flags_x86_3dnow && _cpu=3dnow |
99 |
- use cpu_flags_x86_sse && _cpu=x86 |
100 |
- use cpu_flags_x86_3dnowext && _cpu=x86 |
101 |
- fi |
102 |
- |
103 |
- local myconf="" |
104 |
- multilib_is_native_abi || myconf="${myconf} --disable-modules" |
105 |
- |
106 |
- ECONF_SOURCE="${S}" econf \ |
107 |
- --with-optimization=0 \ |
108 |
- --with-audio="${_audio}" \ |
109 |
- --with-default-audio=${_output} \ |
110 |
- --with-cpu=${_cpu} \ |
111 |
- --enable-network \ |
112 |
- $(use_enable ipv6) \ |
113 |
- --enable-int-quality=$(usex int-quality) \ |
114 |
- ${myconf} |
115 |
- |
116 |
- if ! $(multilib_is_native_abi) ; then |
117 |
- sed -i -e 's:src doc:src/libmpg123:' Makefile || die |
118 |
- fi |
119 |
-} |
120 |
- |
121 |
-multilib_src_install_all() { |
122 |
- einstalldocs |
123 |
- mv "${ED}"/usr/bin/mpg123{,-mpg123} |
124 |
- find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + |
125 |
-} |
126 |
- |
127 |
-pkg_postinst() { |
128 |
- eselect mpg123 update ifunset |
129 |
-} |
130 |
- |
131 |
-pkg_postrm() { |
132 |
- eselect mpg123 update ifunset |
133 |
-} |
134 |
|
135 |
diff --git a/media-sound/mpg123/mpg123-1.22.4.ebuild b/media-sound/mpg123/mpg123-1.22.4.ebuild |
136 |
deleted file mode 100644 |
137 |
index ed981ddff9a..00000000000 |
138 |
--- a/media-sound/mpg123/mpg123-1.22.4.ebuild |
139 |
+++ /dev/null |
140 |
@@ -1,100 +0,0 @@ |
141 |
-# Copyright 1999-2017 Gentoo Foundation |
142 |
-# Distributed under the terms of the GNU General Public License v2 |
143 |
- |
144 |
-EAPI=5 |
145 |
-inherit eutils toolchain-funcs libtool multilib-minimal |
146 |
- |
147 |
-DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3" |
148 |
-HOMEPAGE="http://www.mpg123.org/" |
149 |
-SRC_URI="http://www.mpg123.org/download/${P}.tar.bz2" |
150 |
- |
151 |
-LICENSE="GPL-2 LGPL-2.1" |
152 |
-SLOT="0" |
153 |
-KEYWORDS="alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
154 |
-IUSE="cpu_flags_x86_3dnow cpu_flags_x86_3dnowext alsa altivec coreaudio int-quality ipv6 jack cpu_flags_x86_mmx nas oss portaudio pulseaudio sdl cpu_flags_x86_sse" |
155 |
- |
156 |
-# No MULTILIB_USEDEP here since we only build libmpg123 for non native ABIs. |
157 |
-RDEPEND="app-eselect/eselect-mpg123 |
158 |
- dev-libs/libltdl:0 |
159 |
- alsa? ( media-libs/alsa-lib ) |
160 |
- jack? ( virtual/jack ) |
161 |
- nas? ( media-libs/nas ) |
162 |
- portaudio? ( media-libs/portaudio ) |
163 |
- pulseaudio? ( media-sound/pulseaudio ) |
164 |
- sdl? ( media-libs/libsdl ) |
165 |
- abi_x86_32? ( |
166 |
- !<=app-emulation/emul-linux-x86-soundlibs-20130224-r9 |
167 |
- !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] |
168 |
- )" |
169 |
-DEPEND="${RDEPEND} |
170 |
- sys-devel/libtool |
171 |
- virtual/pkgconfig" |
172 |
- |
173 |
-DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README ) |
174 |
- |
175 |
-src_prepare() { |
176 |
- elibtoolize # for Darwin bundles |
177 |
-} |
178 |
- |
179 |
-multilib_src_configure() { |
180 |
- local _audio=dummy |
181 |
- local _output=dummy |
182 |
- local _cpu=generic_fpu |
183 |
- |
184 |
- if $(multilib_is_native_abi) ; then |
185 |
- for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do |
186 |
- if use ${flag}; then |
187 |
- _audio+=" ${flag/pulseaudio/pulse}" |
188 |
- _output=${flag/pulseaudio/pulse} |
189 |
- fi |
190 |
- done |
191 |
- fi |
192 |
- |
193 |
- use altivec && _cpu=altivec |
194 |
- |
195 |
- if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then |
196 |
- use cpu_flags_x86_sse && _cpu=x86-64 |
197 |
- elif use x86 && gcc-specs-pie ; then |
198 |
- # Don't use any mmx, 3dnow, sse and 3dnowext #bug 164504 |
199 |
- _cpu=generic_fpu |
200 |
- elif use x86-macos ; then |
201 |
- # ASM doesn't work quite as expected with the Darwin linker |
202 |
- _cpu=generic_fpu |
203 |
- else |
204 |
- use cpu_flags_x86_mmx && _cpu=mmx |
205 |
- use cpu_flags_x86_3dnow && _cpu=3dnow |
206 |
- use cpu_flags_x86_sse && _cpu=x86 |
207 |
- use cpu_flags_x86_3dnowext && _cpu=x86 |
208 |
- fi |
209 |
- |
210 |
- local myconf="" |
211 |
- multilib_is_native_abi || myconf="${myconf} --disable-modules" |
212 |
- |
213 |
- ECONF_SOURCE="${S}" econf \ |
214 |
- --with-optimization=0 \ |
215 |
- --with-audio="${_audio}" \ |
216 |
- --with-default-audio=${_output} \ |
217 |
- --with-cpu=${_cpu} \ |
218 |
- --enable-network \ |
219 |
- $(use_enable ipv6) \ |
220 |
- --enable-int-quality=$(usex int-quality) \ |
221 |
- ${myconf} |
222 |
- |
223 |
- if ! $(multilib_is_native_abi) ; then |
224 |
- sed -i -e 's:src doc:src/libmpg123:' Makefile || die |
225 |
- fi |
226 |
-} |
227 |
- |
228 |
-multilib_src_install_all() { |
229 |
- einstalldocs |
230 |
- mv "${ED}"/usr/bin/mpg123{,-mpg123} |
231 |
- find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + |
232 |
-} |
233 |
- |
234 |
-pkg_postinst() { |
235 |
- eselect mpg123 update ifunset |
236 |
-} |
237 |
- |
238 |
-pkg_postrm() { |
239 |
- eselect mpg123 update ifunset |
240 |
-} |
241 |
|
242 |
diff --git a/media-sound/mpg123/mpg123-1.23.6.ebuild b/media-sound/mpg123/mpg123-1.23.6.ebuild |
243 |
deleted file mode 100644 |
244 |
index 859664f6881..00000000000 |
245 |
--- a/media-sound/mpg123/mpg123-1.23.6.ebuild |
246 |
+++ /dev/null |
247 |
@@ -1,107 +0,0 @@ |
248 |
-# Copyright 1999-2017 Gentoo Foundation |
249 |
-# Distributed under the terms of the GNU General Public License v2 |
250 |
- |
251 |
-EAPI=6 |
252 |
-inherit flag-o-matic toolchain-funcs libtool multilib-minimal |
253 |
- |
254 |
-DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3" |
255 |
-HOMEPAGE="http://www.mpg123.org/" |
256 |
-SRC_URI="http://www.mpg123.org/download/${P}.tar.bz2" |
257 |
- |
258 |
-LICENSE="GPL-2 LGPL-2.1" |
259 |
-SLOT="0" |
260 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
261 |
-IUSE="cpu_flags_x86_3dnow cpu_flags_x86_3dnowext alsa altivec coreaudio int-quality ipv6 jack cpu_flags_x86_mmx nas oss portaudio pulseaudio sdl cpu_flags_x86_sse" |
262 |
- |
263 |
-# No MULTILIB_USEDEP here since we only build libmpg123 for non native ABIs. |
264 |
-RDEPEND="app-eselect/eselect-mpg123 |
265 |
- dev-libs/libltdl:0 |
266 |
- alsa? ( media-libs/alsa-lib ) |
267 |
- jack? ( virtual/jack ) |
268 |
- nas? ( media-libs/nas ) |
269 |
- portaudio? ( media-libs/portaudio ) |
270 |
- pulseaudio? ( media-sound/pulseaudio ) |
271 |
- sdl? ( media-libs/libsdl ) |
272 |
- abi_x86_32? ( |
273 |
- !<=app-emulation/emul-linux-x86-soundlibs-20130224-r9 |
274 |
- !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] |
275 |
- )" |
276 |
-DEPEND="${RDEPEND} |
277 |
- sys-devel/libtool |
278 |
- virtual/pkgconfig" |
279 |
- |
280 |
-DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README ) |
281 |
- |
282 |
-pkg_setup() { |
283 |
- # Build fails without -D_GNU_SOURCE like this: |
284 |
- # error: ‘struct hostent’ has no member named ‘h_addr’ |
285 |
- append-cflags -D_GNU_SOURCE |
286 |
-} |
287 |
- |
288 |
-src_prepare() { |
289 |
- default |
290 |
- elibtoolize # for Darwin bundles |
291 |
-} |
292 |
- |
293 |
-multilib_src_configure() { |
294 |
- local _audio=dummy |
295 |
- local _output=dummy |
296 |
- local _cpu=generic_fpu |
297 |
- |
298 |
- if $(multilib_is_native_abi) ; then |
299 |
- for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do |
300 |
- if use ${flag}; then |
301 |
- _audio+=" ${flag/pulseaudio/pulse}" |
302 |
- _output=${flag/pulseaudio/pulse} |
303 |
- fi |
304 |
- done |
305 |
- fi |
306 |
- |
307 |
- use altivec && _cpu=altivec |
308 |
- |
309 |
- if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then |
310 |
- use cpu_flags_x86_sse && _cpu=x86-64 |
311 |
- elif use x86 && gcc-specs-pie ; then |
312 |
- # Don't use any mmx, 3dnow, sse and 3dnowext #bug 164504 |
313 |
- _cpu=generic_fpu |
314 |
- elif use x86-macos ; then |
315 |
- # ASM doesn't work quite as expected with the Darwin linker |
316 |
- _cpu=generic_fpu |
317 |
- else |
318 |
- use cpu_flags_x86_mmx && _cpu=mmx |
319 |
- use cpu_flags_x86_3dnow && _cpu=3dnow |
320 |
- use cpu_flags_x86_sse && _cpu=x86 |
321 |
- use cpu_flags_x86_3dnowext && _cpu=x86 |
322 |
- fi |
323 |
- |
324 |
- local myconf="" |
325 |
- multilib_is_native_abi || myconf="${myconf} --disable-modules" |
326 |
- |
327 |
- ECONF_SOURCE="${S}" econf \ |
328 |
- --with-optimization=0 \ |
329 |
- --with-audio="${_audio}" \ |
330 |
- --with-default-audio=${_output} \ |
331 |
- --with-cpu=${_cpu} \ |
332 |
- --enable-network \ |
333 |
- $(use_enable ipv6) \ |
334 |
- --enable-int-quality=$(usex int-quality) \ |
335 |
- ${myconf} |
336 |
- |
337 |
- if ! $(multilib_is_native_abi) ; then |
338 |
- sed -i -e 's:src doc:src/libmpg123:' Makefile || die |
339 |
- fi |
340 |
-} |
341 |
- |
342 |
-multilib_src_install_all() { |
343 |
- einstalldocs |
344 |
- mv "${ED}"/usr/bin/mpg123{,-mpg123} |
345 |
- find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + |
346 |
-} |
347 |
- |
348 |
-pkg_postinst() { |
349 |
- eselect mpg123 update ifunset |
350 |
-} |
351 |
- |
352 |
-pkg_postrm() { |
353 |
- eselect mpg123 update ifunset |
354 |
-} |
355 |
|
356 |
diff --git a/media-sound/mpg123/mpg123-1.23.7.ebuild b/media-sound/mpg123/mpg123-1.23.7.ebuild |
357 |
deleted file mode 100644 |
358 |
index 859664f6881..00000000000 |
359 |
--- a/media-sound/mpg123/mpg123-1.23.7.ebuild |
360 |
+++ /dev/null |
361 |
@@ -1,107 +0,0 @@ |
362 |
-# Copyright 1999-2017 Gentoo Foundation |
363 |
-# Distributed under the terms of the GNU General Public License v2 |
364 |
- |
365 |
-EAPI=6 |
366 |
-inherit flag-o-matic toolchain-funcs libtool multilib-minimal |
367 |
- |
368 |
-DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3" |
369 |
-HOMEPAGE="http://www.mpg123.org/" |
370 |
-SRC_URI="http://www.mpg123.org/download/${P}.tar.bz2" |
371 |
- |
372 |
-LICENSE="GPL-2 LGPL-2.1" |
373 |
-SLOT="0" |
374 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
375 |
-IUSE="cpu_flags_x86_3dnow cpu_flags_x86_3dnowext alsa altivec coreaudio int-quality ipv6 jack cpu_flags_x86_mmx nas oss portaudio pulseaudio sdl cpu_flags_x86_sse" |
376 |
- |
377 |
-# No MULTILIB_USEDEP here since we only build libmpg123 for non native ABIs. |
378 |
-RDEPEND="app-eselect/eselect-mpg123 |
379 |
- dev-libs/libltdl:0 |
380 |
- alsa? ( media-libs/alsa-lib ) |
381 |
- jack? ( virtual/jack ) |
382 |
- nas? ( media-libs/nas ) |
383 |
- portaudio? ( media-libs/portaudio ) |
384 |
- pulseaudio? ( media-sound/pulseaudio ) |
385 |
- sdl? ( media-libs/libsdl ) |
386 |
- abi_x86_32? ( |
387 |
- !<=app-emulation/emul-linux-x86-soundlibs-20130224-r9 |
388 |
- !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] |
389 |
- )" |
390 |
-DEPEND="${RDEPEND} |
391 |
- sys-devel/libtool |
392 |
- virtual/pkgconfig" |
393 |
- |
394 |
-DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README ) |
395 |
- |
396 |
-pkg_setup() { |
397 |
- # Build fails without -D_GNU_SOURCE like this: |
398 |
- # error: ‘struct hostent’ has no member named ‘h_addr’ |
399 |
- append-cflags -D_GNU_SOURCE |
400 |
-} |
401 |
- |
402 |
-src_prepare() { |
403 |
- default |
404 |
- elibtoolize # for Darwin bundles |
405 |
-} |
406 |
- |
407 |
-multilib_src_configure() { |
408 |
- local _audio=dummy |
409 |
- local _output=dummy |
410 |
- local _cpu=generic_fpu |
411 |
- |
412 |
- if $(multilib_is_native_abi) ; then |
413 |
- for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do |
414 |
- if use ${flag}; then |
415 |
- _audio+=" ${flag/pulseaudio/pulse}" |
416 |
- _output=${flag/pulseaudio/pulse} |
417 |
- fi |
418 |
- done |
419 |
- fi |
420 |
- |
421 |
- use altivec && _cpu=altivec |
422 |
- |
423 |
- if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then |
424 |
- use cpu_flags_x86_sse && _cpu=x86-64 |
425 |
- elif use x86 && gcc-specs-pie ; then |
426 |
- # Don't use any mmx, 3dnow, sse and 3dnowext #bug 164504 |
427 |
- _cpu=generic_fpu |
428 |
- elif use x86-macos ; then |
429 |
- # ASM doesn't work quite as expected with the Darwin linker |
430 |
- _cpu=generic_fpu |
431 |
- else |
432 |
- use cpu_flags_x86_mmx && _cpu=mmx |
433 |
- use cpu_flags_x86_3dnow && _cpu=3dnow |
434 |
- use cpu_flags_x86_sse && _cpu=x86 |
435 |
- use cpu_flags_x86_3dnowext && _cpu=x86 |
436 |
- fi |
437 |
- |
438 |
- local myconf="" |
439 |
- multilib_is_native_abi || myconf="${myconf} --disable-modules" |
440 |
- |
441 |
- ECONF_SOURCE="${S}" econf \ |
442 |
- --with-optimization=0 \ |
443 |
- --with-audio="${_audio}" \ |
444 |
- --with-default-audio=${_output} \ |
445 |
- --with-cpu=${_cpu} \ |
446 |
- --enable-network \ |
447 |
- $(use_enable ipv6) \ |
448 |
- --enable-int-quality=$(usex int-quality) \ |
449 |
- ${myconf} |
450 |
- |
451 |
- if ! $(multilib_is_native_abi) ; then |
452 |
- sed -i -e 's:src doc:src/libmpg123:' Makefile || die |
453 |
- fi |
454 |
-} |
455 |
- |
456 |
-multilib_src_install_all() { |
457 |
- einstalldocs |
458 |
- mv "${ED}"/usr/bin/mpg123{,-mpg123} |
459 |
- find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + |
460 |
-} |
461 |
- |
462 |
-pkg_postinst() { |
463 |
- eselect mpg123 update ifunset |
464 |
-} |
465 |
- |
466 |
-pkg_postrm() { |
467 |
- eselect mpg123 update ifunset |
468 |
-} |