Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/mpv: mpv-9999.ebuild mpv-0.3.11-r1.ebuild mpv-0.7.2-r1.ebuild ChangeLog
Date: Sun, 01 Feb 2015 22:34:57
Message-Id: 20150201223452.162A210DA3@oystercatcher.gentoo.org
1 mgorny 15/02/01 22:34:52
2
3 Modified: mpv-9999.ebuild ChangeLog
4 Added: mpv-0.3.11-r1.ebuild mpv-0.7.2-r1.ebuild
5 Log:
6 Introduce USE=libav to control the preferred implementation. Fixes subslot & implementation switch rebuilds as well.
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.65 media-video/mpv/mpv-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-9999.ebuild?rev=1.65&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-9999.ebuild?rev=1.65&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-9999.ebuild?r1=1.64&r2=1.65
16
17 Index: mpv-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-9999.ebuild,v
20 retrieving revision 1.64
21 retrieving revision 1.65
22 diff -u -r1.64 -r1.65
23 --- mpv-9999.ebuild 5 Jan 2015 02:11:15 -0000 1.64
24 +++ mpv-9999.ebuild 1 Feb 2015 22:34:52 -0000 1.65
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2015 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-9999.ebuild,v 1.64 2015/01/05 02:11:15 dlan Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-9999.ebuild,v 1.65 2015/02/01 22:34:52 mgorny Exp $
30
31 EAPI=5
32
33 @@ -25,8 +25,8 @@
34 [[ ${PV} == *9999* ]] || \
35 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
36 IUSE="+alsa bluray bs2b cdio +cli -doc-pdf dvb +dvd dvdnav egl +enca encode
37 -+iconv jack -joystick jpeg ladspa lcms +libass libcaca libguess libmpv lirc lua
38 -luajit +mpg123 -openal +opengl oss pulseaudio pvr samba -sdl selinux
39 ++iconv jack -joystick jpeg ladspa lcms +libass libav libcaca libguess libmpv
40 +lirc lua luajit +mpg123 -openal +opengl oss pulseaudio pvr samba -sdl selinux
41 v4l vaapi vdpau vf-dlopen wayland +X xinerama +xscreensaver +xv"
42
43 REQUIRED_USE="
44 @@ -48,10 +48,8 @@
45 "
46
47 RDEPEND="
48 - || (
49 - >=media-video/libav-10:=[encode?,threads,vaapi?,vdpau?]
50 - >=media-video/ffmpeg-2.1.4:0=[encode?,threads,vaapi?,vdpau?]
51 - )
52 + libav? ( >=media-video/libav-10:0=[encode?,threads,vaapi?,vdpau?] )
53 + !libav? ( >=media-video/ffmpeg-2.1.4:0=[encode?,threads,vaapi?,vdpau?] )
54 sys-libs/zlib
55 X? (
56 x11-libs/libX11
57
58
59
60 1.113 media-video/mpv/ChangeLog
61
62 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?rev=1.113&view=markup
63 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?rev=1.113&content-type=text/plain
64 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?r1=1.112&r2=1.113
65
66 Index: ChangeLog
67 ===================================================================
68 RCS file: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v
69 retrieving revision 1.112
70 retrieving revision 1.113
71 diff -u -r1.112 -r1.113
72 --- ChangeLog 5 Jan 2015 02:11:15 -0000 1.112
73 +++ ChangeLog 1 Feb 2015 22:34:52 -0000 1.113
74 @@ -1,6 +1,14 @@
75 # ChangeLog for media-video/mpv
76 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
77 -# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v 1.112 2015/01/05 02:11:15 dlan Exp $
78 +# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v 1.113 2015/02/01 22:34:52 mgorny Exp $
79 +
80 +*mpv-0.3.11-r1 (01 Feb 2015)
81 +*mpv-0.7.2-r1 (01 Feb 2015)
82 +
83 + 01 Feb 2015; Michał Górny <mgorny@g.o> +mpv-0.3.11-r1.ebuild,
84 + +mpv-0.7.2-r1.ebuild, mpv-9999.ebuild:
85 + Introduce USE=libav to control the preferred implementation. Fixes subslot &
86 + implementation switch rebuilds as well.
87
88 05 Jan 2015; Yixun Lan <dlan@g.o> mpv-9999.ebuild:
89 remove USE=portaudio from live ebuild, bug 534018, thanks Perfect Gentleman,
90
91
92
93 1.1 media-video/mpv/mpv-0.3.11-r1.ebuild
94
95 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-0.3.11-r1.ebuild?rev=1.1&view=markup
96 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-0.3.11-r1.ebuild?rev=1.1&content-type=text/plain
97
98 Index: mpv-0.3.11-r1.ebuild
99 ===================================================================
100 # Copyright 1999-2015 Gentoo Foundation
101 # Distributed under the terms of the GNU General Public License v2
102 # $Header: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-0.3.11-r1.ebuild,v 1.1 2015/02/01 22:34:52 mgorny Exp $
103
104 EAPI=5
105
106 EGIT_REPO_URI="https://github.com/mpv-player/mpv.git"
107
108 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
109 PYTHON_REQ_USE='threads(+)'
110
111 inherit eutils python-any-r1 waf-utils pax-utils fdo-mime gnome2-utils
112 [[ ${PV} == *9999* ]] && inherit git-r3
113
114 WAF_V="1.7.15"
115
116 DESCRIPTION="Video player based on MPlayer/mplayer2"
117 HOMEPAGE="http://mpv.io/"
118 SRC_URI="https://waf.googlecode.com/files/waf-${WAF_V}"
119 [[ ${PV} == *9999* ]] || \
120 SRC_URI+=" https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
121
122 LICENSE="GPL-2"
123 SLOT="0"
124 [[ ${PV} == *9999* ]] || \
125 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
126 IUSE="+alsa bluray bs2b +cdio -doc-pdf dvb +dvd dvdnav +enca encode +iconv jack -joystick
127 jpeg ladspa lcms +libass libav libcaca libguess lirc lua luajit +mpg123 -openal +opengl
128 oss portaudio +postproc pulseaudio pvr +quvi -radio samba sdl selinux +shm v4l vaapi vcd vdpau
129 vf-dlopen wayland +X xinerama +xscreensaver +xv"
130
131 REQUIRED_USE="
132 dvdnav? ( dvd )
133 enca? ( iconv )
134 lcms? ( opengl )
135 libguess? ( iconv )
136 luajit? ( lua )
137 opengl? ( || ( wayland X ) )
138 pvr? ( v4l )
139 radio? ( v4l || ( alsa oss ) )
140 vaapi? ( X )
141 vdpau? ( X )
142 wayland? ( opengl )
143 xinerama? ( X )
144 xscreensaver? ( X )
145 xv? ( X )
146 "
147
148 RDEPEND+="
149 libav? ( >=media-video/libav-9.10:0=[encode?,threads,vaapi?,vdpau?] )
150 !libav? ( >=media-video/ffmpeg-1.2.4:0=[encode?,threads,vaapi?,vdpau?] )
151 sys-libs/ncurses
152 sys-libs/zlib
153 X? (
154 x11-libs/libX11
155 x11-libs/libXext
156 x11-libs/libXxf86vm
157 opengl? ( virtual/opengl )
158 lcms? ( media-libs/lcms:2 )
159 vaapi? ( >=x11-libs/libva-0.34.0[X(+)] )
160 vdpau? ( >=x11-libs/libvdpau-0.2 )
161 xinerama? ( x11-libs/libXinerama )
162 xscreensaver? ( x11-libs/libXScrnSaver )
163 xv? ( x11-libs/libXv )
164 )
165 alsa? ( media-libs/alsa-lib )
166 bluray? ( >=media-libs/libbluray-0.2.1 )
167 bs2b? ( media-libs/libbs2b )
168 cdio? (
169 dev-libs/libcdio
170 dev-libs/libcdio-paranoia
171 )
172 dvb? ( virtual/linuxtv-dvb-headers )
173 dvd? (
174 >=media-libs/libdvdread-4.1.3
175 dvdnav? ( >=media-libs/libdvdnav-4.2.0 )
176 )
177 enca? ( app-i18n/enca )
178 iconv? ( virtual/libiconv )
179 jack? ( media-sound/jack-audio-connection-kit )
180 jpeg? ( virtual/jpeg:0 )
181 ladspa? ( media-libs/ladspa-sdk )
182 libass? (
183 >=media-libs/libass-0.9.10:=[enca?,fontconfig]
184 virtual/ttf-fonts
185 )
186 libcaca? ( >=media-libs/libcaca-0.99_beta18 )
187 libguess? ( >=app-i18n/libguess-1.0 )
188 lirc? ( app-misc/lirc )
189 lua? (
190 !luajit? ( >=dev-lang/lua-5.1 )
191 luajit? ( dev-lang/luajit:2 )
192 )
193 mpg123? ( >=media-sound/mpg123-1.14.0 )
194 openal? ( >=media-libs/openal-1.13 )
195 portaudio? ( >=media-libs/portaudio-19_pre20111121 )
196 postproc? (
197 libav? ( media-libs/libpostproc:0= )
198 !libav? ( >=media-video/ffmpeg-1.2:0=[encode?,threads,vaapi?,vdpau?] )
199 )
200 pulseaudio? ( media-sound/pulseaudio )
201 quvi? (
202 >=media-libs/libquvi-0.4.1:=
203 libav? ( >=media-video/libav-9.10:0=[network] )
204 !libav? ( >=media-video/ffmpeg-1.2.4:0=[network] )
205 )
206 samba? ( net-fs/samba )
207 sdl? ( media-libs/libsdl2[threads] )
208 v4l? ( media-libs/libv4l )
209 wayland? (
210 >=dev-libs/wayland-1.3.0
211 media-libs/mesa[egl,wayland]
212 >=x11-libs/libxkbcommon-0.3.0
213 )
214 "
215 DEPEND="${RDEPEND}
216 ${PYTHON_DEPS}
217 virtual/pkgconfig
218 >=dev-lang/perl-5.8
219 dev-python/docutils
220 doc-pdf? (
221 dev-texlive/texlive-latex
222 dev-texlive/texlive-latexrecommended
223 dev-texlive/texlive-latexextra
224 dev-tex/xcolor
225 )
226 X? (
227 x11-proto/videoproto
228 x11-proto/xf86vidmodeproto
229 xinerama? ( x11-proto/xineramaproto )
230 xscreensaver? ( x11-proto/scrnsaverproto )
231 )
232 "
233 RDEPEND+="
234 selinux? ( sec-policy/selinux-mplayer )
235 "
236 DOCS=( Copyright README.md etc/example.conf etc/input.conf )
237
238 pkg_setup() {
239 if use !libass; then
240 ewarn
241 ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
242 fi
243
244 einfo "For additional format support you need to enable the support on your"
245 einfo "libavcodec/libavformat provider:"
246 einfo " media-video/libav or media-video/ffmpeg"
247
248 python-any-r1_pkg_setup
249 }
250
251 src_unpack() {
252 if [[ ${PV} == *9999* ]]; then
253 git-r3_src_unpack
254 else
255 default_src_unpack
256 fi
257
258 cp "${DISTDIR}"/waf-${WAF_V} "${S}"/waf || die
259 chmod 0755 "${S}"/waf || die
260 }
261
262 src_prepare() {
263 epatch "${FILESDIR}/${P}-libav-9.patch"
264 epatch_user
265 }
266
267 src_configure() {
268 # keep build reproducible
269 # do not add -g to CFLAGS
270 # SDL output is fallback for platforms where nothing better is available
271 # media-sound/rsound is in pro-audio overlay only
272 waf-utils_src_configure \
273 --disable-build-date \
274 --disable-debug-build \
275 --disable-sdl \
276 $(use_enable sdl sdl2) \
277 --disable-rsound \
278 $(use_enable encode encoding) \
279 $(use_enable joystick) \
280 $(use_enable bluray libbluray) \
281 $(use_enable vcd) \
282 $(use_enable quvi libquvi) \
283 $(use_enable samba libsmbclient) \
284 $(use_enable lirc) \
285 $(use_enable lua) \
286 $(usex luajit '--lua=luajit' '') \
287 $(use_enable doc-pdf pdf-build) \
288 $(use_enable vf-dlopen vf-dlopen-filters) \
289 $(use_enable cdio cdda) \
290 $(use_enable dvd dvdread) \
291 $(use_enable dvdnav) \
292 $(use_enable enca) \
293 $(use_enable iconv) \
294 $(use_enable libass) \
295 $(use_enable libguess) \
296 $(use_enable dvb) \
297 $(use_enable pvr) \
298 $(use_enable v4l libv4l2) \
299 $(use_enable v4l tv) \
300 $(use_enable v4l tv-v4l2) \
301 $(use_enable radio) \
302 $(use_enable radio radio-capture) \
303 $(use_enable radio radio-v4l2) \
304 $(use_enable mpg123) \
305 $(use_enable jpeg) \
306 $(use_enable libcaca caca) \
307 $(use_enable postproc libpostproc) \
308 $(use_enable alsa) \
309 $(use_enable jack) \
310 $(use_enable ladspa) \
311 $(use_enable portaudio) \
312 $(use_enable bs2b libbs2b) \
313 $(use_enable openal) \
314 $(use_enable oss oss-audio) \
315 $(use_enable pulseaudio pulse) \
316 $(use_enable shm) \
317 $(use_enable X x11) \
318 $(use_enable vaapi) \
319 $(use_enable vdpau) \
320 $(use_enable wayland) \
321 $(use_enable xinerama) \
322 $(use_enable xv) \
323 $(use_enable opengl gl) \
324 $(use_enable lcms lcms2) \
325 $(use_enable xscreensaver xss) \
326 --confdir="${EPREFIX}"/etc/${PN} \
327 --mandir="${EPREFIX}"/usr/share/man \
328 --docdir="${EPREFIX}"/usr/share/doc/${PF}
329 }
330
331 src_install() {
332 waf-utils_src_install
333
334 if use luajit; then
335 pax-mark -m "${ED}"usr/bin/mpv
336 fi
337 }
338
339 pkg_preinst() {
340 gnome2_icon_savelist
341 }
342
343 pkg_postinst() {
344 fdo-mime_desktop_database_update
345 gnome2_icon_cache_update
346 }
347
348 pkg_postrm() {
349 fdo-mime_desktop_database_update
350 gnome2_icon_cache_update
351 }
352
353
354
355 1.1 media-video/mpv/mpv-0.7.2-r1.ebuild
356
357 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-0.7.2-r1.ebuild?rev=1.1&view=markup
358 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-0.7.2-r1.ebuild?rev=1.1&content-type=text/plain
359
360 Index: mpv-0.7.2-r1.ebuild
361 ===================================================================
362 # Copyright 1999-2015 Gentoo Foundation
363 # Distributed under the terms of the GNU General Public License v2
364 # $Header: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-0.7.2-r1.ebuild,v 1.1 2015/02/01 22:34:52 mgorny Exp $
365
366 EAPI=5
367
368 EGIT_REPO_URI="https://github.com/mpv-player/mpv.git"
369
370 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
371 PYTHON_REQ_USE='threads(+)'
372
373 inherit eutils python-any-r1 waf-utils pax-utils fdo-mime gnome2-utils
374 [[ ${PV} == *9999* ]] && inherit git-r3
375
376 WAF_V="1.8.1"
377
378 DESCRIPTION="Video player based on MPlayer/mplayer2"
379 HOMEPAGE="http://mpv.io/"
380 SRC_URI="http://ftp.waf.io/pub/release/waf-${WAF_V}"
381 [[ ${PV} == *9999* ]] || \
382 SRC_URI+=" https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
383
384 LICENSE="GPL-2"
385 SLOT="0"
386 [[ ${PV} == *9999* ]] || \
387 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
388 IUSE="+alsa bluray bs2b cdio +cli -doc-pdf dvb +dvd dvdnav egl +enca encode
389 +iconv jack -joystick jpeg ladspa lcms +libass libav libcaca libguess libmpv
390 lirc lua luajit +mpg123 -openal +opengl oss -portaudio postproc pulseaudio pvr
391 samba -sdl selinux v4l vaapi vdpau vf-dlopen wayland +X xinerama +xscreensaver
392 +xv"
393
394 REQUIRED_USE="
395 || ( cli libmpv )
396 dvdnav? ( dvd )
397 egl? ( opengl X )
398 enca? ( iconv )
399 lcms? ( opengl )
400 libguess? ( iconv )
401 luajit? ( lua )
402 opengl? ( || ( wayland X ) )
403 pvr? ( v4l )
404 vaapi? ( X )
405 vdpau? ( X )
406 wayland? ( opengl )
407 xinerama? ( X )
408 xscreensaver? ( X )
409 xv? ( X )
410 "
411
412 RDEPEND="
413 libav? ( >=media-video/libav-10:0=[encode?,threads,vaapi?,vdpau?] )
414 !libav? ( >=media-video/ffmpeg-2.1.4:0=[encode?,threads,vaapi?,vdpau?] )
415 sys-libs/zlib
416 X? (
417 x11-libs/libX11
418 x11-libs/libXext
419 >=x11-libs/libXrandr-1.2.0
420 opengl? (
421 virtual/opengl
422 egl? ( media-libs/mesa[egl] )
423 )
424 lcms? ( >=media-libs/lcms-2.6:2 )
425 vaapi? ( >=x11-libs/libva-0.34.0[X(+),opengl?] )
426 vdpau? ( >=x11-libs/libvdpau-0.2 )
427 xinerama? ( x11-libs/libXinerama )
428 xscreensaver? ( x11-libs/libXScrnSaver )
429 xv? ( x11-libs/libXv )
430 )
431 alsa? ( >=media-libs/alsa-lib-1.0.18 )
432 bluray? ( >=media-libs/libbluray-0.3.0 )
433 bs2b? ( media-libs/libbs2b )
434 cdio? (
435 dev-libs/libcdio
436 dev-libs/libcdio-paranoia
437 )
438 dvb? ( virtual/linuxtv-dvb-headers )
439 dvd? (
440 >=media-libs/libdvdread-4.1.3
441 dvdnav? ( >=media-libs/libdvdnav-4.2.0 )
442 )
443 enca? ( app-i18n/enca )
444 iconv? ( virtual/libiconv )
445 jack? ( media-sound/jack-audio-connection-kit )
446 jpeg? ( virtual/jpeg:0 )
447 ladspa? ( media-libs/ladspa-sdk )
448 libass? (
449 >=media-libs/libass-0.9.10:=[enca?,fontconfig]
450 virtual/ttf-fonts
451 )
452 libcaca? ( >=media-libs/libcaca-0.99_beta18 )
453 libguess? ( >=app-i18n/libguess-1.0 )
454 lirc? ( app-misc/lirc )
455 lua? (
456 !luajit? ( >=dev-lang/lua-5.1 )
457 luajit? ( dev-lang/luajit:2 )
458 )
459 mpg123? ( >=media-sound/mpg123-1.14.0 )
460 openal? ( >=media-libs/openal-1.13 )
461 portaudio? ( >=media-libs/portaudio-19_pre20111121 )
462 postproc? (
463 libav? ( >=media-libs/libpostproc-10.20140517:0= )
464 !libav? ( >=media-video/ffmpeg-2.1.4:0= )
465 )
466 pulseaudio? ( media-sound/pulseaudio )
467 samba? ( net-fs/samba )
468 sdl? ( media-libs/libsdl2[threads] )
469 v4l? ( media-libs/libv4l )
470 wayland? (
471 >=dev-libs/wayland-1.6.0
472 media-libs/mesa[egl,wayland]
473 >=x11-libs/libxkbcommon-0.3.0
474 )
475 "
476 DEPEND="${RDEPEND}
477 ${PYTHON_DEPS}
478 virtual/pkgconfig
479 >=dev-lang/perl-5.8
480 dev-python/docutils
481 doc-pdf? ( dev-python/rst2pdf )
482 X? (
483 x11-proto/videoproto
484 xinerama? ( x11-proto/xineramaproto )
485 xscreensaver? ( x11-proto/scrnsaverproto )
486 )
487 "
488 RDEPEND+="
489 selinux? ( sec-policy/selinux-mplayer )
490 "
491 DOCS=( Copyright README.md etc/example.conf etc/input.conf )
492
493 pkg_setup() {
494 if use !libass; then
495 ewarn
496 ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
497 fi
498
499 einfo "For additional format support you need to enable the support on your"
500 einfo "libavcodec/libavformat provider:"
501 einfo " media-video/libav or media-video/ffmpeg"
502
503 python-any-r1_pkg_setup
504 }
505
506 src_unpack() {
507 if [[ ${PV} == *9999* ]]; then
508 git-r3_src_unpack
509 else
510 default_src_unpack
511 fi
512
513 cp "${DISTDIR}"/waf-${WAF_V} "${S}"/waf || die
514 chmod 0755 "${S}"/waf || die
515 }
516
517 src_prepare() {
518 epatch_user
519 }
520
521 src_configure() {
522 local mywafargs=(
523 --confdir="${EPREFIX}"/etc/${PN}
524 --docdir="${EPREFIX}"/usr/share/doc/${PF}
525 $(usex cli '' '--disable-cplayer')
526 $(use_enable libmpv libmpv-shared)
527 --disable-libmpv-static
528 --disable-build-date # keep build reproducible
529 --disable-optimize # do not add '-O2' to CFLAGS
530 --disable-debug-build # do not add '-g' to CFLAGS
531 $(use_enable doc-pdf pdf-build)
532 $(use_enable vf-dlopen vf-dlopen-filters)
533 $(use_enable cli zsh-comp)
534
535 # optional features
536 $(use_enable iconv)
537 $(use_enable libguess)
538 $(use_enable samba libsmbclient)
539 $(use_enable lua)
540 $(use_enable libass)
541 $(use_enable libass libass-osd)
542 $(use_enable encode encoding)
543 $(use_enable joystick)
544 $(use_enable lirc)
545 $(use_enable bluray libbluray)
546 $(use_enable dvd dvdread)
547 $(use_enable dvdnav)
548 $(use_enable cdio cdda)
549 $(use_enable enca)
550 $(use_enable mpg123)
551 $(use_enable ladspa)
552 $(use_enable bs2b libbs2b)
553 $(use_enable lcms lcms2)
554 --disable-vapoursynth # vapoursynth is not packaged
555 --disable-vapoursynth-lazy
556 --enable-libavfilter
557 --enable-libavdevice
558 $(use_enable postproc libpostproc)
559 $(usex luajit '--lua=luajit' '')
560
561 # audio outputs
562 $(use_enable sdl sdl2) # SDL output is fallback for platforms where nothing better is available
563 --disable-sdl1
564 $(use_enable oss oss-audio)
565 --disable-rsound # media-sound/rsound is in pro-audio overlay only
566 $(use_enable pulseaudio pulse)
567 $(use_enable portaudio)
568 $(use_enable jack)
569 $(use_enable openal)
570 $(use_enable alsa)
571
572 # video outputs
573 $(use_enable wayland)
574 $(use_enable X x11)
575 $(use_enable xscreensaver xss)
576 $(use_enable X xext)
577 $(use_enable xv)
578 $(use_enable xinerama)
579 $(use_enable X xrandr)
580 $(usex X "$(use_enable opengl gl-x11)" '--disable-gl-x11')
581 $(use_enable egl egl-x11)
582 $(usex wayland "$(use_enable opengl gl-wayland)" '--disable-gl-wayland')
583 $(use_enable opengl gl)
584 $(use_enable vdpau)
585 $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11')
586 $(use_enable vaapi)
587 $(use_enable vaapi vaapi-vpp)
588 $(usex vaapi "$(use_enable opengl vaapi-glx)" '--disable-vaapi-glx')
589 $(use_enable libcaca caca)
590 $(use_enable jpeg)
591
592 # hwaccels
593 $(use_enable vaapi vaapi-hwaccel)
594 $(use_enable vdpau vdpau-hwaccel)
595
596 # tv features
597 $(use_enable v4l tv)
598 $(use_enable v4l tv-v4l2)
599 $(use_enable v4l libv4l2)
600 $(use_enable pvr)
601 $(use_enable dvb)
602 $(use_enable dvb dvbin)
603 )
604 waf-utils_src_configure "${mywafargs[@]}"
605 }
606
607 src_install() {
608 waf-utils_src_install
609
610 if use cli && use luajit; then
611 pax-mark -m "${ED}"usr/bin/mpv
612 fi
613 }
614
615 pkg_preinst() {
616 gnome2_icon_savelist
617 }
618
619 pkg_postinst() {
620 fdo-mime_desktop_database_update
621 gnome2_icon_cache_update
622 }
623
624 pkg_postrm() {
625 fdo-mime_desktop_database_update
626 gnome2_icon_cache_update
627 }