From ecbd31c3768bde5b244b09726501f69582d68d39 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Wed, 29 Jan 2020 21:26:28 +0100 Subject: [PATCH] package/libpjsip: add sound support Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- package/libpjsip/libpjsip.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk index b89249a6e5..a6012ba58b 100644 --- a/package/libpjsip/libpjsip.mk +++ b/package/libpjsip/libpjsip.mk @@ -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 -- 2.30.2