2006-12-30 16:23:02 +00:00
|
|
|
#
|
2009-10-06 17:14:00 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-12-30 16:23:02 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=zaptel
|
2009-10-06 17:14:00 +00:00
|
|
|
PKG_VERSION:=1.2.27
|
2006-12-30 16:23:02 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-10-06 17:14:00 +00:00
|
|
|
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/zaptel/releases/
|
|
|
|
PKG_MD5SUM:=6e0ccf2a2a805054123b35bf8eb10ae9
|
2006-12-30 16:23:02 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2009-10-06 17:14:00 +00:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2006-12-30 16:23:02 +00:00
|
|
|
|
2009-10-06 17:14:00 +00:00
|
|
|
define Package/zaptel-libtonezone
|
2006-12-30 16:23:02 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Zaptel tonezone library.
|
2009-10-06 17:14:00 +00:00
|
|
|
URL:=http://downloads.asterisk.org/pub/telephony/zaptel/
|
2006-12-30 16:23:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2006-12-30 16:23:02 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2009-10-06 17:14:00 +00:00
|
|
|
HOSTCC="$(HOSTCC)" \
|
2006-12-30 16:23:02 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I. -DBUILDING_TONEZONE" \
|
|
|
|
KSRC="$(LINUX_DIR)" \
|
2009-10-06 17:14:00 +00:00
|
|
|
KVERS="$(LINUX_VERSION)" \
|
2006-12-30 16:23:02 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2009-10-06 17:14:00 +00:00
|
|
|
install-tonezone
|
2006-12-30 16:23:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-10-06 17:14:00 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/linux
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/linux/zaptel.h $(1)/usr/include/linux/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/tonezone.h $(1)/usr/include/
|
2009-10-06 17:14:00 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.so* $(1)/usr/lib/
|
2006-12-30 16:23:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/zaptel-libtonezone/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,zaptel-libtonezone))
|