Since OpenWrt updated autoconf to 2.71 configure fails, because "$ac_dir" is now empty when configure attempts to run "./tools/versioncheck". With previous autoconf "$ac_dir" contained "autoconf" at this point in the script. As a workaround "$ac_dir" is replaced with "$ac_aux_dir", which incidentally contains "autoconf". Also a build dependency is added for gettext-full, as it provides iconv.m4. Previously this was provided by libiconv, but not anymore. Without iconv.m4 autoreconf fails. Some patches were refreshed to allow CI to pass. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
75 lines
2 KiB
Makefile
75 lines
2 KiB
Makefile
#
|
|
# 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:=627e9057a70b01d1fd69c80c0f6a138c79aace10082d76016af23a6bafd2a3d7
|
|
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))
|