source: trunk/package/ifx-tapi/Makefile @ 20637

Last change on this file since 20637 was 20637, checked in by blogic, 6 years ago

[ifxmips] adds voip support

File size: 2.1 KB
Line 
1#
2# Copyright (C) 2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=drv_tapi
12PKG_VERSION:=3.11.0
13PKG_RELEASE:=1
14
15PKG_SOURCE:=drv_tapi-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
17PKG_MD5SUM:=1ffee83ce69f55915468c309d8ae2138
18
19include $(INCLUDE_DIR)/package.mk
20
21define KernelPackage/ifx-tapi
22  SUBMENU:=Voice over IP
23  TITLE:=Lantiq TAPI subsystem
24  URL:=http://www.lantiq.com/
25  MAINTAINER:=Lantiq
26  DEPENDS:=+kmod-ifxos @BROKEN
27  FILES:=$(PKG_BUILD_DIR)/src/drv_tapi.$(LINUX_KMOD_SUFFIX)
28  AUTOLOAD:=$(call AutoLoad,20,drv_tapi)
29endef
30
31define KernelPackage/ifx-tapi/description
32        Voice Subsystem Telephony API High Level Driver
33endef
34
35define KernelPackage/ifx-tapi/config
36        if PACKAGE_kmod-ifx-tapi
37                source "$(SOURCE)/Config.in"
38        endif
39endef
40
41CONFIGURE_ARGS += \
42        ARCH=$(LINUX_KARCH) \
43        --enable-linux-26 \
44        --enable-kernelbuild="$(LINUX_DIR)" \
45        --enable-kernelincl="$(LINUX_DIR)/include" \
46        --with-ifxos-incl=$(STAGING_DIR)/usr/include/ifxos \
47        $(call autoconf_bool,CONFIG_IFX_DRV_TAPI_EVENT_LOGGER,el-debug) \
48        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_FAX,fax t38) \
49        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_CID,cid) \
50        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_DECT,dect) \
51        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_KPI,kpi) \
52        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_QOS,qos) \
53        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_LT_GR909,lt) \
54        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_STATISTICS,statistics) \
55        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_METERING,metering) \
56        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_HDLC,hdlc) \
57        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_TRACES,trace)
58
59define Build/Configure
60        (cd $(PKG_BUILD_DIR); aclocal && autoconf && automake)
61        $(call Build/Configure/Default)
62endef
63
64define Build/InstallDev
65        $(INSTALL_DIR) $(1)/usr/include/drv_tapi
66        $(CP) --dereference $(PKG_BUILD_DIR)/include/* $(1)/usr/include/drv_tapi
67        (cd $(1)/usr/include/drv_tapi && ln -s . include && ln -s ../ifxos/ifx_types.h .)
68endef
69
70$(eval $(call KernelPackage,ifx-tapi))
Note: See TracBrowser for help on using the repository browser.