[Buildroot] [PATCH 1/1] package/libpjsip: add sound support
Fabrice Fontaine
fontaine.fabrice at gmail.com
Wed Jan 29 20:26:28 UTC 2020
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
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.24.1
More information about the buildroot
mailing list