Skip to contentSkip to conversation

package/libpjsip: add v4l2 support

PATCH New Fabrice Fontaine 2 participants 2 messages Jan 31, 2020 – Feb 1, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libpjsip: add v4l2 support

---
 package/libpjsip/libpjsip.mk | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
package/libpjsip/libpjsip.mk +7 -2
index a6012ba58b..a9febcf9c6 100644
@@ -26,7 +26,6 @@ LIBPJSIP_CONF_ENV = \
 
 LIBPJSIP_CONF_OPTS = \
 	--disable-resample \
-	--disable-video \
 	--disable-g7221-codec \
 	--disable-ilbc-codec \
 	--disable-libwebrtc \
@@ -36,7 +35,6 @@ LIBPJSIP_CONF_OPTS = \
 	--disable-g722-codec \
 	--disable-sdl \
 	--disable-ffmpeg \
-	--disable-v4l2 \
 	--disable-openh264 \
 	--disable-libyuv \
 	--disable-ipp \
@@ -89,6 +87,13 @@ else
 LIBPJSIP_CONF_OPTS += --disable-libsamplerate
 endif
 
+ifeq ($(BR2_PACKAGE_LIBV4L),y)
+# --enable-v4l2 is broken (check for libv4l2 will be omitted)
+LIBPJSIP_DEPENDENCIES += libv4l
+else
+LIBPJSIP_CONF_OPTS += --disable-v4l2
+endif
+
 ifeq ($(BR2_PACKAGE_OPENCORE_AMR),y)
 LIBPJSIP_DEPENDENCIES += opencore-amr
 LIBPJSIP_CONF_OPTS += --with-opencore-amr=$(STAGING_DIR)/usr
Signature · 1 line
2.24.1