package/ffmpeg: add optional support for libdrm
authorBernd Kuhls <bernd.kuhls@t-online.de>
Mon, 9 Jul 2018 17:47:44 +0000 (19:47 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 10 Jul 2018 09:21:14 +0000 (11:21 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ffmpeg/ffmpeg.mk

index 432e4cda09cd6ccc01c135e708788d2eb3f52529..82140e266e9ac386e7ded96b87685bcee3f095c5 100644 (file)
@@ -231,6 +231,13 @@ ifeq ($(BR2_PACKAGE_FFMPEG_GPL)$(BR2_PACKAGE_LIBEBUR128),yy)
 FFMPEG_DEPENDENCIES += libebur128
 endif
 
+ifeq ($(BR2_PACKAGE_LIBDRM),y)
+FFMPEG_CONF_OPTS += --enable-libdrm
+FFMPEG_DEPENDENCIES += libdrm
+else
+FFMPEG_CONF_OPTS += --disable-libdrm
+endif
+
 ifeq ($(BR2_PACKAGE_LIBOPENH264),y)
 FFMPEG_CONF_OPTS += --enable-libopenh264
 FFMPEG_DEPENDENCIES += libopenh264