package/libpjsip: add v4l2 support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 31 Jan 2020 18:11:36 +0000 (19:11 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 1 Feb 2020 15:00:50 +0000 (16:00 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libpjsip/libpjsip.mk

index a6012ba58bacf1bee6fc56c173cd724684f7c043..a9febcf9c627e368901abf026f188f564740c41e 100644 (file)
@@ -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