asterisk-opus: update for Asterisk 18 LTS
[feed/telephony.git] / net / asterisk-opus / Makefile
1 #
2 # Copyright (C) 2018 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=asterisk-opus
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_URL:=https://github.com/traud/asterisk-opus.git
14 PKG_SOURCE_DATE:=2017-10-09
15 PKG_SOURCE_VERSION:=83e1b458c77e0e287adeca494eeb79edb077b0ff
16 PKG_MIRROR_HASH:=c71b859db7518cdafff1650e629c5901b290fe68f8af54ef1afd57bc9f15b122
17 PKG_SOURCE_PROTO:=git
18
19 PKG_LICENSE:=GPL-2.0
20 PKG_LICENSE_FILES:=LICENSE
21 PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
22
23 include $(INCLUDE_DIR)/package.mk
24
25 TARGET_CFLAGS += \
26 -DAST_MODULE_SELF_SYM=__internal_codec_opus_open_source_self \
27 $(FPIC)
28
29 define Package/asterisk-codec-opus
30 SUBMENU:=Telephony
31 SECTION:=net
32 CATEGORY:=Network
33 TITLE:=Opus codec support
34 URL:=https://github.com/traud/asterisk-opus
35 DEPENDS:=asterisk +libopus
36 endef
37
38 define Package/asterisk-codec-opus/description
39 Opus is the default audio codec in WebRTC. WebRTC is available in
40 Asterisk via SIP over WebSockets (WSS). Nevertheless, Opus can be used
41 for other transports (UDP, TCP, TLS) as well. Opus supersedes previous
42 codecs like CELT and SiLK. Furthermore, in favor of Opus, other
43 open-source audio codecs are no longer developed, like Speex, iSAC,
44 iLBC, and Siren. If you use your Asterisk as a back-to-back user agent
45 (B2BUA) and you transcode between various audio codecs, one should
46 enable Opus for future compatibility.
47
48 Opus is not only supported for pass-through but can be transcoded as
49 well.
50 endef
51
52 define Package/asterisk-codec-opus/install
53 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/codecs/codec_opus_open_source.so \
55 $(1)/usr/lib/asterisk/modules
56 endef
57
58 define Build/Configure
59 endef
60
61 $(eval $(call BuildPackage,asterisk-codec-opus))