1 |
commit: 95437cf5af40d4ba2f993eb871aa12850e1c319f |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jan 28 15:59:27 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 29 22:53:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95437cf5 |
7 |
|
8 |
media-video/mpv: add CPU_FLAGS_X86=sse4_1 support to 9999 |
9 |
|
10 |
Requires recent GCC. Previous commit ensures that GCC is recent enough. |
11 |
Useful only with vaapi. |
12 |
|
13 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
14 |
Closes: https://github.com/gentoo/gentoo/pull/3718 |
15 |
|
16 |
media-video/mpv/mpv-9999.ebuild | 4 ++++ |
17 |
1 file changed, 4 insertions(+) |
18 |
|
19 |
diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild |
20 |
index bbc72b9..21f1b6b 100644 |
21 |
--- a/media-video/mpv/mpv-9999.ebuild |
22 |
+++ b/media-video/mpv/mpv-9999.ebuild |
23 |
@@ -33,6 +33,7 @@ IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins cuda doc drm dvb |
24 |
luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl |
25 |
selinux test tools +uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama |
26 |
+xscreensaver +xv zsh-completion" |
27 |
+IUSE+=" cpu_flags_x86_sse4_1" |
28 |
|
29 |
REQUIRED_USE=" |
30 |
|| ( cli libmpv ) |
31 |
@@ -143,6 +144,9 @@ mpv_check_compiler() { |
32 |
if ( use opengl || use egl ) && ! tc-has-tls; then |
33 |
die "Your compiler lacks C++11 TLS support. Use GCC>=4.8 or Clang>=3.3." |
34 |
fi |
35 |
+ if use vaapi && use cpu_flags_x86_sse4_1 && ! tc-is-gcc; then |
36 |
+ die "${PN} requires GCC for SSE4.1 intrinsics." |
37 |
+ fi |
38 |
fi |
39 |
} |