From 7aeedc6bbd30477bcc1bf87500bb810f7b04b579 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Tue, 13 Feb 2018 14:33:12 +0100 Subject: [PATCH] media-video/ffmpeg: Add libdrm useflag. Closes: https://bugs.gentoo.org/647046 Unlike suggested in the bug, I find drm being confusing in ffmpeg case as this can be mistaken for Digital Right Management support. Since we do not have a drm/libdrm global useflag, I went for libdrm. Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- media-video/ffmpeg/ffmpeg-3.4.2.ebuild | 3 ++- media-video/ffmpeg/ffmpeg-9999.ebuild | 3 ++- media-video/ffmpeg/metadata.xml | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/media-video/ffmpeg/ffmpeg-3.4.2.ebuild b/media-video/ffmpeg/ffmpeg-3.4.2.ebuild index 8c4fc57db67c..d6095bce04b2 100644 --- a/media-video/ffmpeg/ffmpeg-3.4.2.ebuild +++ b/media-video/ffmpeg/ffmpeg-3.4.2.ebuild @@ -70,7 +70,7 @@ FFMPEG_FLAG_MAP=( cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal opengl # indevs - libv4l:libv4l2 pulseaudio:libpulse + libv4l:libv4l2 pulseaudio:libpulse libdrm # decoders amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm @@ -211,6 +211,7 @@ RDEPEND=" jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) libass? ( >=media-libs/libass-0.10.2:=[${MULTILIB_USEDEP}] ) libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) + libdrm? ( x11-libs/libdrm[${MULTILIB_USEDEP}] ) libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) diff --git a/media-video/ffmpeg/ffmpeg-9999.ebuild b/media-video/ffmpeg/ffmpeg-9999.ebuild index bae322e21e76..b9fe40c792d9 100644 --- a/media-video/ffmpeg/ffmpeg-9999.ebuild +++ b/media-video/ffmpeg/ffmpeg-9999.ebuild @@ -70,7 +70,7 @@ FFMPEG_FLAG_MAP=( cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal opengl # indevs - libv4l:libv4l2 pulseaudio:libpulse + libv4l:libv4l2 pulseaudio:libpulse libdrm # decoders amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm @@ -211,6 +211,7 @@ RDEPEND=" jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) libass? ( >=media-libs/libass-0.10.2:=[${MULTILIB_USEDEP}] ) libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) + libdrm? ( x11-libs/libdrm[${MULTILIB_USEDEP}] ) libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) diff --git a/media-video/ffmpeg/metadata.xml b/media-video/ffmpeg/metadata.xml index e55fc74c4155..408dbb8e3c1f 100644 --- a/media-video/ffmpeg/metadata.xml +++ b/media-video/ffmpeg/metadata.xml @@ -30,6 +30,7 @@ Use pre-calculated tables rather than calculating them on the fly. Support for FireWire DV/HDV input device using media-libs/libiec61883. Enables media-libs/kvazaar based HEVC encoder. + Enables x11-libs/libdrm support for better screen grabbing and hardware accelerated codecs. Enables iLBC de/encoding via media-libs/libilbc. Enables Real Time Messaging Protocol using librtmp (media-video/rtmpdump) in addition to FFmpeg's native implementation. Enables audio resampling through media-libs/soxr. -- 2.26.2