package/libpjsip: add optional dependency on speex
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 14 Oct 2018 09:01:59 +0000 (11:01 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 9 Dec 2018 21:23:08 +0000 (22:23 +0100)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libpjsip/libpjsip.mk

index b3c439d51c8b0a62debca2efc49df963f966849b..f4a57965b8e806e8114f7323e8b4e891354ac19f 100644 (file)
@@ -27,8 +27,6 @@ LIBPJSIP_CONF_ENV = \
 LIBPJSIP_CONF_OPTS = \
        --disable-sound \
        --disable-gsm-codec \
-       --disable-speex-codec \
-       --disable-speex-aec \
        --disable-resample \
        --disable-video \
        --disable-opencore-amr \
@@ -63,6 +61,18 @@ else
 LIBPJSIP_CONF_OPTS += --disable-ssl
 endif
 
+ifeq ($(BR2_PACKAGE_SPEEX)$(BR2_PACKAGE_SPEEXDSP),yy)
+LIBPJSIP_CONF_OPTS += \
+       --enable-speex-aec \
+       --enable-speex-codec \
+       --with-external-speex
+LIBPJSIP_DEPENDENCIES += speex speexdsp
+else
+LIBPJSIP_CONF_OPTS += \
+       --disable-speex-aec \
+       --disable-speex-codec
+endif
+
 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
 LIBPJSIP_DEPENDENCIES += util-linux
 endif