Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
--disable-sound \
--disable-resample \
--disable-video \
- --disable-opencore-amr \
--disable-g7221-codec \
--disable-ilbc-codec \
--disable-libwebrtc \
LIBPJSIP_CONF_OPTS += --disable-libsamplerate
endif
+ifeq ($(BR2_PACKAGE_OPENCORE_AMR),y)
+LIBPJSIP_DEPENDENCIES += opencore-amr
+LIBPJSIP_CONF_OPTS += --with-opencore-amr=$(STAGING_DIR)/usr
+else
+LIBPJSIP_CONF_OPTS += --disable-opencore-amr
+endif
+
ifeq ($(BR2_PACKAGE_OPUS),y)
LIBPJSIP_DEPENDENCIES += opus
LIBPJSIP_CONF_OPTS += --with-opus=$(STAGING_DIR)/usr