2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
18 PKG_MD5SUM
:=a38a7bf3242aad607f50f57b988bc87c
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/ifx-tapidemo
25 TITLE
:=TAPIdemo application for Lantiq boards
26 URL
:=http
://www.lantiq.com
/
28 DEPENDS
:=+kmod-ifx-tapi
+kmod-ifx-vmmc @BROKEN
31 define Package
/ifx-tapidemo
/description
32 Voice Access mini-PBX Demo Application
35 define Package
/ifx-tapidemo
/config
36 if PACKAGE_ifx-tapidemo
37 source
"$(SOURCE)/Config.in"
44 --enable-kernelincl
="$(LINUX_DIR)/include" \
45 --with-drvincl
="$(STAGING_DIR)/usr/include" \
46 $(call autoconf_bool
,CONFIG_VOICE_CPE_TAPI_QOS
,qos
) \
47 $(call autoconf_bool
,CONFIG_VOICE_CPE_TAPIDEMO_FAX_T
,fax-t38
) \
51 ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY50712
),y
)
52 CONFIGURE_ARGS
+= --enable-boardname
=EASY50712
54 ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY50712_V3
),y
)
55 CONFIGURE_ARGS
+= --enable-boardname
=EASY50712_V3
57 ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY508xx
),y
)
58 CONFIGURE_ARGS
+= --enable-boardname
=EASY508XX
60 ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY80910
),y
)
61 CONFIGURE_ARGS
+= --enable-boardname
=EASY508XX
64 define Package
/ifx-tapidemo
/install
65 $(INSTALL_DIR
) $(1)/usr
/sbin
$(1)/etc
/init.d
/
66 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/tapidemo
$(1)/usr
/sbin
67 $(INSTALL_BIN
) .
/files
/bringup_tapidemo
$(1)/etc
/init.d
/tapidemo
70 $(eval
$(call BuildPackage
,ifx-tapidemo
))