Browse Source

package/mpv: add libv4l support

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Fabrice Fontaine 5 năm trước cách đây
mục cha
commit
22f4c826ca
1 tập tin đã thay đổi với 10 bổ sung1 xóa
  1. 10 1
      package/mpv/mpv.mk

+ 10 - 1
package/mpv/mpv.mk

@@ -23,7 +23,6 @@ MPV_CONF_OPTS = \
 	--disable-cocoa \
 	--disable-coreaudio \
 	--disable-cuda-hwaccel \
-	--disable-libv4l2 \
 	--disable-opensles \
 	--disable-rsound \
 	--disable-rubberband \
@@ -129,6 +128,16 @@ else
 MPV_CONF_OPTS += --disable-drm
 endif
 
+# libv4l
+ifeq ($(BR2_PACKAGE_LIBV4L),y)
+MPV_CONF_OPTS += \
+	--enable-libv4l2 \
+	--enable-tv
+MPV_DEPENDENCIES += libv4l
+else
+MPV_CONF_OPTS += --disable-libv4l2
+endif
+
 # libvdpau
 ifeq ($(BR2_PACKAGE_LIBVDPAU),y)
 MPV_CONF_OPTS += --enable-vdpau