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