1 |
commit: 2c5623d06461349a05557f354bbc6bf5f4192269 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Dec 22 19:41:01 2015 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 12:47:26 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c5623d0 |
7 |
|
8 |
media-video/mpv: add compiler check when vaapi is enabled with egl |
9 |
|
10 |
VAAPI + EGL combo requires Thread Local Storage C++11 feature or |
11 |
GNU __thread extension. Add the corresponding check for sanity. |
12 |
|
13 |
See also https://github.com/mpv-player/mpv/issues/2631 |
14 |
|
15 |
Package-Manager: portage-2.2.24 |
16 |
|
17 |
media-video/mpv/mpv-9999.ebuild | 6 +++++- |
18 |
1 file changed, 5 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild |
21 |
index 38b675a..484a1ef 100644 |
22 |
--- a/media-video/mpv/mpv-9999.ebuild |
23 |
+++ b/media-video/mpv/mpv-9999.ebuild |
24 |
@@ -9,7 +9,7 @@ PYTHON_REQ_USE='threads(+)' |
25 |
|
26 |
WAF_PV='1.8.12' |
27 |
|
28 |
-inherit eutils fdo-mime gnome2-utils pax-utils python-any-r1 waf-utils |
29 |
+inherit eutils fdo-mime gnome2-utils pax-utils python-any-r1 toolchain-funcs waf-utils |
30 |
|
31 |
DESCRIPTION="Media player based on MPlayer and mplayer2" |
32 |
HOMEPAGE="https://mpv.io/" |
33 |
@@ -124,6 +124,10 @@ RDEPEND="${COMMON_DEPEND} |
34 |
" |
35 |
|
36 |
pkg_pretend() { |
37 |
+ if [[ ${MERGE_TYPE} != "binary" ]] && ! tc-has-tls && use vaapi && use egl; then |
38 |
+ die "Your compiler lacks C++11 TLS support. Use GCC>=4.8.0 or Clang>=3.3." |
39 |
+ fi |
40 |
+ |
41 |
if ! use libass; then |
42 |
ewarn "You have disabled the libass support." |
43 |
ewarn "OSD and subtitles won't be available." |