asterisk-g72x: add variant for asterisk 16
Signed-off-by: Andre Heider <a.heider@gmail.com>
This commit is contained in:
parent
a7280b6114
commit
2a87b37fb3
1 changed files with 15 additions and 0 deletions
|
@ -48,12 +48,19 @@ $(call Package/asterisk-g72x/Default)
|
|||
VARIANT:=asterisk15
|
||||
endef
|
||||
|
||||
define Package/asterisk16-codec-g729
|
||||
$(call Package/asterisk-g72x/Default)
|
||||
DEPENDS+=asterisk16
|
||||
VARIANT:=asterisk16
|
||||
endef
|
||||
|
||||
define Package/description/Default
|
||||
Asterisk G.729 codec based on bcg729 implementation.
|
||||
endef
|
||||
|
||||
Package/asterisk13-codec-g729/description = $(Package/description/Default)
|
||||
Package/asterisk15-codec-g729/description = $(Package/description/Default)
|
||||
Package/asterisk16-codec-g729/description = $(Package/description/Default)
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-bcg729 \
|
||||
|
@ -71,6 +78,12 @@ CONFIGURE_ARGS+= \
|
|||
--with-asterisk150
|
||||
endif
|
||||
|
||||
ifeq ($(BUILD_VARIANT),asterisk16)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-asterisk-includes=$(STAGING_DIR)/usr/include/asterisk-16/include \
|
||||
--with-asterisk160
|
||||
endif
|
||||
|
||||
define Package/Install/Default
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/codec_g729.so \
|
||||
|
@ -79,6 +92,8 @@ endef
|
|||
|
||||
Package/asterisk13-codec-g729/install = $(Package/Install/Default)
|
||||
Package/asterisk15-codec-g729/install = $(Package/Install/Default)
|
||||
Package/asterisk16-codec-g729/install = $(Package/Install/Default)
|
||||
|
||||
$(eval $(call BuildPackage,asterisk13-codec-g729))
|
||||
$(eval $(call BuildPackage,asterisk15-codec-g729))
|
||||
$(eval $(call BuildPackage,asterisk16-codec-g729))
|
||||
|
|
Loading…
Reference in a new issue