package/libpjsip: add portaudio optional dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 3 Feb 2020 22:07:17 +0000 (23:07 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 5 Feb 2020 14:15:26 +0000 (15:15 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libpjsip/libpjsip.mk

index e1c3b511e834519f46d498d22e18aa7fb64e0de2..447f76be7f193878ca2ac13b202d5899d5bc3338 100644 (file)
@@ -127,6 +127,13 @@ else
 LIBPJSIP_CONF_OPTS += --disable-opus
 endif
 
+ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
+LIBPJSIP_DEPENDENCIES += portaudio
+LIBPJSIP_CONF_OPTS += --with-external-pa
+else
+LIBPJSIP_CONF_OPTS += --without-external-pa
+endif
+
 ifeq ($(BR2_PACKAGE_SDL2),y)
 LIBPJSIP_DEPENDENCIES += sdl2
 LIBPJSIP_CONF_OPTS += --with-sdl=$(STAGING_DIR)/usr