1e53821f353b9043034f78f3b2fb8304d6c25441
[openwrt/svn-archive/archive.git] / multimedia / spca5xx-le / 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: Makefile 7137 2007-05-08 18:40:02Z nbd $
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=spca5xx-le
13 PKG_VERSION:=1
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME).tar.bz2
17 PKG_SOURCE_URL:=http://www.acmesystems.it/download/owrt/
18 PKG_MD5SUM:=
19
20 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define KernelPackage/video-spca5xx-le
25 SUBMENU:=Video Support
26 TITLE:=SPCA5xx based USB webcam support (Light Edition)
27 URL:=http://mxhaard.free.fr/
28 DEPENDS:=@LINUX_2_6_23||LINUX_2_6_24||LINUX_2_6_25 @USB_SUPPORT +kmod-usb-core kmod-video-core
29 FILES:=$(PKG_BUILD_DIR)/spca5xx.$(LINUX_KMOD_SUFFIX)
30 AUTOLOAD:=$(call AutoLoad,90,spca5xx)
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(LINUX_DIR) \
35 ARCH="$(LINUX_KARCH)" \
36 CROSS_COMPILE="$(TARGET_CROSS)" \
37 SUBDIRS="$(PKG_BUILD_DIR)" \
38 modules
39 endef
40
41 $(eval $(call KernelPackage,video-spca5xx-le))