2010-03-31 14:12:33 +03:00
|
|
|
#
|
2010-05-23 17:42:44 +03:00
|
|
|
# Copyright (C) 2008-2010 OpenWrt.org
|
2010-03-31 14:12:33 +03: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:=tapidemo
|
2011-07-07 21:20:11 +03:00
|
|
|
PKG_VERSION:=5.1.0.53
|
2010-03-31 14:12:33 +03:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
|
2011-07-07 21:20:11 +03:00
|
|
|
PKG_MD5SUM:=c970becc46b2935fb9e18f795d4e8469
|
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
2010-03-31 14:12:33 +03:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-02-01 16:32:25 +02:00
|
|
|
define Package/ltq-tapidemo
|
2011-07-07 21:20:11 +03:00
|
|
|
SUBMENU:=Telephony
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2010-03-31 14:12:33 +03:00
|
|
|
TITLE:=TAPIdemo application for Lantiq boards
|
|
|
|
URL:=http://www.lantiq.com/
|
2012-08-06 21:56:38 +03:00
|
|
|
DEPENDS:=+kmod-ltq-tapi +kmod-ltq-vmmc +libpthread @(TARGET_lantiq_danube||TARGET_lantiq_falcon)
|
2011-02-01 16:32:25 +02:00
|
|
|
MAINTAINER:=John Crispin <blogic@openwrt.org>
|
2010-04-16 14:09:24 +03:00
|
|
|
MENU:=1
|
2010-03-31 14:12:33 +03:00
|
|
|
endef
|
|
|
|
|
2011-02-01 16:32:25 +02:00
|
|
|
define Package/ltq-tapidemo/description
|
2010-03-31 14:12:33 +03:00
|
|
|
Voice Access mini-PBX Demo Application
|
|
|
|
endef
|
|
|
|
|
2011-02-01 16:32:25 +02:00
|
|
|
define Package/ltq-tapidemo/config
|
2010-04-16 14:09:24 +03:00
|
|
|
source "$(SOURCE)/Config.in"
|
2010-03-31 14:12:33 +03:00
|
|
|
endef
|
|
|
|
|
2012-06-16 17:52:33 +03:00
|
|
|
TARGET_LDFLAGS+=-lpthread
|
|
|
|
|
2010-03-31 14:12:33 +03:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
ARCH=$(LINUX_KARCH) \
|
|
|
|
--enable-linux-26 \
|
|
|
|
--enable-kernelincl="$(LINUX_DIR)/include" \
|
|
|
|
--with-drvincl="$(STAGING_DIR)/usr/include" \
|
2011-07-07 21:20:11 +03:00
|
|
|
--with-ifxos-incl=$(STAGING_DIR)/usr/include/ifxos \
|
|
|
|
--with-ifxos-lib=$(STAGING_DIR)/usr/lib \
|
2010-03-31 14:12:33 +03:00
|
|
|
$(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_QOS,qos) \
|
|
|
|
$(call autoconf_bool,CONFIG_VOICE_CPE_TAPIDEMO_FAX_T,fax-t38) \
|
|
|
|
--enable-trace \
|
|
|
|
--enable-fs
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY50712),y)
|
|
|
|
CONFIGURE_ARGS += --enable-boardname=EASY50712
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY50712_V3),y)
|
|
|
|
CONFIGURE_ARGS += --enable-boardname=EASY50712_V3
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY508xx),y)
|
|
|
|
CONFIGURE_ARGS += --enable-boardname=EASY508XX
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY80910),y)
|
|
|
|
CONFIGURE_ARGS += --enable-boardname=EASY508XX
|
|
|
|
endif
|
2011-07-07 21:20:11 +03:00
|
|
|
ifneq ($(CONFIG_VOICE_CPE_TAPIDEMO_FW_FILE),)
|
|
|
|
CONFIGURE_ARGS += --with-fw-file="$(strip $(subst ",, $(CONFIG_VOICE_CPE_TAPIDEMO_FW_FILE)))"
|
|
|
|
endif
|
|
|
|
ifneq ($(CONFIG_VOICE_CPE_TAPIDEMO_BBD_FILE), "")
|
|
|
|
CONFIGURE_ARGS += --with-bbd-file="$(strip $(subst ",, $(CONFIG_VOICE_CPE_TAPIDEMO_BBD_FILE)))"
|
|
|
|
endif
|
2010-03-31 14:12:33 +03:00
|
|
|
|
2011-02-01 16:32:25 +02:00
|
|
|
define Package/ltq-tapidemo/install
|
2010-03-31 14:12:33 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tapidemo $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) ./files/bringup_tapidemo $(1)/etc/init.d/tapidemo
|
|
|
|
endef
|
|
|
|
|
2011-02-01 16:32:25 +02:00
|
|
|
$(eval $(call BuildPackage,ltq-tapidemo))
|