media-video/ffmpeg: Add libdrm useflag.
authorAlexis Ballier <aballier@gentoo.org>
Tue, 13 Feb 2018 13:33:12 +0000 (14:33 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 13 Feb 2018 13:33:21 +0000 (14:33 +0100)
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
media-video/ffmpeg/ffmpeg-9999.ebuild
media-video/ffmpeg/metadata.xml

index 8c4fc57db67ca71bf6a448494950f939e11d5100..d6095bce04b27c0c736c07df61ed20c96dc05add 100644 (file)
@@ -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}] )
index bae322e21e7687326c42c4e38696f1a27ecf6d18..b9fe40c792d9bf157429c4c9cf4ed29a754e436a 100644 (file)
@@ -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}] )
index e55fc74c4155972592554ab2c7f6c12f72e599c6..408dbb8e3c1f07cb254636624349229f5494a6ac 100644 (file)
@@ -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>