1 |
commit: c418ab553f85fa03baddde046d86bbada82cf3c6 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Feb 6 20:20:19 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 7 19:22:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c418ab55 |
7 |
|
8 |
media-video/mpv: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
media-video/mpv/Manifest | 2 - |
13 |
.../files/0.18.0/mpv-0.18.0-fix-doc-build.patch | 23 -- |
14 |
.../0.18.0/mpv-0.18.0-fix-fbo-resize-memleak.patch | 27 -- |
15 |
.../mpv-0.18.0-fix-height-alignment-on-xv.patch | 66 ----- |
16 |
.../0.18.0/mpv-0.18.0-fix-initial-av-sync.patch | 42 --- |
17 |
media-video/mpv/metadata.xml | 4 +- |
18 |
media-video/mpv/mpv-0.18.0-r1.ebuild | 306 --------------------- |
19 |
7 files changed, 1 insertion(+), 469 deletions(-) |
20 |
|
21 |
diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest |
22 |
index 6dbf0309faa..f68d7e9520b 100644 |
23 |
--- a/media-video/mpv/Manifest |
24 |
+++ b/media-video/mpv/Manifest |
25 |
@@ -1,8 +1,6 @@ |
26 |
-DIST mpv-0.18.0.tar.gz 2758960 BLAKE2B 5ab201a9c8ed34d2a880cc8f81426ff130ae74867e6ed4d1475f47da8ae3d62be8df9fd3e1476f4f15d1721c05f1972cb1c6c9e0ade6b27d0732b1946f0ed4a6 SHA512 5a899ea680b4da6d668a6e77a254e623bafef16f376ee46639e40f151da5a000de84b382f2b07f3a1e87b60fc8e524132767fdf243e36474966af11a88277437 |
27 |
DIST mpv-0.25.0-patches-r2.tar.xz 11036 BLAKE2B 09fdd566c5fcca290829c536c9e41b655e254d64e63714281119d62e6963f07f8d384eccb3f8ea6ccb2a9b63a60e19bb7ff1fd4b8e4ccccdc9b1fd8e58a7c628 SHA512 fc8d2a23dff27131d2c18d3f91861ec6e6d5240e6531d1a04c06ebef8d5467250c4f131d9faee802842e1ea485dbf350b43a3eebcc13c230cd45ff875fc855e2 |
28 |
DIST mpv-0.25.0.tar.gz 2874584 BLAKE2B c64321b50fd635f82bbcbce5cdefee1d0da011558cebdacd3339aaa14162f659c955bea75341ed21096eea5b689e4c1ca4d2d97feff1f4026044ddd61bdd9944 SHA512 eefc574e2995ddf6bd15c9b62986a5ca277c30949b036d57a11bbfb796c11c1e6dd7c313abd91a909dd98ca0f2b0be29ec6b980d0287a5891b42b0ffba926cbf |
29 |
DIST mpv-0.26.0.tar.gz 2916212 BLAKE2B b6402868face65c1179351697eff02116765eecdd105eef621faa73dc77f376aa060476bc80b92eba4839c46836c13bce0e56c6dccf0fe1aa49b1cfa463ec43e SHA512 fd772b4765317eb1ea3b54f12b86e0ac6c4d5e9d16895eb5bebe2e074a01f6b790981b9b34a87d9b23e4291149d3a7154b09fba4a259cec1949a6aa88d6ddec7 |
30 |
DIST mpv-0.27.0.tar.gz 2956816 BLAKE2B 2af0fc7edbecb552fd7df93dcd9124fd4e30a2c29aa53d2139f2817356a6c4eb82eed74a8fdf0493ebb0315cb2806d76a8b2d8c24706975acf4d4704fd291dac SHA512 22738f907d84d362095773972f685e3b03ab4c8172a22ddede290fc221a83ab9135b96f8b18191dabe842b2963f68983929cf065097287fc1a054a7d5f1d0ae4 |
31 |
DIST mpv-0.28.0.tar.gz 2982165 BLAKE2B 50f095d499df9685dec958287c159fc88be3b5db1465264404ba7c74184569ba47c147cb6491342ba8762199290f408737d03403e454a180bd0ed8b7191d14cc SHA512 33e889f9ca2dd16ad055ccd9fc5549fcead3fd15dcbc52c6b5f3ef608cf87b3d9952e9236e3dec8e7f32240b68d0b0cff1499f511d39c8f3a0501334f5c57a70 |
32 |
-DIST waf-1.8.12 97567 BLAKE2B 99f68b37163b67d511fe6f917b12ec3764dff7c62c4d4408f56559b497dc69f9a1b17a915fe519451f30e7a8ad1113cfad423fa23e3392e055b3bc3c1e149ca8 SHA512 8e47112abb134f965f15a27a600b4453cad3075afb5dadc17f2f6dac33d80ec68b679ac0ebc5f8a0245cbd07ae9fc7b899e69afc1bd021cce74e7af2ab457939 |
33 |
DIST waf-1.9.8 100685 BLAKE2B b335115b7ba5af4f8f49fc4da7967fa20e0633bfc7de7ad28fdb58dfcf7ae9c7833d053d298280e26e94b18af70a66fc13d08adf1fc7f9ad9b81e70d95cc74fc SHA512 e7493767f65deeb38aa162adef22adf60ebbd038410e9cdf4fe6f0de8c43395dbbba14962aa2c3855e1277136085fc22ad12ebfb8ac4e76f16358296039b8ea2 |
34 |
|
35 |
diff --git a/media-video/mpv/files/0.18.0/mpv-0.18.0-fix-doc-build.patch b/media-video/mpv/files/0.18.0/mpv-0.18.0-fix-doc-build.patch |
36 |
deleted file mode 100644 |
37 |
index 26c8f72d4da..00000000000 |
38 |
--- a/media-video/mpv/files/0.18.0/mpv-0.18.0-fix-doc-build.patch |
39 |
+++ /dev/null |
40 |
@@ -1,23 +0,0 @@ |
41 |
-commit 4a4a9f330281ad11eb39a013bf7308063767bab8 |
42 |
-Author: Martin Herkt <lachs0r@×××××××.biz> |
43 |
-Date: Fri Jul 15 12:57:12 2016 +0200 |
44 |
- |
45 |
-man: fix PDF build error |
46 |
- |
47 |
-ReportLab really doesn’t like breaking inline literals, so insert an |
48 |
-explicit line break. |
49 |
- |
50 |
-Fixes #3338 |
51 |
- |
52 |
-diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst |
53 |
-index 9a251ae..74d17a6 100644 |
54 |
---- a/DOCS/man/options.rst |
55 |
-+++ b/DOCS/man/options.rst |
56 |
-@@ -588,6 +588,7 @@ Video |
57 |
- :videotoolbox: requires ``--vo=opengl`` (OS X 10.8 and up only) |
58 |
- :videotoolbox-copy: copies video back into system RAM (OS X 10.8 and up only) |
59 |
- :dxva2: requires ``--vo=opengl:backend=angle`` or |
60 |
-+ |
61 |
- ``--vo=opengl:backend=dxinterop`` (Windows only) |
62 |
- :dxva2-copy: copies video back to system RAM (Windows only) |
63 |
- :d3d11va: requires ``--vo=opengl:backend=angle`` (Windows only) |
64 |
|
65 |
diff --git a/media-video/mpv/files/0.18.0/mpv-0.18.0-fix-fbo-resize-memleak.patch b/media-video/mpv/files/0.18.0/mpv-0.18.0-fix-fbo-resize-memleak.patch |
66 |
deleted file mode 100644 |
67 |
index 9407f15283d..00000000000 |
68 |
--- a/media-video/mpv/files/0.18.0/mpv-0.18.0-fix-fbo-resize-memleak.patch |
69 |
+++ /dev/null |
70 |
@@ -1,27 +0,0 @@ |
71 |
-commit 3abf9c9204e2fcbc1910deb102efab4ab9d8c149 |
72 |
-Author: Niklas Haas <git@××××××××××.to> |
73 |
-Date: Wed Jun 8 17:32:40 2016 +0200 |
74 |
- |
75 |
-vo_opengl: don't constantly resize the output FBO |
76 |
- |
77 |
-Commit 883d3114 seems to have (accidentally?) dropped the FBOTEX_FUZZY |
78 |
-from the output_fbo resize, which means that current master will keep |
79 |
-resizing and resizing the FBO as you change the window size, introducing |
80 |
-severe memory leaking after a while. (Not sure why that would cause |
81 |
-memory leaks, but I blame nvidia) |
82 |
- |
83 |
-Either way, it's bad for performance too, so it's worth fixing. |
84 |
- |
85 |
-diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c |
86 |
-index bd1eb89..6c7646b 100644 |
87 |
---- a/video/out/opengl/video.c |
88 |
-+++ b/video/out/opengl/video.c |
89 |
-@@ -2791,7 +2791,7 @@ void gl_video_render_frame(struct gl_video *p, struct vo_frame *frame, int fbo) |
90 |
- { |
91 |
- fbotex_change(&p->output_fbo, p->gl, p->log, |
92 |
- p->vp_w, abs(p->vp_h), |
93 |
-- p->opts.fbo_format, 0); |
94 |
-+ p->opts.fbo_format, FBOTEX_FUZZY); |
95 |
- dest_fbo = p->output_fbo.fbo; |
96 |
- p->output_fbo_valid = true; |
97 |
- } |
98 |
|
99 |
diff --git a/media-video/mpv/files/0.18.0/mpv-0.18.0-fix-height-alignment-on-xv.patch b/media-video/mpv/files/0.18.0/mpv-0.18.0-fix-height-alignment-on-xv.patch |
100 |
deleted file mode 100644 |
101 |
index 5033157251f..00000000000 |
102 |
--- a/media-video/mpv/files/0.18.0/mpv-0.18.0-fix-height-alignment-on-xv.patch |
103 |
+++ /dev/null |
104 |
@@ -1,66 +0,0 @@ |
105 |
-commit 22c76e85db88a772e3360892cd3a673a89c6fc7a |
106 |
-Author: wm4 <wm4@nowhere> |
107 |
-Date: Sat Jun 25 12:44:42 2016 +0200 |
108 |
- |
109 |
-vo_xv: fix behavior with odd sizes |
110 |
- |
111 |
-The size check introduced in commit d941a57b did not consider that Xv |
112 |
-can round up the image size to the next chroma boundary. Doing that |
113 |
-makes sense, so it can't certainly be considered server misbehavior. |
114 |
- |
115 |
-Do 2 things against this: allow if the server returns a larger image (we |
116 |
-just crop it then), and also allocate a properly aligned image in the |
117 |
-first place. |
118 |
- |
119 |
-diff --git a/video/out/vo_xv.c b/video/out/vo_xv.c |
120 |
-index 1e7ae7c..a5a4728 100644 |
121 |
---- a/video/out/vo_xv.c |
122 |
-+++ b/video/out/vo_xv.c |
123 |
-@@ -533,6 +533,8 @@ static bool allocate_xvimage(struct vo *vo, int foo) |
124 |
- struct vo_x11_state *x11 = vo->x11; |
125 |
- // align it for faster OSD rendering (draw_bmp.c swscale usage) |
126 |
- int aligned_w = FFALIGN(ctx->image_width, 32); |
127 |
-+ // round up the height to next chroma boundary too |
128 |
-+ int aligned_h = FFALIGN(ctx->image_height, 2); |
129 |
- #if HAVE_SHM && HAVE_XEXT |
130 |
- if (x11->display_is_local && XShmQueryExtension(x11->display)) { |
131 |
- ctx->Shmem_Flag = 1; |
132 |
-@@ -546,7 +548,7 @@ static bool allocate_xvimage(struct vo *vo, int foo) |
133 |
- ctx->xvimage[foo] = |
134 |
- (XvImage *) XvShmCreateImage(x11->display, ctx->xv_port, |
135 |
- ctx->xv_format, NULL, |
136 |
-- aligned_w, ctx->image_height, |
137 |
-+ aligned_w, aligned_h, |
138 |
- &ctx->Shminfo[foo]); |
139 |
- if (!ctx->xvimage[foo]) |
140 |
- return false; |
141 |
-@@ -569,7 +571,7 @@ static bool allocate_xvimage(struct vo *vo, int foo) |
142 |
- ctx->xvimage[foo] = |
143 |
- (XvImage *) XvCreateImage(x11->display, ctx->xv_port, |
144 |
- ctx->xv_format, NULL, aligned_w, |
145 |
-- ctx->image_height); |
146 |
-+ aligned_h); |
147 |
- if (!ctx->xvimage[foo]) |
148 |
- return false; |
149 |
- ctx->xvimage[foo]->data = av_malloc(ctx->xvimage[foo]->data_size); |
150 |
-@@ -578,16 +580,16 @@ static bool allocate_xvimage(struct vo *vo, int foo) |
151 |
- XSync(x11->display, False); |
152 |
- } |
153 |
- |
154 |
-- if ((ctx->xvimage[foo]->width != aligned_w) || |
155 |
-- (ctx->xvimage[foo]->height != ctx->image_height)) { |
156 |
-- MP_ERR(vo, "Got XvImage with incorrect size: %ux%u (expected %ux%u)\n", |
157 |
-+ if ((ctx->xvimage[foo]->width < aligned_w) || |
158 |
-+ (ctx->xvimage[foo]->height < aligned_h)) { |
159 |
-+ MP_ERR(vo, "Got XvImage with too small size: %ux%u (expected %ux%u)\n", |
160 |
- ctx->xvimage[foo]->width, ctx->xvimage[foo]->height, |
161 |
- aligned_w, ctx->image_height); |
162 |
- return false; |
163 |
- } |
164 |
- |
165 |
- struct mp_image img = get_xv_buffer(vo, foo); |
166 |
-- img.w = aligned_w; |
167 |
-+ mp_image_set_size(&img, aligned_w, aligned_h); |
168 |
- mp_image_clear(&img, 0, 0, img.w, img.h); |
169 |
- return true; |
170 |
- } |
171 |
|
172 |
diff --git a/media-video/mpv/files/0.18.0/mpv-0.18.0-fix-initial-av-sync.patch b/media-video/mpv/files/0.18.0/mpv-0.18.0-fix-initial-av-sync.patch |
173 |
deleted file mode 100644 |
174 |
index c2cacc3bff7..00000000000 |
175 |
--- a/media-video/mpv/files/0.18.0/mpv-0.18.0-fix-initial-av-sync.patch |
176 |
+++ /dev/null |
177 |
@@ -1,42 +0,0 @@ |
178 |
-commit 614efea3e67a435f3330820c3dc8b402535641e8 |
179 |
-Author: wm4 <wm4@nowhere> |
180 |
-Date: Fri Jul 1 15:51:34 2016 +0200 |
181 |
- |
182 |
-ad_lavc: work around braindead ffmpeg behavior |
183 |
- |
184 |
-The libavcodec wmapro decoder will skip some bytes at the start of the |
185 |
-first packet and return each time. It will not return any audio data in |
186 |
-this state. |
187 |
- |
188 |
-Our own code as well as libavcodec's new API handling |
189 |
-(avcodec_send_packet() etc.) discard the PTS on the first return, which |
190 |
-means the PTS is never known for the first packet. This results in a |
191 |
-"Failed audio resync." message. |
192 |
- |
193 |
-Fixy it by remember the PTS in next_pts. This field is used only if the |
194 |
-decoder outputs no PTS, and is updated after each frame - and thus |
195 |
-should be safe to set. |
196 |
- |
197 |
-(Possibly this should be fixed in libavcodec new API handling by not |
198 |
-setting the PTS to NOPTS as long as no real data has been output. It |
199 |
-could even interpolate the PTS if the timebase is known.) |
200 |
- |
201 |
-Fixes the failure message seen in #3297. |
202 |
- |
203 |
-diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c |
204 |
-index f48993f..0316f6b 100644 |
205 |
---- a/audio/decode/ad_lavc.c |
206 |
-+++ b/audio/decode/ad_lavc.c |
207 |
-@@ -186,6 +186,12 @@ static int decode_packet(struct dec_audio *da, struct demux_packet *mpkt, |
208 |
- struct priv *priv = da->priv; |
209 |
- AVCodecContext *avctx = priv->avctx; |
210 |
- |
211 |
-+ // If the decoder discards the timestamp for some reason, we use the |
212 |
-+ // interpolated PTS. Initialize it so that it works for the initial |
213 |
-+ // packet as well. |
214 |
-+ if (mpkt && priv->next_pts == MP_NOPTS_VALUE) |
215 |
-+ priv->next_pts = mpkt->pts; |
216 |
-+ |
217 |
- int in_len = mpkt ? mpkt->len : 0; |
218 |
- |
219 |
- AVPacket pkt; |
220 |
|
221 |
diff --git a/media-video/mpv/metadata.xml b/media-video/mpv/metadata.xml |
222 |
index d0442905890..b69462424a7 100644 |
223 |
--- a/media-video/mpv/metadata.xml |
224 |
+++ b/media-video/mpv/metadata.xml |
225 |
@@ -21,15 +21,13 @@ |
226 |
<flag name="cuda">Enable hardware video decoding via Nvidia CUDA</flag> |
227 |
<flag name="drm">Enable Kernel Mode Setting / Direct Rendering Manager based video output</flag> |
228 |
<flag name="egl">Enable support for various EGL-based video outputs / backends</flag> |
229 |
- <flag name="enca">Enable subtitles charset discovery via <pkg>app-i18n/enca</pkg></flag> |
230 |
<flag name="gbm">Enable Graphics Buffer Manager based EGL video backend</flag> |
231 |
<flag name="jpeg">Enable support for saving screenshots in JPEG format</flag> |
232 |
<flag name="libass">Enable OSD (On Screen Display) and subtitles support via <pkg>media-libs/libass</pkg></flag> |
233 |
- <flag name="libguess">Enable subtitles charset discovery via <pkg>app-i18n/libguess</pkg></flag> |
234 |
<flag name="libmpv">Build mpv shared library</flag> |
235 |
<flag name="lua">Enable Lua scripting, OSC (On Screen Controller) GUI and <pkg>net-misc/youtube-dl</pkg> hook-script</flag> |
236 |
<flag name="luajit">Use <pkg>dev-lang/luajit</pkg> instead of <pkg>dev-lang/lua</pkg></flag> |
237 |
- <flag name="opengl" restrict=">=media-video/mpv-0.25.0">Enable the recommended 'opengl' video output</flag> |
238 |
+ <flag name="opengl">Enable the recommended 'opengl' video output</flag> |
239 |
<flag name="raspberry-pi">Enable support for the Raspberry Pi</flag> |
240 |
<flag name="rubberband">Enable high quality pitch correction via <pkg>media-libs/rubberband</pkg></flag> |
241 |
<flag name="sdl">Enable <pkg>media-libs/libsdl2</pkg> based video and audio outputs |
242 |
|
243 |
diff --git a/media-video/mpv/mpv-0.18.0-r1.ebuild b/media-video/mpv/mpv-0.18.0-r1.ebuild |
244 |
deleted file mode 100644 |
245 |
index b13860ffdf4..00000000000 |
246 |
--- a/media-video/mpv/mpv-0.18.0-r1.ebuild |
247 |
+++ /dev/null |
248 |
@@ -1,306 +0,0 @@ |
249 |
-# Copyright 1999-2017 Gentoo Foundation |
250 |
-# Distributed under the terms of the GNU General Public License v2 |
251 |
- |
252 |
-EAPI=6 |
253 |
- |
254 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
255 |
-PYTHON_REQ_USE='threads(+)' |
256 |
- |
257 |
-WAF_PV=1.8.12 |
258 |
- |
259 |
-inherit fdo-mime gnome2-utils pax-utils python-any-r1 toolchain-funcs waf-utils |
260 |
- |
261 |
-DESCRIPTION="Media player based on MPlayer and mplayer2" |
262 |
-HOMEPAGE="https://mpv.io/" |
263 |
- |
264 |
-if [[ ${PV} != *9999* ]]; then |
265 |
- SRC_URI="https://github.com/mpv-player/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
266 |
- KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 x86 ~amd64-linux" |
267 |
- DOCS=( RELEASE_NOTES ) |
268 |
-else |
269 |
- EGIT_REPO_URI="https://github.com/mpv-player/${PN}.git" |
270 |
- inherit git-r3 |
271 |
-fi |
272 |
-SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
273 |
-DOCS+=( README.md ) |
274 |
- |
275 |
-# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
276 |
-LICENSE="GPL-2+ BSD ISC" |
277 |
-SLOT="0" |
278 |
-IUSE="+alsa aqua archive bluray cdda +cli coreaudio doc drm dvb dvd +egl +enca |
279 |
- encode gbm +iconv jack jpeg lcms +libass libav libcaca libguess libmpv lua |
280 |
- luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl |
281 |
- selinux test uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama |
282 |
- +xscreensaver +xv zsh-completion" |
283 |
- |
284 |
-REQUIRED_USE=" |
285 |
- || ( cli libmpv ) |
286 |
- aqua? ( opengl ) |
287 |
- egl? ( || ( gbm X wayland ) ) |
288 |
- enca? ( iconv ) |
289 |
- gbm? ( drm egl ) |
290 |
- lcms? ( || ( opengl egl ) ) |
291 |
- libguess? ( iconv ) |
292 |
- luajit? ( lua ) |
293 |
- test? ( || ( opengl egl ) ) |
294 |
- uchardet? ( iconv ) |
295 |
- v4l? ( || ( alsa oss ) ) |
296 |
- vaapi? ( || ( gbm X wayland ) ) |
297 |
- vdpau? ( X ) |
298 |
- wayland? ( egl ) |
299 |
- xinerama? ( X ) |
300 |
- xscreensaver? ( X ) |
301 |
- xv? ( X ) |
302 |
- zsh-completion? ( cli ) |
303 |
-" |
304 |
- |
305 |
-COMMON_DEPEND=" |
306 |
- !libav? ( >=media-video/ffmpeg-2.4:0=[encode?,threads,vaapi?,vdpau?] ) |
307 |
- libav? ( >=media-video/libav-11:0=[encode?,threads,vaapi?,vdpau?] ) |
308 |
- sys-libs/zlib |
309 |
- alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
310 |
- archive? ( >=app-arch/libarchive-3.0.0:= ) |
311 |
- bluray? ( >=media-libs/libbluray-0.3.0 ) |
312 |
- cdda? ( dev-libs/libcdio-paranoia ) |
313 |
- drm? ( x11-libs/libdrm ) |
314 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
315 |
- dvd? ( |
316 |
- >=media-libs/libdvdnav-4.2.0 |
317 |
- >=media-libs/libdvdread-4.1.0 |
318 |
- ) |
319 |
- egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
320 |
- iconv? ( |
321 |
- virtual/libiconv |
322 |
- enca? ( app-i18n/enca ) |
323 |
- libguess? ( >=app-i18n/libguess-1.0 ) |
324 |
- uchardet? ( app-i18n/uchardet ) |
325 |
- ) |
326 |
- jack? ( virtual/jack ) |
327 |
- jpeg? ( virtual/jpeg:0 ) |
328 |
- lcms? ( >=media-libs/lcms-2.6:2 ) |
329 |
- libass? ( |
330 |
- >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
331 |
- virtual/ttf-fonts |
332 |
- ) |
333 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
334 |
- lua? ( |
335 |
- !luajit? ( <dev-lang/lua-5.3:= ) |
336 |
- luajit? ( dev-lang/luajit:2 ) |
337 |
- ) |
338 |
- openal? ( >=media-libs/openal-1.13 ) |
339 |
- opengl? ( !aqua? ( virtual/opengl ) ) |
340 |
- pulseaudio? ( media-sound/pulseaudio ) |
341 |
- raspberry-pi? ( |
342 |
- >=media-libs/raspberrypi-userland-0_pre20160305-r1 |
343 |
- media-libs/mesa[egl,gles2] |
344 |
- ) |
345 |
- rubberband? ( >=media-libs/rubberband-1.8.0 ) |
346 |
- samba? ( net-fs/samba[smbclient(+)] ) |
347 |
- sdl? ( media-libs/libsdl2[sound,threads,video,X?,wayland?] ) |
348 |
- v4l? ( media-libs/libv4l ) |
349 |
- vaapi? ( >=x11-libs/libva-1.4.0[drm?,X?,wayland?] ) |
350 |
- wayland? ( |
351 |
- >=dev-libs/wayland-1.6.0 |
352 |
- >=x11-libs/libxkbcommon-0.3.0 |
353 |
- ) |
354 |
- X? ( |
355 |
- x11-libs/libX11 |
356 |
- x11-libs/libXext |
357 |
- >=x11-libs/libXrandr-1.2.0 |
358 |
- opengl? ( x11-libs/libXdamage ) |
359 |
- vdpau? ( >=x11-libs/libvdpau-0.2 ) |
360 |
- xinerama? ( x11-libs/libXinerama ) |
361 |
- xscreensaver? ( x11-libs/libXScrnSaver ) |
362 |
- xv? ( x11-libs/libXv ) |
363 |
- ) |
364 |
-" |
365 |
-DEPEND="${COMMON_DEPEND} |
366 |
- ${PYTHON_DEPS} |
367 |
- >=dev-lang/perl-5.8 |
368 |
- dev-python/docutils |
369 |
- virtual/pkgconfig |
370 |
- doc? ( dev-python/rst2pdf ) |
371 |
- test? ( >=dev-util/cmocka-1.0.0 ) |
372 |
- v4l? ( virtual/os-headers ) |
373 |
-" |
374 |
-RDEPEND="${COMMON_DEPEND} |
375 |
- selinux? ( sec-policy/selinux-mplayer ) |
376 |
-" |
377 |
- |
378 |
-PATCHES=( |
379 |
- "${FILESDIR}/${PV}/${P}-fix-height-alignment-on-xv.patch" |
380 |
- "${FILESDIR}/${PV}/${P}-fix-initial-av-sync.patch" |
381 |
- "${FILESDIR}/${PV}/${P}-fix-fbo-resize-memleak.patch" |
382 |
- "${FILESDIR}/${PV}/${P}-fix-doc-build.patch" |
383 |
-) |
384 |
- |
385 |
-pkg_pretend() { |
386 |
- if [[ ${MERGE_TYPE} != "binary" ]] && ! tc-has-tls && use vaapi && use egl; then |
387 |
- die "Your compiler lacks C++11 TLS support. Use GCC>=4.8.0 or Clang>=3.3." |
388 |
- fi |
389 |
-} |
390 |
- |
391 |
-src_prepare() { |
392 |
- cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
393 |
- chmod +x "${S}"/waf || die |
394 |
- default_src_prepare |
395 |
-} |
396 |
- |
397 |
-src_configure() { |
398 |
- local mywafargs=( |
399 |
- --confdir="${EPREFIX}/etc/${PN}" |
400 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" |
401 |
- |
402 |
- $(usex cli '' '--disable-cplayer') |
403 |
- $(use_enable libmpv libmpv-shared) |
404 |
- |
405 |
- # See deep down below for build-date. |
406 |
- --disable-libmpv-static |
407 |
- --disable-static-build |
408 |
- --disable-optimize # Don't add '-O2' to CFLAGS. |
409 |
- --disable-debug-build # Don't add '-g' to CFLAGS. |
410 |
- |
411 |
- $(use_enable doc html-build) |
412 |
- $(use_enable doc pdf-build) |
413 |
- $(use_enable vf-dlopen vf-dlopen-filters) |
414 |
- $(use_enable zsh-completion zsh-comp) |
415 |
- $(use_enable test) |
416 |
- |
417 |
- $(use_enable iconv) |
418 |
- $(use_enable samba libsmbclient) |
419 |
- $(use_enable lua) |
420 |
- $(usex luajit '--lua=luajit' '') |
421 |
- $(use_enable libass) |
422 |
- $(use_enable libass libass-osd) |
423 |
- $(use_enable encode encoding) |
424 |
- $(use_enable bluray libbluray) |
425 |
- $(use_enable dvd dvdread) |
426 |
- $(use_enable dvd dvdnav) |
427 |
- $(use_enable cdda) |
428 |
- $(use_enable enca) |
429 |
- $(use_enable libguess) |
430 |
- $(use_enable uchardet) |
431 |
- $(use_enable rubberband) |
432 |
- $(use_enable lcms lcms2) |
433 |
- --disable-vapoursynth # Only available in overlays. |
434 |
- --disable-vapoursynth-lazy |
435 |
- $(use_enable archive libarchive) |
436 |
- |
437 |
- --enable-libavdevice |
438 |
- |
439 |
- # Audio outputs: |
440 |
- $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
441 |
- --disable-sdl1 |
442 |
- $(use_enable oss oss-audio) |
443 |
- --disable-rsound # Only available in overlays. |
444 |
- $(use_enable pulseaudio pulse) |
445 |
- $(use_enable jack) |
446 |
- $(use_enable openal) |
447 |
- --disable-opensles |
448 |
- $(use_enable alsa) |
449 |
- $(use_enable coreaudio) |
450 |
- |
451 |
- # Video outputs: |
452 |
- $(use_enable aqua cocoa) |
453 |
- $(use_enable drm) |
454 |
- $(use_enable gbm) |
455 |
- $(use_enable wayland) |
456 |
- $(use_enable X x11) |
457 |
- $(use_enable xscreensaver xss) |
458 |
- $(use_enable X xext) |
459 |
- $(use_enable xv) |
460 |
- $(use_enable xinerama) |
461 |
- $(use_enable X xrandr) |
462 |
- $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
463 |
- $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
464 |
- $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
465 |
- $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
466 |
- $(use_enable wayland gl-wayland) |
467 |
- $(use_enable vdpau) |
468 |
- $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
469 |
- $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
470 |
- $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
471 |
- $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
472 |
- $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
473 |
- $(use_enable libcaca caca) |
474 |
- $(use_enable jpeg) |
475 |
- --disable-android |
476 |
- $(use_enable raspberry-pi rpi) |
477 |
- $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
478 |
- |
479 |
- # HWaccels: |
480 |
- # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
481 |
- $(use_enable vaapi vaapi-hwaccel) |
482 |
- # Automagic VDPAU HW acceleration. See Gentoo bug 558870. |
483 |
- |
484 |
- # TV features: |
485 |
- $(use_enable v4l tv) |
486 |
- $(use_enable v4l tv-v4l2) |
487 |
- $(use_enable v4l libv4l2) |
488 |
- $(use_enable v4l audio-input) |
489 |
- $(use_enable dvb dvbin) |
490 |
- |
491 |
- # Miscellaneous features: |
492 |
- --disable-apple-remote # Needs testing first. See Gentoo bug 577332. |
493 |
- ) |
494 |
- |
495 |
- if use vaapi && use X; then |
496 |
- mywafargs+=( |
497 |
- $(use_enable opengl vaapi-glx) |
498 |
- $(use_enable egl vaapi-x-egl) |
499 |
- ) |
500 |
- fi |
501 |
- |
502 |
- if ! use egl && ! use opengl && ! use raspberry-pi; then |
503 |
- mywafargs+=(--disable-gl) |
504 |
- fi |
505 |
- |
506 |
- # Create reproducible non-live builds. |
507 |
- [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
508 |
- |
509 |
- waf-utils_src_configure "${mywafargs[@]}" |
510 |
-} |
511 |
- |
512 |
-src_install() { |
513 |
- waf-utils_src_install |
514 |
- |
515 |
- if use cli && use luajit; then |
516 |
- pax-mark -m "${ED}"usr/bin/${PN} |
517 |
- fi |
518 |
-} |
519 |
- |
520 |
-pkg_preinst() { |
521 |
- gnome2_icon_savelist |
522 |
-} |
523 |
- |
524 |
-pkg_postinst() { |
525 |
- fdo-mime_desktop_database_update |
526 |
- gnome2_icon_cache_update |
527 |
- |
528 |
- # bash-completion < 2.3-r1 already installs (mostly broken) mpv completion. |
529 |
- if use cli && ! has_version '<app-shells/bash-completion-2.3-r1' && \ |
530 |
- ! has_version 'app-shells/mpv-bash-completion'; then |
531 |
- elog "If you want to have command-line completion via bash-completion," |
532 |
- elog "please install app-shells/mpv-bash-completion." |
533 |
- fi |
534 |
- |
535 |
- if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \ |
536 |
- has_version 'app-shells/mpv-bash-completion'; then |
537 |
- elog "If command-line completion doesn't work after mpv update," |
538 |
- elog "please rebuild app-shells/mpv-bash-completion." |
539 |
- fi |
540 |
-} |
541 |
- |
542 |
-pkg_postrm() { |
543 |
- fdo-mime_desktop_database_update |
544 |
- gnome2_icon_cache_update |
545 |
-} |
546 |
- |
547 |
-src_test() { |
548 |
- cd "${S}"/build/test || die |
549 |
- for test in *; do |
550 |
- if [[ -x ${test} ]]; then |
551 |
- ./"${test}" || die "Test suite failed" |
552 |
- fi |
553 |
- done |
554 |
-} |