patch Makefile.am for GLOBAL_LIBDIR as well
[openwrt.git] / package / nw802-2.4 / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=nw802-2.4
13 PKG_VERSION:=0.0.99
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=@SF/nw802
18 PKG_MD5SUM:=bf3512efaa48cfa972b16318011c1963
19
20 include $(INCLUDE_DIR)/package.mk
21
22 # XXX: remove @!TARGET_* later when we have USB support properly detected on all targets
23 define KernelPackage/video-nw8xx
24 SUBMENU:=Video Support
25 TITLE:=NW8xx based USB webcam support
26 URL:=http://nw802.sourceforge.net/
27 DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-video kmod-video-core @!TARGET_atheros @!TARGET_uml
28 FILES:=$(PKG_BUILD_DIR)/nw8xx.$(LINUX_KMOD_SUFFIX)
29 AUTOLOAD:=$(call AutoLoad,70,nw8xx)
30 endef
31
32 define KernelPackage/video-nw8xx/description
33 Kernel support for NW8xx based USB cameras.
34 endef
35
36 define Build/Compile
37 ln -sf $(LINUX_DIR)/drivers/media/video/usbvideo/usbvideo.h \
38 $(PKG_BUILD_DIR)/
39 $(MAKE) -C $(LINUX_DIR) \
40 ARCH="$(LINUX_KARCH)" \
41 CROSS_COMPILE="$(TARGET_CROSS)" \
42 SUBDIRS="$(PKG_BUILD_DIR)" \
43 modules
44 endef
45
46 $(eval $(call KernelPackage,video-nw8xx))
This page took 0.042811 seconds and 5 git commands to generate.