commit:     7aeedc6bbd30477bcc1bf87500bb810f7b04b579
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 13 13:33:12 2018 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue Feb 13 13:33:21 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7aeedc6b

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 8c4fc57db67..d6095bce04b 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 bae322e21e7..b9fe40c792d 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 e55fc74c415..408dbb8e3c1 100644
--- a/media-video/ffmpeg/metadata.xml
+++ b/media-video/ffmpeg/metadata.xml
@@ -30,6 +30,7 @@
        <flag name="hardcoded-tables">Use pre-calculated tables rather than 
calculating them on the fly.</flag>
        <flag name="iec61883"> Support for FireWire DV/HDV input device using 
<pkg>media-libs/libiec61883</pkg>.</flag>
        <flag name="kvazaar">Enables <pkg>media-libs/kvazaar</pkg> based HEVC 
encoder.</flag>
+       <flag name="libdrm">Enables <pkg>x11-libs/libdrm</pkg> support for 
better screen grabbing and hardware accelerated codecs.</flag>
        <flag name="libilbc">Enables iLBC de/encoding via 
<pkg>media-libs/libilbc</pkg>.</flag>
        <flag name="librtmp">Enables Real Time Messaging Protocol using librtmp 
(<pkg>media-video/rtmpdump</pkg>) in addition to FFmpeg's native 
implementation.</flag>
        <flag name="libsoxr">Enables audio resampling through 
<pkg>media-libs/soxr</pkg>.</flag>

Reply via email to