From aed15a11bcf61902ffa978423e37915dc1b843b8 Mon Sep 17 00:00:00 2001 From: Ilya Tumaykin Date: Tue, 22 Dec 2015 23:36:31 +0300 Subject: 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 --- media-video/mpv/metadata.xml | 1 + media-video/mpv/mpv-9999.ebuild | 18 +++++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) (limited to 'media-video') 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 @@ Enable Kernel Mode Setting / Direct Rendering Manager based video output Enable support for various EGL-based video outputs Enable subtitles charset discovery via app-i18n/enca + Enable Graphics Buffer Manager based EGL video output Enable support for saving screenshots in JPEG format Enable subtitles charset discovery via app-i18n/libguess Build mpv shared library 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) -- cgit v1.2.3-65-gdbad