[package] update gst-plugins-base to 0.10.25, modularize plugin building
[openwrt/svn-archive/archive.git] / multimedia / linux-uvc / Makefile
1 #
2 # Copyright (C) 2007-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
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=linux-uvc
12 PKG_REV:=261
13 PKG_VERSION:=r$(PKG_REV)
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=http://svn.berlios.de/svnroot/repos/linux-uvc/linux-uvc/trunk/
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20 PKG_SOURCE_PROTO:=svn
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define KernelPackage/video-uvc-obsolete
25 SUBMENU:=Video Support
26 TITLE:=USB Video Class (UVC) support (obsolete)
27 URL:=http://linux-uvc.berlios.de/
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)/uvcvideo.$(LINUX_KMOD_SUFFIX)
30 AUTOLOAD:=$(call AutoLoad,90,uvcvideo)
31 endef
32
33 define Build/Compile
34 echo "#define DRIVER_VERSION \"SVN $(PKG_VERSION)\"" > "$(PKG_BUILD_DIR)/version.h"
35 $(MAKE) -C $(LINUX_DIR) \
36 ARCH="$(LINUX_KARCH)" \
37 CROSS_COMPILE="$(TARGET_CROSS)" \
38 SUBDIRS="$(PKG_BUILD_DIR)" \
39 modules
40 endef
41
42 $(eval $(call KernelPackage,video-uvc-obsolete))