asterisk-g72x: add Asterisk 15 variant

Add a package for Asterisk 15.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
Sebastian Kemper 2017-11-23 19:28:13 +01:00
parent 010ef93a90
commit 659c445832

View file

@ -42,11 +42,18 @@ $(call Package/asterisk-g72x/Default)
VARIANT:=asterisk13 VARIANT:=asterisk13
endef endef
define Package/asterisk15-codec-g729
$(call Package/asterisk-g72x/Default)
DEPENDS+=asterisk15
VARIANT:=asterisk15
endef
define Package/description/Default define Package/description/Default
Asterisk G.729 codec based on bcg729 implementation. Asterisk G.729 codec based on bcg729 implementation.
endef endef
Package/asterisk13-codec-g729/description = $(Package/description/Default) Package/asterisk13-codec-g729/description = $(Package/description/Default)
Package/asterisk15-codec-g729/description = $(Package/description/Default)
CONFIGURE_ARGS+= \ CONFIGURE_ARGS+= \
--with-bcg729 \ --with-bcg729 \
@ -58,6 +65,12 @@ CONFIGURE_ARGS+= \
--with-asterisk130 --with-asterisk130
endif endif
ifeq ($(BUILD_VARIANT),asterisk15)
CONFIGURE_ARGS+= \
--with-asterisk-includes=$(STAGING_DIR)/usr/include/asterisk-15/include \
--with-asterisk150
endif
define Package/Install/Default define Package/Install/Default
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/codec_g729.so \ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/codec_g729.so \
@ -65,5 +78,7 @@ define Package/Install/Default
endef endef
Package/asterisk13-codec-g729/install = $(Package/Install/Default) Package/asterisk13-codec-g729/install = $(Package/Install/Default)
Package/asterisk15-codec-g729/install = $(Package/Install/Default)
$(eval $(call BuildPackage,asterisk13-codec-g729)) $(eval $(call BuildPackage,asterisk13-codec-g729))
$(eval $(call BuildPackage,asterisk15-codec-g729))