1 |
ssuominen 10/04/27 11:21:09 |
2 |
|
3 |
Modified: ChangeLog mplayer-9999.ebuild |
4 |
Added: mplayer-1.0_rc4_p20100427.ebuild |
5 |
Log: |
6 |
bump |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.732 media-video/mplayer/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?rev=1.732&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?rev=1.732&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?r1=1.731&r2=1.732 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v |
19 |
retrieving revision 1.731 |
20 |
retrieving revision 1.732 |
21 |
diff -u -r1.731 -r1.732 |
22 |
--- ChangeLog 24 Apr 2010 15:49:46 -0000 1.731 |
23 |
+++ ChangeLog 27 Apr 2010 11:21:09 -0000 1.732 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for media-video/mplayer |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.731 2010/04/24 15:49:46 aballier Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.732 2010/04/27 11:21:09 ssuominen Exp $ |
29 |
+ |
30 |
+*mplayer-1.0_rc4_p20100427 (27 Apr 2010) |
31 |
+ |
32 |
+ 27 Apr 2010; Samuli Suominen <ssuominen@g.o> |
33 |
+ +mplayer-1.0_rc4_p20100427.ebuild: |
34 |
+ Version (snapshot) bump. |
35 |
|
36 |
24 Apr 2010; Alexis Ballier <aballier@g.o> mplayer-9999.ebuild: |
37 |
fix x264 deps |
38 |
|
39 |
|
40 |
|
41 |
1.51 media-video/mplayer/mplayer-9999.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-9999.ebuild?rev=1.51&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-9999.ebuild?rev=1.51&content-type=text/plain |
45 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-9999.ebuild?r1=1.50&r2=1.51 |
46 |
|
47 |
Index: mplayer-9999.ebuild |
48 |
=================================================================== |
49 |
RCS file: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-9999.ebuild,v |
50 |
retrieving revision 1.50 |
51 |
retrieving revision 1.51 |
52 |
diff -u -r1.50 -r1.51 |
53 |
--- mplayer-9999.ebuild 24 Apr 2010 15:49:46 -0000 1.50 |
54 |
+++ mplayer-9999.ebuild 27 Apr 2010 11:21:09 -0000 1.51 |
55 |
@@ -1,6 +1,6 @@ |
56 |
# Copyright 1999-2010 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
-# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-9999.ebuild,v 1.50 2010/04/24 15:49:46 aballier Exp $ |
59 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-9999.ebuild,v 1.51 2010/04/27 11:21:09 ssuominen Exp $ |
60 |
|
61 |
EAPI="2" |
62 |
|
63 |
@@ -43,8 +43,7 @@ |
64 |
SRC_URI="${RELEASE_URI} |
65 |
!truetype? ( ${FONT_URI} ) |
66 |
gmplayer? ( mirror://mplayer/skins/Blue-${BLUV}.tar.bz2 ) |
67 |
- svga? ( mirror://gentoo/svgalib_helper-${SVGV}-mplayer.tar.gz )" |
68 |
-# svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 ) |
69 |
+ svga? ( http://www.mplayerhq.hu/MPlayer/contrib/svgalib/svgalib_helper-${SVGV}-mplayer.tar.bz2 )" |
70 |
|
71 |
DESCRIPTION="Media Player for Linux" |
72 |
HOMEPAGE="http://www.mplayerhq.hu/" |
73 |
|
74 |
|
75 |
|
76 |
1.1 media-video/mplayer/mplayer-1.0_rc4_p20100427.ebuild |
77 |
|
78 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-1.0_rc4_p20100427.ebuild?rev=1.1&view=markup |
79 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-1.0_rc4_p20100427.ebuild?rev=1.1&content-type=text/plain |
80 |
|
81 |
Index: mplayer-1.0_rc4_p20100427.ebuild |
82 |
=================================================================== |
83 |
# Copyright 1999-2010 Gentoo Foundation |
84 |
# Distributed under the terms of the GNU General Public License v2 |
85 |
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0_rc4_p20100427.ebuild,v 1.1 2010/04/27 11:21:09 ssuominen Exp $ |
86 |
|
87 |
EAPI="2" |
88 |
|
89 |
ESVN_REPO_URI="svn://svn.mplayerhq.hu/mplayer/trunk" |
90 |
[[ ${PV} = *9999* ]] && SVN_ECLASS="subversion" || SVN_ECLASS="" |
91 |
|
92 |
inherit eutils flag-o-matic multilib base ${SVN_ECLASS} |
93 |
|
94 |
[[ ${PV} != *9999* ]] && MPLAYER_REVISION=SVN-r30554 |
95 |
|
96 |
IUSE="3dnow 3dnowext +a52 aalib +alsa altivec +ass bidi bindist bl bs2b |
97 |
+cddb +cdio cdparanoia cpudetection custom-cpuopts debug dga +dirac directfb |
98 |
doc +dts +dv dvb +dvd +dvdnav dxr3 +enca +encode esd +faac +faad fbcon ftp |
99 |
gif ggi -gmplayer +iconv ipv6 jack joystick jpeg jpeg2k kernel_linux ladspa |
100 |
libcaca lirc +live lzo mad md5sum +mmx mmxext mng +mp3 nas +network nut openal |
101 |
amr +opengl +osdmenu oss png pnm pulseaudio pvr +quicktime radio +rar +real +rtc |
102 |
samba +shm +schroedinger sdl +speex sse sse2 ssse3 svga tga +theora +tremor |
103 |
+truetype +toolame +twolame +unicode v4l v4l2 vdpau vidix +vorbis win32codecs |
104 |
+X +x264 xanim xinerama +xscreensaver +xv +xvid xvmc zoran" |
105 |
[[ ${PV} == *9999* ]] && IUSE+=" external-ffmpeg" |
106 |
|
107 |
VIDEO_CARDS="s3virge mga tdfx vesa" |
108 |
for x in ${VIDEO_CARDS}; do |
109 |
IUSE+=" video_cards_${x}" |
110 |
done |
111 |
|
112 |
BLUV="1.7" |
113 |
SVGV="1.9.17" |
114 |
AMR_URI="http://www.3gpp.org/ftp/Specs/archive" |
115 |
FONT_URI=" |
116 |
mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 |
117 |
mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 |
118 |
mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 |
119 |
" |
120 |
if [[ ${PV} == *9999* ]]; then |
121 |
RELEASE_URI="" |
122 |
else |
123 |
RELEASE_URI="http://dev.gentoo.org/~ssuominen/${P}.tar.bz2" |
124 |
fi |
125 |
SRC_URI="${RELEASE_URI} |
126 |
!truetype? ( ${FONT_URI} ) |
127 |
gmplayer? ( mirror://mplayer/skins/Blue-${BLUV}.tar.bz2 ) |
128 |
svga? ( http://www.mplayerhq.hu/MPlayer/contrib/svgalib/svgalib_helper-${SVGV}-mplayer.tar.bz2 )" |
129 |
|
130 |
DESCRIPTION="Media Player for Linux" |
131 |
HOMEPAGE="http://www.mplayerhq.hu/" |
132 |
|
133 |
FONT_RDEPS=" |
134 |
virtual/ttf-fonts |
135 |
media-libs/fontconfig |
136 |
>=media-libs/freetype-2.2.1:2 |
137 |
" |
138 |
X_RDEPS=" |
139 |
x11-libs/libXext |
140 |
x11-libs/libXxf86vm |
141 |
" |
142 |
[[ ${PV} == *9999* ]] && RDEPEND+=" external-ffmpeg? ( media-video/ffmpeg )" |
143 |
# Rar: althrought -gpl version is nice, it cant do most functions normal rars can |
144 |
# nemesi? ( net-libs/libnemesi ) |
145 |
RDEPEND+=" |
146 |
sys-libs/ncurses |
147 |
!bindist? ( |
148 |
x86? ( |
149 |
win32codecs? ( media-libs/win32codecs ) |
150 |
) |
151 |
) |
152 |
X? ( |
153 |
${X_RDEPS} |
154 |
dga? ( x11-libs/libXxf86dga ) |
155 |
ggi? ( |
156 |
media-libs/libggi |
157 |
media-libs/libggiwmh |
158 |
) |
159 |
gmplayer? ( |
160 |
media-libs/libpng |
161 |
x11-libs/gtk+:2 |
162 |
x11-libs/libXi |
163 |
) |
164 |
opengl? ( virtual/opengl ) |
165 |
vdpau? ( || ( x11-libs/libvdpau >=x11-drivers/nvidia-drivers-180.51 ) ) |
166 |
xinerama? ( x11-libs/libXinerama ) |
167 |
xscreensaver? ( x11-libs/libXScrnSaver ) |
168 |
xv? ( |
169 |
x11-libs/libXv |
170 |
xvmc? ( x11-libs/libXvMC ) |
171 |
) |
172 |
) |
173 |
aalib? ( media-libs/aalib ) |
174 |
alsa? ( media-libs/alsa-lib ) |
175 |
amr? ( !bindist? ( media-libs/opencore-amr ) ) |
176 |
ass? ( ${FONT_RDEPS} media-libs/libass ) |
177 |
bidi? ( dev-libs/fribidi ) |
178 |
bs2b? ( media-libs/libbs2b ) |
179 |
cdio? ( dev-libs/libcdio ) |
180 |
cdparanoia? ( !cdio? ( media-sound/cdparanoia ) ) |
181 |
dirac? ( media-video/dirac ) |
182 |
directfb? ( dev-libs/DirectFB ) |
183 |
dts? ( media-libs/libdca ) |
184 |
dv? ( media-libs/libdv ) |
185 |
dvb? ( media-tv/linuxtv-dvb-headers ) |
186 |
encode? ( |
187 |
!twolame? ( toolame? ( media-sound/toolame ) ) |
188 |
twolame? ( media-sound/twolame ) |
189 |
faac? ( media-libs/faac ) |
190 |
mp3? ( media-sound/lame ) |
191 |
x264? ( >=media-libs/x264-0.0.20100423 ) |
192 |
xvid? ( media-libs/xvid ) |
193 |
) |
194 |
esd? ( media-sound/esound ) |
195 |
enca? ( app-i18n/enca ) |
196 |
faad? ( media-libs/faad2 ) |
197 |
gif? ( media-libs/giflib ) |
198 |
jack? ( media-sound/jack-audio-connection-kit ) |
199 |
jpeg? ( media-libs/jpeg ) |
200 |
jpeg2k? ( media-libs/openjpeg ) |
201 |
ladspa? ( media-libs/ladspa-sdk ) |
202 |
libcaca? ( media-libs/libcaca ) |
203 |
lirc? ( app-misc/lirc ) |
204 |
live? ( media-plugins/live ) |
205 |
lzo? ( >=dev-libs/lzo-2 ) |
206 |
mad? ( media-libs/libmad ) |
207 |
mng? ( media-libs/libmng ) |
208 |
nas? ( media-libs/nas ) |
209 |
nut? ( >=media-libs/libnut-661 ) |
210 |
openal? ( media-libs/openal ) |
211 |
png? ( media-libs/libpng ) |
212 |
pnm? ( media-libs/netpbm ) |
213 |
pulseaudio? ( media-sound/pulseaudio ) |
214 |
rar? ( |
215 |
|| ( |
216 |
app-arch/unrar |
217 |
app-arch/rar |
218 |
) |
219 |
) |
220 |
samba? ( net-fs/samba ) |
221 |
schroedinger? ( media-libs/schroedinger ) |
222 |
sdl? ( media-libs/libsdl ) |
223 |
speex? ( media-libs/speex ) |
224 |
svga? ( media-libs/svgalib ) |
225 |
theora? ( media-libs/libtheora ) |
226 |
truetype? ( ${FONT_RDEPS} ) |
227 |
vorbis? ( media-libs/libvorbis ) |
228 |
xanim? ( media-video/xanim ) |
229 |
" |
230 |
|
231 |
X_DEPS=" |
232 |
x11-proto/videoproto |
233 |
x11-proto/xf86vidmodeproto |
234 |
" |
235 |
ASM_DEP="dev-lang/yasm" |
236 |
DEPEND="${RDEPEND} |
237 |
dev-util/pkgconfig |
238 |
X? ( |
239 |
${X_DEPS} |
240 |
dga? ( x11-proto/xf86dgaproto ) |
241 |
dxr3? ( media-video/em8300-libraries ) |
242 |
gmplayer? ( x11-proto/xextproto ) |
243 |
xinerama? ( x11-proto/xineramaproto ) |
244 |
xscreensaver? ( x11-proto/scrnsaverproto ) |
245 |
) |
246 |
amd64? ( ${ASM_DEP} ) |
247 |
doc? ( dev-libs/libxslt ) |
248 |
iconv? ( virtual/libiconv ) |
249 |
x86? ( ${ASM_DEP} ) |
250 |
x86-fbsd? ( ${ASM_DEP} ) |
251 |
" |
252 |
|
253 |
SLOT="0" |
254 |
LICENSE="GPL-2" |
255 |
if [[ ${PV} != *9999* ]]; then |
256 |
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
257 |
else |
258 |
KEYWORDS="" |
259 |
fi |
260 |
|
261 |
PATCHES=( |
262 |
) |
263 |
|
264 |
pkg_setup() { |
265 |
if [[ ${PV} == *9999* ]]; then |
266 |
elog "" |
267 |
elog "This is a live ebuild which installs the latest from upstream's" |
268 |
elog "subversion repository, and is unsupported by Gentoo." |
269 |
elog "Everything but bugs in the ebuild itself will be ignored." |
270 |
elog "" |
271 |
fi |
272 |
|
273 |
if use gmplayer; then |
274 |
ewarn "" |
275 |
ewarn "GMPlayer is no longer actively developed upstream" |
276 |
ewarn "and is not supported by Gentoo. There are alternatives" |
277 |
ewarn "for a GUI frontend: smplayer, gnome-mplayer or kmplayer." |
278 |
fi |
279 |
|
280 |
if use cpudetection; then |
281 |
ewarn "" |
282 |
ewarn "You've enabled the cpudetection flag. This feature is" |
283 |
ewarn "included mainly for people who want to use the same" |
284 |
ewarn "binary on another system with a different CPU architecture." |
285 |
ewarn "MPlayer will already detect your CPU settings by default at" |
286 |
ewarn "buildtime; this flag is used for runtime detection." |
287 |
ewarn "You won't need this turned on if you are only building" |
288 |
ewarn "mplayer for this system. Also, if your compile fails, try" |
289 |
ewarn "disabling this use flag." |
290 |
fi |
291 |
|
292 |
if use custom-cpuopts; then |
293 |
ewarn "" |
294 |
ewarn "You are using the custom-cpuopts flag which will" |
295 |
ewarn "specifically allow you to enable / disable certain" |
296 |
ewarn "CPU optimizations." |
297 |
ewarn "" |
298 |
ewarn "Most desktop users won't need this functionality, but it" |
299 |
ewarn "is included for corner cases like cross-compiling and" |
300 |
ewarn "certain profiles. If unsure, disable this flag and MPlayer" |
301 |
ewarn "will automatically detect and use your available CPU" |
302 |
ewarn "optimizations." |
303 |
ewarn "" |
304 |
ewarn "Using this flag means your build is unsupported, so" |
305 |
ewarn "please make sure your CPU optimization use flags (3dnow" |
306 |
ewarn "3dnowext mmx mmxext sse sse2 ssse3) are properly set." |
307 |
fi |
308 |
} |
309 |
|
310 |
src_unpack() { |
311 |
[[ ${PV} = *9999* ]] && subversion_src_unpack || unpack ${A} |
312 |
|
313 |
if ! use truetype; then |
314 |
unpack font-arial-iso-8859-1.tar.bz2 \ |
315 |
font-arial-iso-8859-2.tar.bz2 \ |
316 |
font-arial-cp1250.tar.bz2 |
317 |
fi |
318 |
|
319 |
use gmplayer && unpack "Blue-${BLUV}.tar.bz2" |
320 |
use svga && unpack "svgalib_helper-${SVGV}-mplayer.tar.gz" |
321 |
} |
322 |
|
323 |
src_prepare() { |
324 |
if [[ ${PV} = *9999* ]]; then |
325 |
# Set SVN version manually |
326 |
subversion_wc_info |
327 |
sed -i s/UNKNOWN/${ESVN_WC_REVISION}/ "${S}/version.sh" |
328 |
else |
329 |
# Set version # |
330 |
sed -i s/UNKNOWN/${MPLAYER_REVISION}/ "${S}/version.sh" |
331 |
fi |
332 |
|
333 |
if use svga; then |
334 |
echo |
335 |
einfo "Enabling vidix non-root mode." |
336 |
einfo "(You need a proper svgalib_helper.o module for your kernel" |
337 |
einfo "to actually use this)" |
338 |
echo |
339 |
|
340 |
mv "${WORKDIR}/svgalib_helper" "${S}/libdha" |
341 |
fi |
342 |
|
343 |
base_src_prepare |
344 |
} |
345 |
|
346 |
src_configure() { |
347 |
local myconf="" |
348 |
local uses i |
349 |
|
350 |
# set LINGUAS |
351 |
[[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}" |
352 |
|
353 |
# mplayer ebuild uses "use foo || --disable-foo" to forcibly disable |
354 |
# compilation in almost every situation. The reason for this is |
355 |
# because if --enable is used, it will force the build of that option, |
356 |
# regardless of whether the dependency is available or not. |
357 |
|
358 |
################### |
359 |
#Optional features# |
360 |
################### |
361 |
myconf+=" |
362 |
--disable-arts |
363 |
--disable-kai |
364 |
$(use_enable network) |
365 |
$(use_enable joystick) |
366 |
" |
367 |
uses="ass bl enca ftp rtc" # nemesi <- not working with in-tree ebuild |
368 |
myconf+=" --disable-nemesi" # nemesi automagic disable |
369 |
myconf+=" --disable-ass-internal" # always use system libass |
370 |
for i in ${uses}; do |
371 |
use ${i} || myconf+=" --disable-${i}" |
372 |
done |
373 |
use bidi || myconf+=" --disable-fribidi" |
374 |
use encode || myconf+=" --disable-mencoder" |
375 |
use ipv6 || myconf+=" --disable-inet6" |
376 |
use nut || myconf+=" --disable-libnut" |
377 |
use rar || myconf+=" --disable-unrarexec" |
378 |
use samba || myconf+=" --disable-smb" |
379 |
if ! use lirc; then |
380 |
myconf+=" |
381 |
--disable-lirc |
382 |
--disable-lircc |
383 |
--disable-apple-ir |
384 |
" |
385 |
fi |
386 |
|
387 |
# libcdio support: prefer libcdio over cdparanoia |
388 |
# don't check for cddb w/cdio |
389 |
if use cdio; then |
390 |
myconf+=" --disable-cdparanoia" |
391 |
else |
392 |
myconf+=" --disable-libcdio" |
393 |
use cdparanoia || myconf+=" --disable-cdparanoia" |
394 |
use cddb || myconf+=" --disable-cddb" |
395 |
fi |
396 |
|
397 |
################################ |
398 |
# DVD read, navigation support # |
399 |
################################ |
400 |
# |
401 |
# dvdread - accessing a DVD |
402 |
# dvdnav - navigation of menus |
403 |
# |
404 |
# internal dvdread and dvdnav use flags enable internal |
405 |
# versions of the libraries, which are snapshots of the fork. |
406 |
# |
407 |
# Only check for disabled a52 use flag inside the DVD check, |
408 |
# since many users were getting confused why there was no |
409 |
# audio stream. |
410 |
|
411 |
if use dvd; then |
412 |
use dvdnav || myconf+=" --disable-dvdnav" |
413 |
else |
414 |
myconf+=" |
415 |
--disable-dvdnav |
416 |
--disable-dvdread |
417 |
--disable-dvdread-internal |
418 |
--disable-libdvdcss-internal |
419 |
" |
420 |
use a52 || myconf+=" --disable-liba52-internal" |
421 |
fi |
422 |
|
423 |
############# |
424 |
# Subtitles # |
425 |
############# |
426 |
# |
427 |
# SRT/ASS/SSA (subtitles) requires freetype support |
428 |
# freetype support requires iconv |
429 |
# iconv optionally can use unicode |
430 |
|
431 |
if ! use ass; then |
432 |
if ! use truetype; then |
433 |
myconf+=" --disable-freetype" |
434 |
if ! use iconv; then |
435 |
myconf+=" |
436 |
--disable-iconv |
437 |
--charset=noconv |
438 |
" |
439 |
fi |
440 |
fi |
441 |
fi |
442 |
use iconv && use unicode && myconf+=" --charset=UTF-8" |
443 |
|
444 |
##################################### |
445 |
# DVB / Video4Linux / Radio support # |
446 |
##################################### |
447 |
myconf+=" --disable-tv-bsdbt848" |
448 |
# broken upstream, won't work with recent kernels |
449 |
myconf+=" --disable-ivtv" |
450 |
if { use dvb || use v4l || use v4l2 || use pvr || use radio; }; then |
451 |
use dvb || myconf+=" --disable-dvb" |
452 |
use pvr || myconf+=" --disable-pvr" |
453 |
use v4l || myconf+=" --disable-tv-v4l1" |
454 |
use v4l2 || myconf+=" --disable-tv-v4l2" |
455 |
if use radio && { use dvb || use v4l || use v4l2; }; then |
456 |
myconf+=" |
457 |
--enable-radio |
458 |
$(use_enable encode radio-capture) |
459 |
" |
460 |
else |
461 |
myconf+=" |
462 |
--disable-radio-v4l2 |
463 |
--disable-radio-bsdbt848 |
464 |
" |
465 |
fi |
466 |
else |
467 |
myconf+=" |
468 |
--disable-tv |
469 |
--disable-tv-v4l1 |
470 |
--disable-tv-v4l2 |
471 |
--disable-radio |
472 |
--disable-radio-v4l2 |
473 |
--disable-radio-bsdbt848 |
474 |
--disable-dvb |
475 |
--disable-v4l2 |
476 |
--disable-pvr" |
477 |
fi |
478 |
|
479 |
########## |
480 |
# Codecs # |
481 |
########## |
482 |
# Won't work with external liba52 |
483 |
myconf+=" --disable-liba52" |
484 |
# Use internal musepack codecs for SV7 and SV8 support |
485 |
myconf+=" --disable-musepack" |
486 |
|
487 |
myconf+=" --disable-faad-internal" # always use system media-libs/faad2 |
488 |
use dirac || myconf+=" --disable-libdirac-lavc" |
489 |
use dts || myconf+=" --disable-libdca" |
490 |
use dv || myconf+=" --disable-libdv" |
491 |
use lzo || myconf+=" --disable-liblzo" |
492 |
if ! use mp3; then |
493 |
myconf+=" |
494 |
--disable-mp3lame |
495 |
--disable-mp3lame-lavc |
496 |
--disable-mp3lib |
497 |
" |
498 |
fi |
499 |
use bs2b || myconf+=" --disable-libbs2b" |
500 |
use schroedinger || myconf+=" --disable-libschroedinger-lavc" |
501 |
# Disable opencore-amr with bindist |
502 |
# https://bugs.gentoo.org/show_bug.cgi?id=299405#c6 |
503 |
{ use amr && use !bindist ; } || myconf+=" --disable-libopencore_amrnb --disable-libopencore_amrwb" |
504 |
if ! use png && ! use gmplayer; then |
505 |
myconf+=" --disable-png" |
506 |
fi |
507 |
|
508 |
uses="faad gif jpeg live mad mng pnm speex tga theora xanim" |
509 |
for i in ${uses}; do |
510 |
use ${i} || myconf+=" --disable-${i}" |
511 |
done |
512 |
use jpeg2k || myconf+=" --disable-libopenjpeg" |
513 |
if use vorbis || use tremor; then |
514 |
use tremor || myconf+=" --disable-tremor-internal" |
515 |
use vorbis || myconf+=" --disable-libvorbis" |
516 |
else |
517 |
myconf+=" |
518 |
--disable-tremor-internal |
519 |
--disable-tremor |
520 |
--disable-libvorbis |
521 |
" |
522 |
fi |
523 |
# Encoding |
524 |
if use encode; then |
525 |
uses="faac x264 xvid toolame twolame" |
526 |
for i in ${uses}; do |
527 |
use ${i} || myconf+=" --disable-${i}" |
528 |
done |
529 |
use faac || myconf+=" --disable-faac-lavc" |
530 |
else |
531 |
myconf+=" |
532 |
--disable-faac-lavc |
533 |
--disable-faac |
534 |
--disable-x264 |
535 |
--disable-xvid |
536 |
--disable-x264-lavc |
537 |
--disable-xvid-lavc |
538 |
--disable-twolame |
539 |
--disable-toolame |
540 |
" |
541 |
uses="faac x264 xvid toolame twolame" |
542 |
for i in ${uses}; do |
543 |
use ${i} && elog "Useflag \"${i}\" require \"encode\" useflag enabled to work." |
544 |
done |
545 |
fi |
546 |
|
547 |
################# |
548 |
# Binary codecs # |
549 |
################# |
550 |
# bug 213836 |
551 |
if ! use x86 || ! use win32codecs; then |
552 |
use quicktime || myconf+=" --disable-qtx" |
553 |
fi |
554 |
|
555 |
###################### |
556 |
# RealPlayer support # |
557 |
###################### |
558 |
# Realplayer support shows up in four places: |
559 |
# - libavcodec (internal) |
560 |
# - win32codecs |
561 |
# - realcodecs (win32codecs libs) |
562 |
# - realcodecs (realplayer libs) |
563 |
|
564 |
# internal |
565 |
use real || myconf+=" --disable-real" |
566 |
|
567 |
# Real binary codec support only available on x86, amd64 |
568 |
if use real; then |
569 |
use x86 && myconf+=" --codecsdir=/opt/RealPlayer/codecs" |
570 |
use amd64 && myconf+=" --codecsdir=/usr/$(get_libdir)/codecs" |
571 |
elif ! use bindist; then |
572 |
myconf+=" $(use_enable win32codecs win32dll)" |
573 |
fi |
574 |
|
575 |
################ |
576 |
# Video Output # |
577 |
################ |
578 |
uses="directfb md5sum sdl" |
579 |
for i in ${uses}; do |
580 |
use ${i} || myconf+=" --disable-${i}" |
581 |
done |
582 |
use aalib || myconf+=" --disable-aa" |
583 |
use fbcon || myconf+=" --disable-fbdev" |
584 |
use fbcon && use video_cards_s3virge && myconf+=" --enable-s3fb" |
585 |
use libcaca || myconf+=" --disable-caca" |
586 |
use zoran || myconf+=" --disable-zr" |
587 |
|
588 |
if ! use kernel_linux && ! use video_cards_mga; then |
589 |
myconf+=" --disable-mga --disable-xmga" |
590 |
fi |
591 |
|
592 |
if use video_cards_tdfx; then |
593 |
myconf+=" |
594 |
$(use_enable video_cards_tdfx tdfxvid) |
595 |
$(use_enable fbcon tdfxfb) |
596 |
" |
597 |
else |
598 |
myconf+=" |
599 |
--disable-3dfx |
600 |
--disable-tdfxvid |
601 |
--disable-tdfxfb |
602 |
" |
603 |
fi |
604 |
|
605 |
################ |
606 |
# Audio Output # |
607 |
################ |
608 |
uses="alsa esd jack ladspa nas openal" |
609 |
for i in ${uses}; do |
610 |
use ${i} || myconf+=" --disable-${i}" |
611 |
done |
612 |
use pulseaudio || myconf+=" --disable-pulse" |
613 |
if ! use radio; then |
614 |
use oss || myconf+=" --disable-ossaudio" |
615 |
fi |
616 |
|
617 |
#################### |
618 |
# Advanced Options # |
619 |
#################### |
620 |
# Platform specific flags, hardcoded on amd64 (see below) |
621 |
if use cpudetection; then |
622 |
myconf+=" --enable-runtime-cpudetection" |
623 |
fi |
624 |
|
625 |
# Turning off CPU optimizations usually will break the build. |
626 |
# However, this use flag, if enabled, will allow users to completely |
627 |
# specify which ones to use. If disabled, mplayer will automatically |
628 |
# enable all CPU optimizations that the host build supports. |
629 |
if use custom-cpuopts; then |
630 |
uses="3dnow 3dnowext altivec mmx mmxext shm sse sse2 ssse3" |
631 |
for i in ${uses}; do |
632 |
myconf+=" $(use_enable ${i})" |
633 |
done |
634 |
fi |
635 |
|
636 |
use debug && myconf+=" --enable-debug=3" |
637 |
|
638 |
if use x86; then |
639 |
filter-flags -fPIC -fPIE |
640 |
append-ldflags -nopie |
641 |
fi |
642 |
|
643 |
is-flag -O? || append-flags -O2 |
644 |
if use x86 || use x86-fbsd; then |
645 |
use debug || append-flags -fomit-frame-pointer |
646 |
fi |
647 |
|
648 |
########################### |
649 |
# X enabled configuration # |
650 |
########################### |
651 |
if use X; then |
652 |
uses="dxr3 ggi xinerama" |
653 |
for i in ${uses}; do |
654 |
use ${i} || myconf+=" --disable-${i}" |
655 |
done |
656 |
use dga || myconf+=" --disable-dga1 --disable-dga2" |
657 |
use opengl || myconf+=" --disable-gl" |
658 |
use osdmenu && myconf+=" --enable-menu" |
659 |
use vdpau || myconf+=" --disable-vdpau" |
660 |
use video_cards_vesa || myconf+=" --disable-vesa" |
661 |
use vidix || myconf+=" --disable-vidix --disable-vidix-pcidb" |
662 |
use xscreensaver || myconf+=" --disable-xss" |
663 |
|
664 |
# GTK gmplayer gui |
665 |
# Unsupported by Gentoo, upstream has dropped development |
666 |
myconf+=" $(use_enable gmplayer gui)" |
667 |
|
668 |
if use xv; then |
669 |
if use xvmc; then |
670 |
myconf+=" --enable-xvmc --with-xvmclib=XvMCW" |
671 |
else |
672 |
myconf+=" --disable-xvmc" |
673 |
fi |
674 |
else |
675 |
myconf+=" |
676 |
--disable-xv |
677 |
--disable-xvmc |
678 |
" |
679 |
use xvmc && elog "Disabling xvmc because it requires \"xv\" useflag enabled." |
680 |
fi |
681 |
else |
682 |
myconf+=" |
683 |
--disable-dga1 |
684 |
--disable-dga2 |
685 |
--disable-dxr3 |
686 |
--disable-ggi |
687 |
--disable-gl |
688 |
--disable-vdpau |
689 |
--disable-vidix |
690 |
--disable-vidix-pcidb |
691 |
--disable-xinerama |
692 |
--disable-xss |
693 |
--disable-xv |
694 |
--disable-xvmc |
695 |
" |
696 |
uses="dga dxr3 ggi opengl osdmenu vdpau vidix xinerama xscreensaver xv" |
697 |
for i in ${uses}; do |
698 |
use ${i} && elog "Useflag \"${i}\" require \"X\" useflag enabled to work." |
699 |
done |
700 |
fi |
701 |
|
702 |
if [[ ${PV} == *9999* ]]; then |
703 |
################### |
704 |
# External FFmpeg # |
705 |
################### |
706 |
use external-ffmpeg && myconf+=" --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a --disable-libpostproc_a --disable-libswscale_a" |
707 |
fi |
708 |
|
709 |
myconf="--cc=$(tc-getCC) \ |
710 |
--host-cc=$(tc-getBUILD_CC) \ |
711 |
--prefix=/usr \ |
712 |
--confdir=/etc/mplayer \ |
713 |
--datadir=/usr/share/mplayer \ |
714 |
--libdir=/usr/$(get_libdir) \ |
715 |
${myconf}" |
716 |
|
717 |
CFLAGS="${CFLAGS}" ./configure ${myconf} || die "configure died" |
718 |
} |
719 |
|
720 |
src_compile() { |
721 |
base_src_compile |
722 |
emake || die "Failed to build MPlayer!" |
723 |
# Build only user-requested docs if they're available. |
724 |
if use doc ; then |
725 |
# select available languages from $LINGUAS |
726 |
LINGUAS=${LINGUAS/zh/zh_CN} |
727 |
local ALLOWED_LINGUAS="cs de en es fr hu it pl ru zh_CN" |
728 |
local BUILT_DOCS="" |
729 |
for i in ${LINGUAS} ; do |
730 |
hasq $i ${ALLOWED_LINGUAS} && BUILT_DOCS+=" $i" |
731 |
done |
732 |
if [[ -z $BUILT_DOCS ]] |
733 |
then |
734 |
emake -j1 -C DOCS/xml html-chunked || die "Failed to generate html docs" |
735 |
else |
736 |
for i in ${BUILT_DOCS} ; do |
737 |
emake -j1 -C DOCS/xml html-chunked-$i || die "Failed to generate html docs for $i" |
738 |
done |
739 |
fi |
740 |
fi |
741 |
} |
742 |
|
743 |
src_install() { |
744 |
local i |
745 |
|
746 |
emake prefix="${D}/usr" \ |
747 |
BINDIR="${D}/usr/bin" \ |
748 |
LIBDIR="${D}/usr/$(get_libdir)" \ |
749 |
CONFDIR="${D}/etc/mplayer" \ |
750 |
DATADIR="${D}/usr/share/mplayer" \ |
751 |
MANDIR="${D}/usr/share/man" \ |
752 |
INSTALLSTRIP="" \ |
753 |
install || die "emake install failed" |
754 |
|
755 |
dodoc AUTHORS Changelog Copyright README etc/codecs.conf || die |
756 |
|
757 |
docinto tech/ |
758 |
dodoc DOCS/tech/{*.txt,MAINTAINERS,mpsub.sub,playtree,TODO,wishlist} || die |
759 |
docinto TOOLS/ |
760 |
dodoc TOOLS/* || die |
761 |
if use real; then |
762 |
docinto tech/realcodecs/ |
763 |
dodoc DOCS/tech/realcodecs/* || die |
764 |
docinto TOOLS/realcodecs/ |
765 |
dodoc TOOLS/realcodecs/* || die |
766 |
fi |
767 |
docinto tech/mirrors/ |
768 |
dodoc DOCS/tech/mirrors/* || die |
769 |
|
770 |
if use doc; then |
771 |
docinto html/ |
772 |
dohtml -r "${S}"/DOCS/HTML/* || die |
773 |
fi |
774 |
|
775 |
# Install the default Skin and Gnome menu entry |
776 |
if use gmplayer; then |
777 |
dodir /usr/share/mplayer/skins |
778 |
cp -r "${WORKDIR}/Blue" \ |
779 |
"${D}/usr/share/mplayer/skins/default" || die "cp skins died" |
780 |
|
781 |
# Fix the symlink |
782 |
rm -rf "${D}/usr/bin/gmplayer" |
783 |
dosym mplayer /usr/bin/gmplayer |
784 |
fi |
785 |
|
786 |
if ! use ass && ! use truetype; then |
787 |
dodir /usr/share/mplayer/fonts |
788 |
# Do this generic, as the mplayer people like to change the structure |
789 |
# of their zips ... |
790 |
for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do |
791 |
cp -pPR "${i}" "${D}/usr/share/mplayer/fonts" |
792 |
done |
793 |
# Fix the font symlink ... |
794 |
rm -rf "${D}/usr/share/mplayer/font" |
795 |
dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font |
796 |
fi |
797 |
|
798 |
insinto /etc/mplayer |
799 |
newins "${S}/etc/example.conf" mplayer.conf || die |
800 |
doins "${S}/etc/input.conf" || die |
801 |
if use osdmenu; then |
802 |
doins "${S}/etc/menu.conf" || die |
803 |
fi |
804 |
|
805 |
if use ass || use truetype; then |
806 |
cat >> "${D}/etc/mplayer/mplayer.conf" << _EOF_ |
807 |
fontconfig=1 |
808 |
subfont-osd-scale=4 |
809 |
subfont-text-scale=3 |
810 |
_EOF_ |
811 |
fi |
812 |
|
813 |
# bug 256203 |
814 |
if use rar; then |
815 |
cat >> "${D}/etc/mplayer/mplayer.conf" << _EOF_ |
816 |
unrarexec=/usr/bin/unrar |
817 |
_EOF_ |
818 |
fi |
819 |
|
820 |
dosym ../../../etc/mplayer/mplayer.conf /usr/share/mplayer/mplayer.conf |
821 |
newbin "${S}/TOOLS/midentify.sh" midentify || die |
822 |
} |
823 |
|
824 |
pkg_preinst() { |
825 |
[[ -d ${ROOT}/usr/share/mplayer/Skin/default ]] && \ |
826 |
rm -rf "${ROOT}/usr/share/mplayer/Skin/default" |
827 |
} |
828 |
|
829 |
pkg_postrm() { |
830 |
# Cleanup stale symlinks |
831 |
[ -L "${ROOT}/usr/share/mplayer/font" -a \ |
832 |
! -e "${ROOT}/usr/share/mplayer/font" ] && \ |
833 |
rm -f "${ROOT}/usr/share/mplayer/font" |
834 |
|
835 |
[ -L "${ROOT}/usr/share/mplayer/subfont.ttf" -a \ |
836 |
! -e "${ROOT}/usr/share/mplayer/subfont.ttf" ] && \ |
837 |
rm -f "${ROOT}/usr/share/mplayer/subfont.ttf" |
838 |
} |