Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
LIBPJSIP_CONF_OPTS = \
--disable-resample \
- --disable-video \
--disable-g7221-codec \
--disable-ilbc-codec \
--disable-libwebrtc \
--disable-g722-codec \
--disable-sdl \
--disable-ffmpeg \
- --disable-v4l2 \
--disable-openh264 \
--disable-libyuv \
--disable-ipp \
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