diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk index 859129b4fa..bf706f787d 100644 --- a/package/asterisk/asterisk.mk +++ b/package/asterisk/asterisk.mk @@ -79,7 +79,6 @@ ASTERISK_CONF_OPTS = \ --without-neon29 \ --without-netsnmp \ --without-newt \ - --without-ogg \ --without-openr2 \ --without-opus \ --without-osptk \ @@ -158,6 +157,13 @@ else ASTERISK_CONF_OPTS += --without-neon endif +ifeq ($(BR2_PACKAGE_LIBOGG),y) +ASTERISK_DEPENDENCIES += libogg +ASTERISK_CONF_OPTS += --with-ogg +else +ASTERISK_CONF_OPTS += --without-ogg +endif + ifeq ($(BR2_PACKAGE_OPENSSL),y) ASTERISK_DEPENDENCIES += openssl ASTERISK_CONF_OPTS += --with-ssl