diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk index e1c3b511e8..447f76be7f 100644 --- a/package/libpjsip/libpjsip.mk +++ b/package/libpjsip/libpjsip.mk @@ -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