diff options
author | Ilya Tumaykin <itumaykin@gmail.com> | 2015-12-22 23:36:31 +0300 |
---|---|---|
committer | Ilya Tumaykin <itumaykin@gmail.com> | 2015-12-28 15:47:28 +0300 |
commit | aed15a11bcf61902ffa978423e37915dc1b843b8 (patch) | |
tree | cb802474bd1a1ba3e7f6d35de6426aae372dfe47 /media-video/mpv | |
parent | media-video/mpv: drop pvr USE as done upstream wrt bug 568018 (diff) | |
download | gentoo-aed15a11bcf61902ffa978423e37915dc1b843b8.tar.gz gentoo-aed15a11bcf61902ffa978423e37915dc1b843b8.tar.bz2 gentoo-aed15a11bcf61902ffa978423e37915dc1b843b8.zip |
media-video/mpv: add support for EGL video output via GBM
This allows to use EGL on top of a DRM device bypassing window
server/compositor.
Package-Manager: portage-2.2.24
Diffstat (limited to 'media-video/mpv')
-rw-r--r-- | media-video/mpv/metadata.xml | 1 | ||||
-rw-r--r-- | media-video/mpv/mpv-9999.ebuild | 18 |
2 files changed, 12 insertions, 7 deletions
diff --git a/media-video/mpv/metadata.xml b/media-video/mpv/metadata.xml index 949632ef96af..d4ea40d4d1d7 100644 --- a/media-video/mpv/metadata.xml +++ b/media-video/mpv/metadata.xml @@ -28,6 +28,7 @@ <flag name="drm">Enable Kernel Mode Setting / Direct Rendering Manager based video output</flag> <flag name="egl">Enable support for various EGL-based video outputs</flag> <flag name="enca">Enable subtitles charset discovery via <pkg>app-i18n/enca</pkg></flag> + <flag name="gbm">Enable Graphics Buffer Manager based EGL video output</flag> <flag name="jpeg">Enable support for saving screenshots in JPEG format</flag> <flag name="libguess">Enable subtitles charset discovery via <pkg>app-i18n/libguess</pkg></flag> <flag name="libmpv">Build mpv shared library</flag> diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild index 8b850751d954..760d76013f4c 100644 --- a/media-video/mpv/mpv-9999.ebuild +++ b/media-video/mpv/mpv-9999.ebuild @@ -29,15 +29,17 @@ DOCS+=( README.md etc/example.conf etc/input.conf ) LICENSE="GPL-2+ BSD ISC" SLOT="0" # Here 'opengl' stands for GLX, 'egl' stands for any EGL-based output -IUSE="+alsa archive bluray cdda +cli doc drm dvb +dvd egl +enca encode +iconv - jack jpeg lcms +libass libav libcaca libguess libmpv lua luajit openal - +opengl oss pulseaudio raspberry-pi rubberband samba sdl selinux test - uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama +xscreensaver xv" +IUSE="+alsa archive bluray cdda +cli doc drm dvb +dvd egl +enca encode gbm + +iconv jack jpeg lcms +libass libav libcaca libguess libmpv lua luajit + openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl selinux + test uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama +xscreensaver + xv" REQUIRED_USE=" || ( cli libmpv ) - egl? ( || ( X wayland ) ) + egl? ( || ( gbm X wayland ) ) enca? ( iconv ) + gbm? ( drm egl ) lcms? ( || ( opengl egl ) ) libguess? ( iconv ) luajit? ( lua ) @@ -66,7 +68,7 @@ COMMON_DEPEND=" >=media-libs/libdvdnav-4.2.0 >=media-libs/libdvdread-4.1.0 ) - egl? ( media-libs/mesa[egl,wayland(-)?] ) + egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) iconv? ( virtual/libiconv enca? ( app-i18n/enca ) @@ -218,6 +220,8 @@ src_configure() { # Video outputs --disable-cocoa + $(use_enable drm) + $(use_enable gbm) $(use_enable wayland) $(use_enable X x11) $(use_enable xscreensaver xss) @@ -227,6 +231,7 @@ src_configure() { $(use_enable X xrandr) $(use_enable opengl gl-x11) $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') + $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') $(use_enable wayland gl-wayland) $(use_enable vdpau) $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') @@ -235,7 +240,6 @@ src_configure() { $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') $(usex vaapi "$(use_enable opengl vaapi-glx)" '--disable-vaapi-glx') $(use_enable libcaca caca) - $(use_enable drm) $(use_enable jpeg) $(use_enable raspberry-pi rpi) |