diff options
author | Ilya Tumaykin <itumaykin@gmail.com> | 2017-01-28 18:59:27 +0300 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-01-29 23:53:16 +0100 |
commit | 95437cf5af40d4ba2f993eb871aa12850e1c319f (patch) | |
tree | cac5d5684f7f85696a15ed964fea2e896716b8dd /media-video/mpv | |
parent | media-video/mpv: adjust compiler checks in 9999 (diff) | |
download | gentoo-95437cf5af40d4ba2f993eb871aa12850e1c319f.tar.gz gentoo-95437cf5af40d4ba2f993eb871aa12850e1c319f.tar.bz2 gentoo-95437cf5af40d4ba2f993eb871aa12850e1c319f.zip |
media-video/mpv: add CPU_FLAGS_X86=sse4_1 support to 9999
Requires recent GCC. Previous commit ensures that GCC is recent enough.
Useful only with vaapi.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/3718
Diffstat (limited to 'media-video/mpv')
-rw-r--r-- | media-video/mpv/mpv-9999.ebuild | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild index bbc72b9d5470..21f1b6bab92b 100644 --- a/media-video/mpv/mpv-9999.ebuild +++ b/media-video/mpv/mpv-9999.ebuild @@ -33,6 +33,7 @@ IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins cuda doc drm dvb luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl selinux test tools +uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama +xscreensaver +xv zsh-completion" +IUSE+=" cpu_flags_x86_sse4_1" REQUIRED_USE=" || ( cli libmpv ) @@ -143,6 +144,9 @@ mpv_check_compiler() { if ( use opengl || use egl ) && ! tc-has-tls; then die "Your compiler lacks C++11 TLS support. Use GCC>=4.8 or Clang>=3.3." fi + if use vaapi && use cpu_flags_x86_sse4_1 && ! tc-is-gcc; then + die "${PN} requires GCC for SSE4.1 intrinsics." + fi fi } |