Skip to contentSkip to conversation

package/mpv: add libv4l support

PATCH New Fabrice Fontaine 2 participants 2 messages Jan 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mpv: add libv4l support

---
 package/mpv/mpv.mk | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
package/mpv/mpv.mk +10 -1
index 2150f7e9aa..8619de5a8e 100644
@@ -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
Signature · 1 line
2.24.1