7735801b0d8edafda2c82f1a150059f215d0c87c
[openwrt/svn-archive/archive.git] / multimedia / gspcav1 / 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
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=gspcav1
12 PKG_VERSION:=20071224
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://mxhaard.free.fr/spca50x/Download
17 PKG_MD5SUM:=14853ba1f4edc1e685039fca56e5ebf
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define KernelPackage/video-gspca
22 SUBMENU:=Video Support
23 TITLE:=SPCA5xx based USB webcam support
24 URL:=http://mxhaard.free.fr/
25 DEPENDS:=@LINUX_2_6 @!LINUX_2_6_27 @!LINUX_2_6_28 @USB_SUPPORT @!TARGET_uml +kmod-usb-core +kmod-video-core
26 FILES:=$(PKG_BUILD_DIR)/gspca.$(LINUX_KMOD_SUFFIX)
27 AUTOLOAD:=$(call AutoLoad,90,gspca)
28 endef
29
30 define Build/Compile
31 $(MAKE) -C $(LINUX_DIR) \
32 ARCH="$(LINUX_KARCH)" \
33 CROSS_COMPILE="$(TARGET_CROSS)" \
34 SUBDIRS="$(PKG_BUILD_DIR)" \
35 modules
36 endef
37
38 $(eval $(call KernelPackage,video-gspca))