asterisk-opus: add variant for asterisk 16
Signed-off-by: Andre Heider <a.heider@gmail.com>
This commit is contained in:
parent
2a87b37fb3
commit
a669566e1b
1 changed files with 13 additions and 0 deletions
|
@ -53,6 +53,12 @@ $(call Package/$(PKG_NAME)/Default)
|
||||||
VARIANT:=asterisk15
|
VARIANT:=asterisk15
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/asterisk16-codec-opus
|
||||||
|
$(call Package/$(PKG_NAME)/Default)
|
||||||
|
DEPENDS+=asterisk16
|
||||||
|
VARIANT:=asterisk16
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/description/Default
|
define Package/description/Default
|
||||||
Opus is the default audio codec in WebRTC. WebRTC is available in
|
Opus is the default audio codec in WebRTC. WebRTC is available in
|
||||||
Asterisk via SIP over WebSockets (WSS). Nevertheless, Opus can be used
|
Asterisk via SIP over WebSockets (WSS). Nevertheless, Opus can be used
|
||||||
|
@ -69,6 +75,7 @@ endef
|
||||||
|
|
||||||
Package/asterisk13-codec-opus/description = $(Package/description/Default)
|
Package/asterisk13-codec-opus/description = $(Package/description/Default)
|
||||||
Package/asterisk15-codec-opus/description = $(Package/description/Default)
|
Package/asterisk15-codec-opus/description = $(Package/description/Default)
|
||||||
|
Package/asterisk16-codec-opus/description = $(Package/description/Default)
|
||||||
|
|
||||||
ifeq ($(BUILD_VARIANT),asterisk13)
|
ifeq ($(BUILD_VARIANT),asterisk13)
|
||||||
TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/asterisk-13/include
|
TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/asterisk-13/include
|
||||||
|
@ -78,6 +85,10 @@ ifeq ($(BUILD_VARIANT),asterisk15)
|
||||||
TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/asterisk-15/include
|
TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/asterisk-15/include
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BUILD_VARIANT),asterisk16)
|
||||||
|
TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/asterisk-16/include
|
||||||
|
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_BUILD_DIR)/codecs/codec_opus_open_source.so \
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/codecs/codec_opus_open_source.so \
|
||||||
|
@ -86,9 +97,11 @@ endef
|
||||||
|
|
||||||
Package/asterisk13-codec-opus/install = $(Package/Install/Default)
|
Package/asterisk13-codec-opus/install = $(Package/Install/Default)
|
||||||
Package/asterisk15-codec-opus/install = $(Package/Install/Default)
|
Package/asterisk15-codec-opus/install = $(Package/Install/Default)
|
||||||
|
Package/asterisk16-codec-opus/install = $(Package/Install/Default)
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,asterisk13-codec-opus))
|
$(eval $(call BuildPackage,asterisk13-codec-opus))
|
||||||
$(eval $(call BuildPackage,asterisk15-codec-opus))
|
$(eval $(call BuildPackage,asterisk15-codec-opus))
|
||||||
|
$(eval $(call BuildPackage,asterisk16-codec-opus))
|
||||||
|
|
Loading…
Reference in a new issue