asterisk-chan-sccp: update for Asterisk 18 LTS
[feed/telephony.git] / net / asterisk-chan-sccp / Makefile
1 #
2 # Copyright (C) 2016 OpenWrt.org
3 # Copyright (C) 2016 Cesnet, z.s.p.o.
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=asterisk-chan-sccp
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=https://github.com/chan-sccp/chan-sccp.git
15 PKG_SOURCE_VERSION:=a61c6d2cecdd149db767307cd71b736e77913251
16 PKG_SOURCE_DATE:=2020-10-26
17 PKG_MIRROR_HASH:=b879a44b855c5a891558781967abff0cb9350d8765c1b4f7774a4fae4cfeda4c
18 PKG_SOURCE_PROTO:=git
19
20 PKG_FIXUP:=autoreconf
21
22 PKG_LICENSE:=GPL-1.0
23 PKG_LICENSE_FILES:=COPYING LICENSE
24 PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
25
26 PKG_INSTALL:=1
27
28 include $(INCLUDE_DIR)/package.mk
29 # chan-sccp needs iconv
30 include $(INCLUDE_DIR)/nls.mk
31
32 define Package/asterisk-chan-sccp
33 SUBMENU:=Telephony
34 SECTION:=net
35 CATEGORY:=Network
36 TITLE:=SCCP channel support
37 URL:=https://github.com/chan-sccp/chan-sccp
38 DEPENDS:=asterisk $(ICONV_DEPENDS) +libltdl \
39 +asterisk-bridge-holding \
40 +asterisk-bridge-native-rtp \
41 +asterisk-bridge-simple \
42 +asterisk-bridge-softmix \
43 +asterisk-res-stasis-device-state
44 CONFLICTS:=asterisk-chan-skinny
45 endef
46
47 define Package/asterisk-chan-sccp/description
48 Replacement for the SCCP channel driver (chan_skinny) in Asterisk.
49 Extended features include shared lines, presence / BLF, customizable
50 feature buttons and custom device state.
51 endef
52
53 CONFIGURE_ARGS += \
54 --disable-debug \
55 --enable-advanced-functions \
56 --enable-conference \
57 --enable-video \
58 --with-asterisk=$(STAGING_DIR)/usr
59
60 define Package/asterisk-chan-sccp/conffiles
61 /etc/asterisk/sccp.conf
62 endef
63
64 define Package/asterisk-chan-sccp/install
65 $(INSTALL_DIR) $(1)/etc/asterisk
66 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/sccp.conf $(1)/etc/asterisk
67 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_sccp.so $(1)/usr/lib/asterisk/modules/
69 endef
70
71 $(eval $(call BuildPackage,asterisk-chan-sccp))