package/ffmpeg: enable libv4l2 when selected
authorJoseph Kogut <joseph.kogut@gmail.com>
Wed, 9 Dec 2020 20:57:51 +0000 (12:57 -0800)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 21 Dec 2020 09:25:36 +0000 (10:25 +0100)
Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ffmpeg/ffmpeg.mk

index 6b7437411c0a60e4a5dbaf1e24da4b7e13cd5c75..fd4a8ab1c4118711692599a0f3eebb4095b59876 100644 (file)
@@ -84,6 +84,13 @@ else
 FFMPEG_CONF_OPTS += --disable-ffplay
 endif
 
+ifeq ($(BR2_PACKAGE_LIBV4L),y)
+FFMPEG_DEPENDENCIES += libv4l
+FFMPEG_CONF_OPTS += --enable-libv4l2
+else
+FFMPEG_CONF_OPTS += --disable-libv4l2
+endif
+
 ifeq ($(BR2_PACKAGE_FFMPEG_AVRESAMPLE),y)
 FFMPEG_CONF_OPTS += --enable-avresample
 else