telephony/net/asterisk-opus/Makefile
Sebastian Kemper af20cf00a6 asterisk-opus: update for Asterisk 18 LTS
Removes VARIANT-related bits as we only have one Asterisk version.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-11-01 11:56:04 +01:00

61 lines
1.8 KiB
Makefile

#
# Copyright (C) 2018 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=asterisk-opus
PKG_RELEASE:=1
PKG_SOURCE_URL:=https://github.com/traud/asterisk-opus.git
PKG_SOURCE_DATE:=2017-10-09
PKG_SOURCE_VERSION:=83e1b458c77e0e287adeca494eeb79edb077b0ff
PKG_MIRROR_HASH:=c71b859db7518cdafff1650e629c5901b290fe68f8af54ef1afd57bc9f15b122
PKG_SOURCE_PROTO:=git
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
include $(INCLUDE_DIR)/package.mk
TARGET_CFLAGS += \
-DAST_MODULE_SELF_SYM=__internal_codec_opus_open_source_self \
$(FPIC)
define Package/asterisk-codec-opus
SUBMENU:=Telephony
SECTION:=net
CATEGORY:=Network
TITLE:=Opus codec support
URL:=https://github.com/traud/asterisk-opus
DEPENDS:=asterisk +libopus
endef
define Package/asterisk-codec-opus/description
Opus is the default audio codec in WebRTC. WebRTC is available in
Asterisk via SIP over WebSockets (WSS). Nevertheless, Opus can be used
for other transports (UDP, TCP, TLS) as well. Opus supersedes previous
codecs like CELT and SiLK. Furthermore, in favor of Opus, other
open-source audio codecs are no longer developed, like Speex, iSAC,
iLBC, and Siren. If you use your Asterisk as a back-to-back user agent
(B2BUA) and you transcode between various audio codecs, one should
enable Opus for future compatibility.
Opus is not only supported for pass-through but can be transcoded as
well.
endef
define Package/asterisk-codec-opus/install
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
$(INSTALL_BIN) $(PKG_BUILD_DIR)/codecs/codec_opus_open_source.so \
$(1)/usr/lib/asterisk/modules
endef
define Build/Configure
endef
$(eval $(call BuildPackage,asterisk-codec-opus))