treewide: refresh hashes after move to use ZSTD as default
[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:=2
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:=705cd1cd30fc5db3143f87077e2c6511aaa463e1e160ad161a23ccd978fde24e
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 # need iconv.m4, otherwise error during autoreconf
30 PKG_BUILD_DEPENDS:=gettext-full
31
32 include $(INCLUDE_DIR)/package.mk
33 # chan-sccp needs iconv
34 include $(INCLUDE_DIR)/nls.mk
35
36 define Package/asterisk-chan-sccp
37 SUBMENU:=Telephony
38 SECTION:=net
39 CATEGORY:=Network
40 TITLE:=SCCP channel support
41 URL:=https://github.com/chan-sccp/chan-sccp
42 DEPENDS:=asterisk $(ICONV_DEPENDS) +libltdl \
43 +asterisk-bridge-holding \
44 +asterisk-bridge-native-rtp \
45 +asterisk-bridge-simple \
46 +asterisk-bridge-softmix \
47 +asterisk-res-stasis-device-state
48 CONFLICTS:=asterisk-chan-skinny
49 endef
50
51 define Package/asterisk-chan-sccp/description
52 Replacement for the SCCP channel driver (chan_skinny) in Asterisk.
53 Extended features include shared lines, presence / BLF, customizable
54 feature buttons and custom device state.
55 endef
56
57 CONFIGURE_ARGS += \
58 --disable-debug \
59 --enable-advanced-functions \
60 --enable-conference \
61 --enable-video \
62 --with-asterisk=$(STAGING_DIR)/usr
63
64 define Package/asterisk-chan-sccp/conffiles
65 /etc/asterisk/sccp.conf
66 endef
67
68 define Package/asterisk-chan-sccp/install
69 $(INSTALL_DIR) $(1)/etc/asterisk
70 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/sccp.conf $(1)/etc/asterisk
71 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_sccp.so $(1)/usr/lib/asterisk/modules/
73 endef
74
75 $(eval $(call BuildPackage,asterisk-chan-sccp))