7f5e8dc18463b0f1039f3492e90b1e762d464baf
[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 # Updated to v4.3.3 release
15 PKG_SOURCE_URL:=https://github.com/chan-sccp/chan-sccp.git
16 PKG_SOURCE_VERSION:=968caa458920965c5dd15c31bcd50d21a891ab20
17 PKG_SOURCE_DATE:=2020-12-19
18 PKG_MIRROR_HASH:=627e9057a70b01d1fd69c80c0f6a138c79aace10082d76016af23a6bafd2a3d7
19 PKG_SOURCE_PROTO:=git
20
21 PKG_FIXUP:=autoreconf
22
23 PKG_LICENSE:=GPL-1.0
24 PKG_LICENSE_FILES:=COPYING LICENSE
25 PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
26
27 PKG_INSTALL:=1
28
29 include $(INCLUDE_DIR)/package.mk
30 # chan-sccp needs iconv
31 include $(INCLUDE_DIR)/nls.mk
32
33 define Package/asterisk-chan-sccp
34 SUBMENU:=Telephony
35 SECTION:=net
36 CATEGORY:=Network
37 TITLE:=SCCP channel support
38 URL:=https://github.com/chan-sccp/chan-sccp
39 DEPENDS:=asterisk $(ICONV_DEPENDS) +libltdl \
40 +asterisk-bridge-holding \
41 +asterisk-bridge-native-rtp \
42 +asterisk-bridge-simple \
43 +asterisk-bridge-softmix \
44 +asterisk-res-stasis-device-state
45 CONFLICTS:=asterisk-chan-skinny
46 endef
47
48 define Package/asterisk-chan-sccp/description
49 Replacement for the SCCP channel driver (chan_skinny) in Asterisk.
50 Extended features include shared lines, presence / BLF, customizable
51 feature buttons and custom device state.
52 endef
53
54 CONFIGURE_ARGS += \
55 --disable-debug \
56 --enable-advanced-functions \
57 --enable-conference \
58 --enable-video \
59 --with-asterisk=$(STAGING_DIR)/usr
60
61 define Package/asterisk-chan-sccp/conffiles
62 /etc/asterisk/sccp.conf
63 endef
64
65 define Package/asterisk-chan-sccp/install
66 $(INSTALL_DIR) $(1)/etc/asterisk
67 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/sccp.conf $(1)/etc/asterisk
68 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
69 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_sccp.so $(1)/usr/lib/asterisk/modules/
70 endef
71
72 $(eval $(call BuildPackage,asterisk-chan-sccp))