1 |
commit: c42036039471d2da166d3d2acd35b9e7da23f1f9 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 24 06:52:49 2020 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 24 06:52:49 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4203603 |
7 |
|
8 |
media-video/mpv: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
media-video/mpv/mpv-0.31.0.ebuild | 360 ------------------------------------- |
14 |
media-video/mpv/mpv-0.32.0.ebuild | 367 -------------------------------------- |
15 |
2 files changed, 727 deletions(-) |
16 |
|
17 |
diff --git a/media-video/mpv/mpv-0.31.0.ebuild b/media-video/mpv/mpv-0.31.0.ebuild |
18 |
deleted file mode 100644 |
19 |
index e95d246f1d1..00000000000 |
20 |
--- a/media-video/mpv/mpv-0.31.0.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,360 +0,0 @@ |
23 |
-# Copyright 1999-2020 Gentoo Authors |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=6 |
27 |
- |
28 |
-PYTHON_COMPAT=( python{3_6,3_7} ) |
29 |
-PYTHON_REQ_USE='threads(+)' |
30 |
- |
31 |
-WAF_PV=2.0.9 |
32 |
- |
33 |
-inherit eapi7-ver flag-o-matic gnome2-utils pax-utils python-r1 toolchain-funcs waf-utils xdg-utils |
34 |
- |
35 |
-DESCRIPTION="Media player based on MPlayer and mplayer2" |
36 |
-HOMEPAGE="https://mpv.io/ https://github.com/mpv-player/mpv" |
37 |
- |
38 |
-if [[ ${PV} != *9999* ]]; then |
39 |
- SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
- KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ppc ppc64 x86 ~amd64-linux" |
41 |
- DOCS=( RELEASE_NOTES ) |
42 |
-else |
43 |
- EGIT_REPO_URI="https://github.com/mpv-player/mpv.git" |
44 |
- inherit git-r3 |
45 |
- DOCS=(); SRC_URI="" |
46 |
-fi |
47 |
-SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
48 |
-DOCS+=( README.md DOCS/{client-api,interface}-changes.rst ) |
49 |
- |
50 |
-# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
51 |
-LICENSE="LGPL-2.1+ GPL-2+ BSD ISC samba? ( GPL-3+ )" |
52 |
-SLOT="0" |
53 |
-IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins cuda debug doc drm dvb |
54 |
- dvd +egl gamepad gbm +iconv jack javascript jpeg lcms +libass libcaca libmpv +lua |
55 |
- luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl |
56 |
- selinux test tools +uchardet vaapi vdpau vulkan wayland +X +xv zlib zimg" |
57 |
- |
58 |
-REQUIRED_USE=" |
59 |
- || ( cli libmpv ) |
60 |
- aqua? ( opengl ) |
61 |
- cuda? ( opengl ) |
62 |
- egl? ( || ( gbm X wayland ) ) |
63 |
- gamepad? ( sdl ) |
64 |
- gbm? ( drm egl opengl ) |
65 |
- lcms? ( opengl ) |
66 |
- luajit? ( lua ) |
67 |
- opengl? ( || ( aqua egl X raspberry-pi !cli ) ) |
68 |
- raspberry-pi? ( opengl ) |
69 |
- test? ( opengl ) |
70 |
- tools? ( cli ) |
71 |
- uchardet? ( iconv ) |
72 |
- vaapi? ( || ( gbm X wayland ) ) |
73 |
- vdpau? ( X ) |
74 |
- vulkan? ( || ( X wayland ) ) |
75 |
- wayland? ( egl ) |
76 |
- X? ( egl? ( opengl ) ) |
77 |
- xv? ( X ) |
78 |
- ${PYTHON_REQUIRED_USE} |
79 |
-" |
80 |
- |
81 |
-RESTRICT="!test? ( test )" |
82 |
- |
83 |
-COMMON_DEPEND=" |
84 |
- >=media-video/ffmpeg-4.0:0=[encode,threads,vaapi?,vdpau?] |
85 |
- alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
86 |
- archive? ( >=app-arch/libarchive-3.0.0:= ) |
87 |
- bluray? ( >=media-libs/libbluray-0.3.0:= ) |
88 |
- cdda? ( dev-libs/libcdio-paranoia ) |
89 |
- drm? ( x11-libs/libdrm ) |
90 |
- dvd? ( |
91 |
- >=media-libs/libdvdnav-4.2.0:= |
92 |
- >=media-libs/libdvdread-4.1.0:= |
93 |
- ) |
94 |
- egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
95 |
- gamepad? ( media-libs/libsdl2 ) |
96 |
- iconv? ( |
97 |
- virtual/libiconv |
98 |
- uchardet? ( app-i18n/uchardet ) |
99 |
- ) |
100 |
- jack? ( virtual/jack ) |
101 |
- javascript? ( >=dev-lang/mujs-1.0.0 ) |
102 |
- jpeg? ( virtual/jpeg:0 ) |
103 |
- lcms? ( >=media-libs/lcms-2.6:2 ) |
104 |
- libass? ( |
105 |
- >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
106 |
- virtual/ttf-fonts |
107 |
- ) |
108 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
109 |
- lua? ( |
110 |
- !luajit? ( <dev-lang/lua-5.3:= ) |
111 |
- luajit? ( dev-lang/luajit:2 ) |
112 |
- ) |
113 |
- openal? ( >=media-libs/openal-1.13 ) |
114 |
- pulseaudio? ( media-sound/pulseaudio ) |
115 |
- raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 ) |
116 |
- rubberband? ( >=media-libs/rubberband-1.8.0 ) |
117 |
- samba? ( net-fs/samba ) |
118 |
- sdl? ( media-libs/libsdl2[sound,threads,video] ) |
119 |
- vaapi? ( x11-libs/libva:=[drm?,X?,wayland?] ) |
120 |
- vdpau? ( x11-libs/libvdpau ) |
121 |
- vulkan? ( |
122 |
- media-libs/libplacebo:=[vulkan] |
123 |
- media-libs/shaderc |
124 |
- ) |
125 |
- wayland? ( |
126 |
- >=dev-libs/wayland-1.6.0 |
127 |
- >=dev-libs/wayland-protocols-1.14 |
128 |
- >=x11-libs/libxkbcommon-0.3.0 |
129 |
- ) |
130 |
- X? ( |
131 |
- x11-libs/libX11 |
132 |
- x11-libs/libXScrnSaver |
133 |
- x11-libs/libXext |
134 |
- x11-libs/libXinerama |
135 |
- x11-libs/libXrandr |
136 |
- opengl? ( |
137 |
- x11-libs/libXdamage |
138 |
- virtual/opengl |
139 |
- ) |
140 |
- xv? ( x11-libs/libXv ) |
141 |
- ) |
142 |
- zlib? ( sys-libs/zlib ) |
143 |
- zimg? ( >=media-libs/zimg-2.9.2 ) |
144 |
-" |
145 |
-DEPEND="${COMMON_DEPEND} |
146 |
- ${PYTHON_DEPS} |
147 |
- virtual/pkgconfig |
148 |
- dev-python/docutils |
149 |
- cuda? ( >=media-libs/nv-codec-headers-8.2.15.7 ) |
150 |
- doc? ( dev-python/rst2pdf ) |
151 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
152 |
- test? ( >=dev-util/cmocka-1.0.0 ) |
153 |
-" |
154 |
-RDEPEND="${COMMON_DEPEND} |
155 |
- cuda? ( x11-drivers/nvidia-drivers[X] ) |
156 |
- selinux? ( sec-policy/selinux-mplayer ) |
157 |
- tools? ( ${PYTHON_DEPS} ) |
158 |
-" |
159 |
- |
160 |
-src_prepare() { |
161 |
- cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
162 |
- chmod +x "${S}"/waf || die |
163 |
- default |
164 |
-} |
165 |
- |
166 |
-src_configure() { |
167 |
- python_setup |
168 |
- tc-export CC PKG_CONFIG AR |
169 |
- |
170 |
- if use raspberry-pi; then |
171 |
- append-cflags -I"${SYSROOT%/}${EPREFIX}/opt/vc/include" |
172 |
- append-ldflags -L"${SYSROOT%/}${EPREFIX}/opt/vc/lib" |
173 |
- fi |
174 |
- |
175 |
- local mywafargs=( |
176 |
- --confdir="${EPREFIX}/etc/${PN}" |
177 |
- |
178 |
- $(usex cli '' '--disable-cplayer') |
179 |
- $(use_enable libmpv libmpv-shared) |
180 |
- |
181 |
- --disable-libmpv-static |
182 |
- --disable-static-build |
183 |
- # See deep down below for build-date. |
184 |
- --disable-optimize # Don't add '-O2' to CFLAGS. |
185 |
- $(use_enable debug debug-build) |
186 |
- |
187 |
- $(use_enable doc html-build) |
188 |
- $(use_enable doc pdf-build) |
189 |
- --enable-manpage-build |
190 |
- $(use_enable cplugins) |
191 |
- $(use_enable test) |
192 |
- |
193 |
- $(use_enable iconv) |
194 |
- $(use_enable samba libsmbclient) |
195 |
- $(use_enable lua) |
196 |
- $(usex luajit '--lua=luajit' '') |
197 |
- $(use_enable javascript) |
198 |
- $(use_enable libass) |
199 |
- $(use_enable libass libass-osd) |
200 |
- $(use_enable zlib) |
201 |
- $(use_enable bluray libbluray) |
202 |
- $(use_enable dvd dvdnav) |
203 |
- $(use_enable cdda) |
204 |
- $(use_enable uchardet) |
205 |
- $(use_enable rubberband) |
206 |
- $(use_enable lcms lcms2) |
207 |
- --disable-vapoursynth # Only available in overlays. |
208 |
- $(use_enable archive libarchive) |
209 |
- |
210 |
- --enable-libavdevice |
211 |
- |
212 |
- # Audio outputs: |
213 |
- $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
214 |
- $(use_enable oss oss-audio) |
215 |
- --disable-rsound # Only available in overlays. |
216 |
- --disable-sndio # Only available in overlays. |
217 |
- $(use_enable pulseaudio pulse) |
218 |
- $(use_enable jack) |
219 |
- $(use_enable openal) |
220 |
- --disable-opensles |
221 |
- $(use_enable alsa) |
222 |
- $(use_enable coreaudio) |
223 |
- |
224 |
- # Video outputs: |
225 |
- $(use_enable aqua cocoa) |
226 |
- $(use_enable drm) |
227 |
- $(use_enable gbm) |
228 |
- $(use_enable wayland wayland-scanner) |
229 |
- $(use_enable wayland wayland-protocols) |
230 |
- $(use_enable wayland) |
231 |
- $(use_enable X x11) |
232 |
- $(use_enable xv) |
233 |
- $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
234 |
- $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
235 |
- $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
236 |
- $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
237 |
- $(usex opengl "$(use_enable wayland gl-wayland)" '--disable-gl-wayland') |
238 |
- $(use_enable vdpau) |
239 |
- $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
240 |
- $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
241 |
- $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
242 |
- $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
243 |
- $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
244 |
- $(use_enable libcaca caca) |
245 |
- $(use_enable jpeg) |
246 |
- $(use_enable vulkan shaderc) |
247 |
- $(use_enable raspberry-pi rpi) |
248 |
- $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
249 |
- $(usex opengl '' '--disable-gl') |
250 |
- $(use_enable vulkan) |
251 |
- $(use_enable gamepad sdl2-gamepad) |
252 |
- |
253 |
- # HWaccels: |
254 |
- # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
255 |
- $(use_enable cuda cuda-hwaccel) |
256 |
- |
257 |
- # TV features: |
258 |
- $(use_enable dvb dvbin) |
259 |
- |
260 |
- # Miscellaneous features: |
261 |
- $(use_enable zimg) |
262 |
- ) |
263 |
- |
264 |
- if use vaapi && use X; then |
265 |
- mywafargs+=( |
266 |
- $(use_enable egl vaapi-x-egl) |
267 |
- ) |
268 |
- fi |
269 |
- |
270 |
- # Not for us |
271 |
- mywafargs+=( |
272 |
- --disable-android |
273 |
- --disable-egl-android |
274 |
- --disable-uwp |
275 |
- --disable-audiounit |
276 |
- --disable-macos-media-player |
277 |
- --disable-wasapi |
278 |
- --disable-ios-gl |
279 |
- --disable-macos-touchbar |
280 |
- --disable-macos-cocoa-cb |
281 |
- --disable-tvos |
282 |
- --disable-egl-angle-win32 |
283 |
- ) |
284 |
- |
285 |
- # Create reproducible non-live builds. |
286 |
- [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
287 |
- |
288 |
- waf-utils_src_configure "${mywafargs[@]}" |
289 |
-} |
290 |
- |
291 |
-src_install() { |
292 |
- waf-utils_src_install |
293 |
- |
294 |
- if use lua; then |
295 |
- insinto /usr/share/${PN} |
296 |
- doins -r TOOLS/lua |
297 |
- fi |
298 |
- |
299 |
- if use cli && use luajit; then |
300 |
- pax-mark -m "${ED}"usr/bin/${PN} |
301 |
- fi |
302 |
- |
303 |
- if use tools; then |
304 |
- dobin TOOLS/{mpv_identify.sh,umpv} |
305 |
- newbin TOOLS/idet.sh mpv_idet.sh |
306 |
- python_replicate_script "${ED}"usr/bin/umpv |
307 |
- fi |
308 |
-} |
309 |
- |
310 |
-pkg_postinst() { |
311 |
- local rv softvol_0_18_1=0 osc_0_21_0=0 txtsubs_0_24_0=0 opengl_0_25_0=0 |
312 |
- |
313 |
- for rv in ${REPLACING_VERSIONS}; do |
314 |
- ver_test ${rv} -lt 0.18.1 && softvol_0_18_1=1 |
315 |
- ver_test ${rv} -lt 0.21.0 && osc_0_21_0=1 |
316 |
- ver_test ${rv} -lt 0.24.0 && txtsubs_0_24_0=1 |
317 |
- ver_test ${rv} -lt 0.25.0 && ! use opengl && opengl_0_25_0=1 |
318 |
- done |
319 |
- |
320 |
- if [[ ${softvol_0_18_1} -eq 1 ]]; then |
321 |
- elog "Since version 0.18.1 the software volume control is always enabled." |
322 |
- elog "This means that volume controls don't change the system volume," |
323 |
- elog "e.g. per-application volume with PulseAudio." |
324 |
- elog "If you want to restore the previous behaviour, please refer to" |
325 |
- elog |
326 |
- elog "https://wiki.gentoo.org/wiki/Mpv#Volume_in_0.18.1" |
327 |
- elog |
328 |
- fi |
329 |
- |
330 |
- if [[ ${osc_0_21_0} -eq 1 ]]; then |
331 |
- elog "In version 0.21.0 the default OSC layout was changed." |
332 |
- elog "If you want to restore the previous layout, please refer to" |
333 |
- elog |
334 |
- elog "https://wiki.gentoo.org/wiki/Mpv#OSC_in_0.21.0" |
335 |
- elog |
336 |
- fi |
337 |
- |
338 |
- if [[ ${txtsubs_0_24_0} -eq 1 ]]; then |
339 |
- elog "Since version 0.24.0 subtitles with .txt extension aren't autoloaded." |
340 |
- elog "If you want to restore the previous behaviour, please refer to" |
341 |
- elog |
342 |
- elog "https://wiki.gentoo.org/wiki/Mpv#Subtitles_with_.txt_extension_in_0.24.0" |
343 |
- elog |
344 |
- fi |
345 |
- |
346 |
- if [[ ${opengl_0_25_0} -eq 1 ]]; then |
347 |
- elog "Since version 0.25.0 the 'opengl' USE flag is mapped to" |
348 |
- elog "the 'opengl' video output and no longer explicitly requires" |
349 |
- elog "X11 or Mac OS Aqua. Consider enabling the 'opengl' USE flag." |
350 |
- fi |
351 |
- |
352 |
- if use cli && ! has_version 'app-shells/mpv-bash-completion'; then |
353 |
- elog "If you want to have command-line completion via bash-completion," |
354 |
- elog "please install app-shells/mpv-bash-completion." |
355 |
- fi |
356 |
- |
357 |
- if use cli && [[ -n ${REPLACING_VERSIONS} ]] && |
358 |
- has_version 'app-shells/mpv-bash-completion'; then |
359 |
- elog "If command-line completion doesn't work after mpv update," |
360 |
- elog "please rebuild app-shells/mpv-bash-completion." |
361 |
- fi |
362 |
- |
363 |
- elog "If you want URL support, please install net-misc/youtube-dl." |
364 |
- |
365 |
- gnome2_icon_cache_update |
366 |
- xdg_desktop_database_update |
367 |
-} |
368 |
- |
369 |
-pkg_postrm() { |
370 |
- gnome2_icon_cache_update |
371 |
- xdg_desktop_database_update |
372 |
-} |
373 |
- |
374 |
-src_test() { |
375 |
- cd "${S}"/build/test || die |
376 |
- local test |
377 |
- for test in *; do |
378 |
- if [[ -x ${test} ]]; then |
379 |
- ./"${test}" || die "Test suite failed" |
380 |
- fi |
381 |
- done |
382 |
-} |
383 |
|
384 |
diff --git a/media-video/mpv/mpv-0.32.0.ebuild b/media-video/mpv/mpv-0.32.0.ebuild |
385 |
deleted file mode 100644 |
386 |
index 404b09b47a9..00000000000 |
387 |
--- a/media-video/mpv/mpv-0.32.0.ebuild |
388 |
+++ /dev/null |
389 |
@@ -1,367 +0,0 @@ |
390 |
-# Copyright 1999-2020 Gentoo Authors |
391 |
-# Distributed under the terms of the GNU General Public License v2 |
392 |
- |
393 |
-EAPI=6 |
394 |
- |
395 |
-PYTHON_COMPAT=( python{3_6,3_7} ) |
396 |
-PYTHON_REQ_USE='threads(+)' |
397 |
- |
398 |
-WAF_PV=2.0.9 |
399 |
- |
400 |
-inherit bash-completion-r1 eapi7-ver flag-o-matic gnome2-utils pax-utils python-r1 toolchain-funcs waf-utils xdg-utils |
401 |
- |
402 |
-DESCRIPTION="Media player based on MPlayer and mplayer2" |
403 |
-HOMEPAGE="https://mpv.io/ https://github.com/mpv-player/mpv" |
404 |
- |
405 |
-if [[ ${PV} != *9999* ]]; then |
406 |
- SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
407 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux" |
408 |
- DOCS=( RELEASE_NOTES ) |
409 |
-else |
410 |
- EGIT_REPO_URI="https://github.com/mpv-player/mpv.git" |
411 |
- inherit git-r3 |
412 |
- DOCS=(); SRC_URI="" |
413 |
-fi |
414 |
-SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
415 |
-DOCS+=( README.md DOCS/{client-api,interface}-changes.rst ) |
416 |
- |
417 |
-# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
418 |
-LICENSE="LGPL-2.1+ GPL-2+ BSD ISC samba? ( GPL-3+ )" |
419 |
-SLOT="0" |
420 |
-IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins cuda debug doc drm dvb |
421 |
- dvd +egl gamepad gbm +iconv jack javascript jpeg lcms +libass libcaca libmpv +lua |
422 |
- luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl |
423 |
- selinux test tools +uchardet vaapi vdpau vulkan wayland +X +xv zlib zimg" |
424 |
- |
425 |
-REQUIRED_USE=" |
426 |
- || ( cli libmpv ) |
427 |
- aqua? ( opengl ) |
428 |
- cuda? ( opengl ) |
429 |
- egl? ( || ( gbm X wayland ) ) |
430 |
- gamepad? ( sdl ) |
431 |
- gbm? ( drm egl opengl ) |
432 |
- lcms? ( opengl ) |
433 |
- luajit? ( lua ) |
434 |
- opengl? ( || ( aqua egl X raspberry-pi !cli ) ) |
435 |
- raspberry-pi? ( opengl ) |
436 |
- test? ( opengl ) |
437 |
- tools? ( cli ) |
438 |
- uchardet? ( iconv ) |
439 |
- vaapi? ( || ( gbm X wayland ) ) |
440 |
- vdpau? ( X ) |
441 |
- vulkan? ( || ( X wayland ) ) |
442 |
- wayland? ( egl ) |
443 |
- X? ( egl? ( opengl ) ) |
444 |
- xv? ( X ) |
445 |
- ${PYTHON_REQUIRED_USE} |
446 |
-" |
447 |
- |
448 |
-RESTRICT="!test? ( test )" |
449 |
- |
450 |
-COMMON_DEPEND=" |
451 |
- !!app-shells/mpv-bash-completion |
452 |
- >=media-video/ffmpeg-4.0:0=[encode,threads,vaapi?,vdpau?] |
453 |
- alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
454 |
- archive? ( >=app-arch/libarchive-3.4.0:= ) |
455 |
- bluray? ( >=media-libs/libbluray-0.3.0:= ) |
456 |
- cdda? ( dev-libs/libcdio-paranoia ) |
457 |
- drm? ( x11-libs/libdrm ) |
458 |
- dvd? ( |
459 |
- >=media-libs/libdvdnav-4.2.0:= |
460 |
- >=media-libs/libdvdread-4.1.0:= |
461 |
- ) |
462 |
- egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
463 |
- gamepad? ( media-libs/libsdl2 ) |
464 |
- iconv? ( |
465 |
- virtual/libiconv |
466 |
- uchardet? ( app-i18n/uchardet ) |
467 |
- ) |
468 |
- jack? ( virtual/jack ) |
469 |
- javascript? ( >=dev-lang/mujs-1.0.0 ) |
470 |
- jpeg? ( virtual/jpeg:0 ) |
471 |
- lcms? ( >=media-libs/lcms-2.6:2 ) |
472 |
- libass? ( |
473 |
- >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
474 |
- virtual/ttf-fonts |
475 |
- ) |
476 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
477 |
- lua? ( |
478 |
- !luajit? ( <dev-lang/lua-5.3:= ) |
479 |
- luajit? ( dev-lang/luajit:2 ) |
480 |
- ) |
481 |
- openal? ( >=media-libs/openal-1.13 ) |
482 |
- pulseaudio? ( media-sound/pulseaudio ) |
483 |
- raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 ) |
484 |
- rubberband? ( >=media-libs/rubberband-1.8.0 ) |
485 |
- samba? ( net-fs/samba ) |
486 |
- sdl? ( media-libs/libsdl2[sound,threads,video] ) |
487 |
- vaapi? ( x11-libs/libva:=[drm?,X?,wayland?] ) |
488 |
- vdpau? ( x11-libs/libvdpau ) |
489 |
- vulkan? ( |
490 |
- media-libs/libplacebo:=[vulkan] |
491 |
- media-libs/shaderc |
492 |
- ) |
493 |
- wayland? ( |
494 |
- >=dev-libs/wayland-1.6.0 |
495 |
- >=dev-libs/wayland-protocols-1.14 |
496 |
- >=x11-libs/libxkbcommon-0.3.0 |
497 |
- ) |
498 |
- X? ( |
499 |
- x11-libs/libX11 |
500 |
- x11-libs/libXScrnSaver |
501 |
- x11-libs/libXext |
502 |
- x11-libs/libXinerama |
503 |
- x11-libs/libXrandr |
504 |
- opengl? ( |
505 |
- x11-libs/libXdamage |
506 |
- virtual/opengl |
507 |
- ) |
508 |
- xv? ( x11-libs/libXv ) |
509 |
- ) |
510 |
- zlib? ( sys-libs/zlib ) |
511 |
- zimg? ( >=media-libs/zimg-2.9.2 ) |
512 |
-" |
513 |
-DEPEND="${COMMON_DEPEND} |
514 |
- ${PYTHON_DEPS} |
515 |
- virtual/pkgconfig |
516 |
- dev-python/docutils |
517 |
- cuda? ( >=media-libs/nv-codec-headers-8.2.15.7 ) |
518 |
- doc? ( dev-python/rst2pdf ) |
519 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
520 |
- test? ( >=dev-util/cmocka-1.0.0 ) |
521 |
-" |
522 |
-RDEPEND="${COMMON_DEPEND} |
523 |
- cuda? ( x11-drivers/nvidia-drivers[X] ) |
524 |
- selinux? ( sec-policy/selinux-mplayer ) |
525 |
- tools? ( ${PYTHON_DEPS} ) |
526 |
-" |
527 |
- |
528 |
-src_prepare() { |
529 |
- cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
530 |
- chmod +x "${S}"/waf || die |
531 |
- default |
532 |
-} |
533 |
- |
534 |
-src_configure() { |
535 |
- python_setup |
536 |
- tc-export CC PKG_CONFIG AR |
537 |
- |
538 |
- if use raspberry-pi; then |
539 |
- append-cflags -I"${SYSROOT%/}${EPREFIX}/opt/vc/include" |
540 |
- append-ldflags -L"${SYSROOT%/}${EPREFIX}/opt/vc/lib" |
541 |
- fi |
542 |
- |
543 |
- local mywafargs=( |
544 |
- --confdir="${EPREFIX}/etc/${PN}" |
545 |
- |
546 |
- $(usex cli '' '--disable-cplayer') |
547 |
- $(use_enable libmpv libmpv-shared) |
548 |
- |
549 |
- --disable-libmpv-static |
550 |
- --disable-static-build |
551 |
- # See deep down below for build-date. |
552 |
- --disable-optimize # Don't add '-O2' to CFLAGS. |
553 |
- $(use_enable debug debug-build) |
554 |
- |
555 |
- $(use_enable doc html-build) |
556 |
- $(use_enable doc pdf-build) |
557 |
- --enable-manpage-build |
558 |
- $(use_enable cplugins) |
559 |
- $(use_enable test) |
560 |
- |
561 |
- $(use_enable iconv) |
562 |
- $(use_enable samba libsmbclient) |
563 |
- $(use_enable lua) |
564 |
- $(usex luajit '--lua=luajit' '') |
565 |
- $(use_enable javascript) |
566 |
- $(use_enable libass) |
567 |
- $(use_enable libass libass-osd) |
568 |
- $(use_enable zlib) |
569 |
- $(use_enable bluray libbluray) |
570 |
- $(use_enable dvd dvdnav) |
571 |
- $(use_enable cdda) |
572 |
- $(use_enable uchardet) |
573 |
- $(use_enable rubberband) |
574 |
- $(use_enable lcms lcms2) |
575 |
- --disable-vapoursynth # Only available in overlays. |
576 |
- $(use_enable archive libarchive) |
577 |
- |
578 |
- --enable-libavdevice |
579 |
- |
580 |
- # Audio outputs: |
581 |
- $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
582 |
- $(use_enable oss oss-audio) |
583 |
- --disable-rsound # Only available in overlays. |
584 |
- --disable-sndio # Only available in overlays. |
585 |
- $(use_enable pulseaudio pulse) |
586 |
- $(use_enable jack) |
587 |
- $(use_enable openal) |
588 |
- --disable-opensles |
589 |
- $(use_enable alsa) |
590 |
- $(use_enable coreaudio) |
591 |
- |
592 |
- # Video outputs: |
593 |
- $(use_enable aqua cocoa) |
594 |
- $(use_enable drm) |
595 |
- $(use_enable gbm) |
596 |
- $(use_enable wayland wayland-scanner) |
597 |
- $(use_enable wayland wayland-protocols) |
598 |
- $(use_enable wayland) |
599 |
- $(use_enable X x11) |
600 |
- $(use_enable xv) |
601 |
- $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
602 |
- $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
603 |
- $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
604 |
- $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
605 |
- $(usex opengl "$(use_enable wayland gl-wayland)" '--disable-gl-wayland') |
606 |
- $(use_enable vdpau) |
607 |
- $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
608 |
- $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
609 |
- $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
610 |
- $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
611 |
- $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
612 |
- $(use_enable libcaca caca) |
613 |
- $(use_enable jpeg) |
614 |
- $(use_enable vulkan shaderc) |
615 |
- $(use_enable raspberry-pi rpi) |
616 |
- $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
617 |
- $(usex opengl '' '--disable-gl') |
618 |
- $(use_enable vulkan) |
619 |
- $(use_enable gamepad sdl2-gamepad) |
620 |
- |
621 |
- # HWaccels: |
622 |
- # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
623 |
- $(use_enable cuda cuda-hwaccel) |
624 |
- $(use_enable cuda cuda-interop) |
625 |
- |
626 |
- # TV features: |
627 |
- $(use_enable dvb dvbin) |
628 |
- |
629 |
- # Miscellaneous features: |
630 |
- $(use_enable zimg) |
631 |
- ) |
632 |
- |
633 |
- if use vaapi && use X; then |
634 |
- mywafargs+=( |
635 |
- $(use_enable egl vaapi-x-egl) |
636 |
- ) |
637 |
- fi |
638 |
- |
639 |
- # Not for us |
640 |
- mywafargs+=( |
641 |
- --disable-android |
642 |
- --disable-egl-android |
643 |
- --disable-uwp |
644 |
- --disable-audiounit |
645 |
- --disable-macos-media-player |
646 |
- --disable-wasapi |
647 |
- --disable-ios-gl |
648 |
- --disable-macos-touchbar |
649 |
- --disable-macos-cocoa-cb |
650 |
- --disable-tvos |
651 |
- --disable-egl-angle-win32 |
652 |
- ) |
653 |
- |
654 |
- mywafargs+=( |
655 |
- --bashdir="$(get_bashcompdir)" |
656 |
- --zshdir="${EPREFIX}"/usr/share/zsh/site-functions |
657 |
-) |
658 |
- |
659 |
- # Create reproducible non-live builds. |
660 |
- [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
661 |
- |
662 |
- waf-utils_src_configure "${mywafargs[@]}" |
663 |
-} |
664 |
- |
665 |
-src_install() { |
666 |
- waf-utils_src_install |
667 |
- |
668 |
- if use lua; then |
669 |
- insinto /usr/share/${PN} |
670 |
- doins -r TOOLS/lua |
671 |
- fi |
672 |
- |
673 |
- if use cli && use luajit; then |
674 |
- pax-mark -m "${ED}"usr/bin/${PN} |
675 |
- fi |
676 |
- |
677 |
- if use tools; then |
678 |
- dobin TOOLS/{mpv_identify.sh,umpv} |
679 |
- newbin TOOLS/idet.sh mpv_idet.sh |
680 |
- python_replicate_script "${ED}"usr/bin/umpv |
681 |
- fi |
682 |
-} |
683 |
- |
684 |
-pkg_postinst() { |
685 |
- local rv softvol_0_18_1=0 osc_0_21_0=0 txtsubs_0_24_0=0 opengl_0_25_0=0 |
686 |
- |
687 |
- for rv in ${REPLACING_VERSIONS}; do |
688 |
- ver_test ${rv} -lt 0.18.1 && softvol_0_18_1=1 |
689 |
- ver_test ${rv} -lt 0.21.0 && osc_0_21_0=1 |
690 |
- ver_test ${rv} -lt 0.24.0 && txtsubs_0_24_0=1 |
691 |
- ver_test ${rv} -lt 0.25.0 && ! use opengl && opengl_0_25_0=1 |
692 |
- done |
693 |
- |
694 |
- if [[ ${softvol_0_18_1} -eq 1 ]]; then |
695 |
- elog "Since version 0.18.1 the software volume control is always enabled." |
696 |
- elog "This means that volume controls don't change the system volume," |
697 |
- elog "e.g. per-application volume with PulseAudio." |
698 |
- elog "If you want to restore the previous behaviour, please refer to" |
699 |
- elog |
700 |
- elog "https://wiki.gentoo.org/wiki/Mpv#Volume_in_0.18.1" |
701 |
- elog |
702 |
- fi |
703 |
- |
704 |
- if [[ ${osc_0_21_0} -eq 1 ]]; then |
705 |
- elog "In version 0.21.0 the default OSC layout was changed." |
706 |
- elog "If you want to restore the previous layout, please refer to" |
707 |
- elog |
708 |
- elog "https://wiki.gentoo.org/wiki/Mpv#OSC_in_0.21.0" |
709 |
- elog |
710 |
- fi |
711 |
- |
712 |
- if [[ ${txtsubs_0_24_0} -eq 1 ]]; then |
713 |
- elog "Since version 0.24.0 subtitles with .txt extension aren't autoloaded." |
714 |
- elog "If you want to restore the previous behaviour, please refer to" |
715 |
- elog |
716 |
- elog "https://wiki.gentoo.org/wiki/Mpv#Subtitles_with_.txt_extension_in_0.24.0" |
717 |
- elog |
718 |
- fi |
719 |
- |
720 |
- if [[ ${opengl_0_25_0} -eq 1 ]]; then |
721 |
- elog "Since version 0.25.0 the 'opengl' USE flag is mapped to" |
722 |
- elog "the 'opengl' video output and no longer explicitly requires" |
723 |
- elog "X11 or Mac OS Aqua. Consider enabling the 'opengl' USE flag." |
724 |
- fi |
725 |
- |
726 |
- if use cli && ! has_version 'app-shells/mpv-bash-completion'; then |
727 |
- elog "If you want to have command-line completion via bash-completion," |
728 |
- elog "please install app-shells/mpv-bash-completion." |
729 |
- fi |
730 |
- |
731 |
- if use cli && [[ -n ${REPLACING_VERSIONS} ]] && |
732 |
- has_version 'app-shells/mpv-bash-completion'; then |
733 |
- elog "If command-line completion doesn't work after mpv update," |
734 |
- elog "please rebuild app-shells/mpv-bash-completion." |
735 |
- fi |
736 |
- |
737 |
- elog "If you want URL support, please install net-misc/youtube-dl." |
738 |
- |
739 |
- gnome2_icon_cache_update |
740 |
- xdg_desktop_database_update |
741 |
-} |
742 |
- |
743 |
-pkg_postrm() { |
744 |
- gnome2_icon_cache_update |
745 |
- xdg_desktop_database_update |
746 |
-} |
747 |
- |
748 |
-src_test() { |
749 |
- cd "${S}"/build/test || die |
750 |
- local test |
751 |
- for test in *; do |
752 |
- if [[ -x ${test} ]]; then |
753 |
- ./"${test}" || die "Test suite failed" |
754 |
- fi |
755 |
- done |
756 |
-} |