2010-06-17 17:45:57 +00:00
|
|
|
#
|
2009-02-02 13:39:24 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2008-09-29 03:37:17 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=zaptel
|
2010-06-13 07:08:08 +00:00
|
|
|
PKG_VERSION:=1.4.12.1
|
2010-06-26 16:57:44 +00:00
|
|
|
PKG_RELEASE:=4
|
2008-09-29 03:37:17 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2010-06-13 07:08:08 +00:00
|
|
|
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/zaptel/releases/ \
|
|
|
|
http://ftp.digium.com/pub/zaptel/releases/
|
|
|
|
PKG_MD5SUM:=71e83a020b020fa60905edecf70e95a3
|
2008-09-29 03:37:17 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/zaptel14/Default
|
2008-12-04 12:33:26 +00:00
|
|
|
TITLE:=Zaptel
|
|
|
|
URL:=http://ftp.digium.com/pub/zaptel/releases
|
2008-09-29 03:37:17 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-13 13:05:59 +00:00
|
|
|
define KernelPackage/zaptel14/Default
|
|
|
|
TITLE:=Zaptel (kernel module)
|
2009-02-02 13:39:24 +00:00
|
|
|
SUBMENU:=Other modules
|
2010-06-13 13:05:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/zaptel14
|
|
|
|
$(call KernelPackage/zaptel14/Default)
|
2008-12-04 12:33:26 +00:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/kernel/zaptel.$(LINUX_KMOD_SUFFIX) \
|
|
|
|
$(PKG_BUILD_DIR)/kernel/ztdummy.$(LINUX_KMOD_SUFFIX)
|
|
|
|
AUTOLOAD:=$(call AutoLoad,70,zaptel ztdummy)
|
2008-09-29 03:37:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/zaptel14/description
|
2009-02-02 13:39:24 +00:00
|
|
|
This package contains the Zaptel core module and ztdummy driver.
|
2008-09-29 03:37:17 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-13 13:05:59 +00:00
|
|
|
define KernelPackage/zaptel14-wcusb
|
|
|
|
$(call KernelPackage/zaptel14/Default)
|
|
|
|
DEPENDS += +kmod-zaptel14
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/kernel/wcusb.$(LINUX_KMOD_SUFFIX)
|
|
|
|
AUTOLOAD:=$(call AutoLoad,71,wcusb)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/zaptel14-wcusb/description
|
|
|
|
This package contains the Zaptel S100U usb driver.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/zaptel14-wctdm
|
|
|
|
$(call KernelPackage/zaptel14/Default)
|
|
|
|
DEPENDS += +kmod-zaptel14
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/kernel/wctdm.$(LINUX_KMOD_SUFFIX)
|
|
|
|
AUTOLOAD:=$(call AutoLoad,71,wctdm)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/zaptel14-wctdm/description
|
|
|
|
This package contains the Zaptel wctdm driver.
|
|
|
|
endef
|
|
|
|
|
2008-09-29 03:37:17 +00:00
|
|
|
define Package/zaptel14-util
|
2008-12-04 12:33:26 +00:00
|
|
|
$(call Package/zaptel14/Default)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE+= utils
|
|
|
|
DEPENDS += +kmod-zaptel14
|
2008-09-29 03:37:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zaptel14-util/description
|
2010-06-13 13:05:59 +00:00
|
|
|
This package contains the zaptel utils.
|
2008-09-29 03:37:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zaptel14-libtonezone
|
2008-12-04 12:33:26 +00:00
|
|
|
$(call Package/zaptel14/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= libtonezone (library)
|
|
|
|
DEPENDS += +kmod-zaptel14
|
2008-09-29 03:37:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zaptel14-libtonezone/description
|
2009-02-02 13:39:24 +00:00
|
|
|
This package contains the libraries for accessing zaptel/dummy drivers.
|
2008-09-29 03:37:17 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-06 16:41:03 +00:00
|
|
|
MAKE_FLAGS:= \
|
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
|
CC="$(TARGET_CC) $(TARGET_CFLAGS)" \
|
|
|
|
LD="$(TARGET_CROSS)ld" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
KVERS="$(LINUX_VERSION)" \
|
|
|
|
KSRC="$(LINUX_DIR)" \
|
2010-06-13 13:05:59 +00:00
|
|
|
TOPDIR_MODULES="zaptel ztdummy wcusb wctdm" \
|
2009-02-06 16:41:03 +00:00
|
|
|
SUBDIR_MODULES=""
|
|
|
|
|
2009-02-02 13:39:24 +00:00
|
|
|
define Build/Compile/kmod
|
2008-09-29 03:37:17 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2009-02-06 16:41:03 +00:00
|
|
|
$(MAKE_FLAGS) \
|
2009-02-02 13:39:24 +00:00
|
|
|
modules
|
2008-09-29 03:37:17 +00:00
|
|
|
endef
|
|
|
|
|
2009-02-02 13:39:24 +00:00
|
|
|
define Build/Compile/user
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2009-02-03 14:39:17 +00:00
|
|
|
ARCH="$(LINUX_KARCH)" \
|
2009-02-02 13:39:24 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
install-libs install-include zttest
|
2008-09-29 03:37:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2009-02-02 13:39:24 +00:00
|
|
|
$(call Build/Compile/kmod)
|
|
|
|
$(call Build/Compile/user)
|
2008-09-29 03:37:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-02-02 13:39:24 +00:00
|
|
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/zaptel $(STAGING_DIR)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.* $(STAGING_DIR)/usr/lib/
|
2008-09-29 03:37:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zaptel14-util/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/zttest $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zaptel14-libtonezone/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-02-02 13:39:24 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.so.* $(1)/usr/lib/
|
2008-09-29 03:37:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,zaptel14))
|
2010-06-13 13:05:59 +00:00
|
|
|
$(eval $(call KernelPackage,zaptel14-wcusb))
|
|
|
|
$(eval $(call KernelPackage,zaptel14-wctdm))
|
2008-09-29 03:37:17 +00:00
|
|
|
$(eval $(call BuildPackage,zaptel14-util))
|
|
|
|
$(eval $(call BuildPackage,zaptel14-libtonezone))
|