package/libpjsip: add sound support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 29 Jan 2020 20:26:28 +0000 (21:26 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 30 Jan 2020 10:21:30 +0000 (11:21 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libpjsip/libpjsip.mk

index b89249a6e581ec09b7db8bb98782c4e72d181984..a6012ba58bacf1bee6fc56c173cd724684f7c043 100644 (file)
@@ -25,7 +25,6 @@ LIBPJSIP_CONF_ENV = \
        CFLAGS="$(LIBPJSIP_CFLAGS)"
 
 LIBPJSIP_CONF_OPTS = \
-       --disable-sound \
        --disable-resample \
        --disable-video \
        --disable-g7221-codec \
@@ -49,6 +48,13 @@ LIBPJSIP_CONF_OPTS = \
 # so we want to use it.
 LIBPJSIP_CONF_OPTS += --enable-epoll
 
+ifeq ($(BR2_PACKAGE_ALSA_LIB_MIXER),y)
+LIBPJSIP_DEPENDENCIES += alsa-lib
+LIBPJSIP_CONF_OPTS += --enable-sound
+else
+LIBPJSIP_CONF_OPTS += --disable-sound
+endif
+
 ifeq ($(BR2_PACKAGE_BCG729),y)
 LIBPJSIP_DEPENDENCIES += bcg729
 LIBPJSIP_CONF_OPTS += --with-bcg729=$(STAGING_DIR)/usr