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