2011-10-06 16:17:32 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2011 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=asterisk18-chan-sccp-b
|
2011-10-28 09:25:54 +00:00
|
|
|
PKG_REV=3004
|
|
|
|
PKG_VERSION:=r$(PKG_REV)
|
|
|
|
PKG_RELEASE:=1
|
2011-10-06 16:17:32 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
PKG_SOURCE_PROTO:=svn
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/asterisk18-chan-sccp-b
|
|
|
|
SUBMENU:=Telephony
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=SCCP channel provider for asterisk
|
|
|
|
URL:=http://chan-sccp-b.net.sourceforge.net/
|
2011-10-28 09:25:54 +00:00
|
|
|
MAINTAINER:=Hans Zandbelt <hans.zandbelt@gmail.com>
|
2012-06-13 00:22:31 +00:00
|
|
|
DEPENDS:=+asterisk18 +libltdl
|
2011-10-06 16:17:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/asterisk18-chan-sccp-b/description
|
|
|
|
SCCP channel provider for asterisk. It delivers extended functionality for SCCP phones over chan_skinny delivered
|
|
|
|
by asterisk by default.
|
|
|
|
endef
|
|
|
|
|
2011-10-28 09:25:54 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-asterisk=$(STAGING_DIR)/usr/include/asterisk-1.8
|
2011-10-06 16:17:32 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
2011-10-28 09:25:54 +00:00
|
|
|
$(MAKE) -C "$(PKG_BUILD_DIR)" \
|
|
|
|
CFLAGS="$(CFLAGS) -DLOW_MEMORY" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/asterisk18-chan-sccp-b/conffiles
|
|
|
|
/etc/asterisk/sccp.conf
|
2011-10-06 16:17:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/asterisk18-chan-sccp-b/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/asterisk
|
|
|
|
$(INSTALL_BIN) ./files/sccp.openwrt.conf $(1)/etc/asterisk/sccp.conf
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
2011-10-28 09:25:54 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_sccp.so $(1)/usr/lib/asterisk/modules/
|
2011-10-06 16:17:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,asterisk18-chan-sccp-b))
|