set marvell switch ATU ageing time to minimum instead of maximum - hopefully fixes...
[openwrt.git] / package / ov51x-jpeg / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=ov51x-jpeg
13 PKG_VERSION:=1.5.7
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://www.rastageeks.org/downloads/ov51x-jpeg/ \
18 http://www.rastageeks.org/downloads/ov51x-jpeg/old-releases/
19 PKG_MD5SUM:=7de1f426a48bdb55218913e2d713f813
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ov51x-jpeg/Default
24 URL:=http://www.rastageeks.org/ov51x-jpeg/
25 endef
26
27 define Package/ov51x-jpeg-utils
28 $(call Package/ov51x-jpeg/Default)
29 SECTION:=utils
30 CATEGORY:=Utilities
31 TITLE:=OV51x based USB webcam utilities
32 DEPENDS:=+kmod-video-ov51x-jpeg
33 endef
34
35 define Package/ov51x-jpeg-utils/description
36 Utility programs for the video-ov51x kernel module
37 endef
38
39 define KernelPackage/video-ov51x-jpeg
40 $(call Package/ov51x-jpeg/Default)
41 SUBMENU:=Video Support
42 TITLE:=OV51x based USB webcam support (JPEG)
43 DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core kmod-video-core
44 FILES:=$(PKG_BUILD_DIR)/ov51x-jpeg.$(LINUX_KMOD_SUFFIX)
45 AUTOLOAD:=$(call AutoLoad,70,ov51x-jpeg)
46 endef
47
48 define KernelPackage/video-ov51x-jpeg/description
49 Kernel module for OV51x based USB cameras, with in-driver JPEG support.
50 endef
51
52 ifneq ($(CONFIG_PACKAGE_kmod-video-ov51x-jpeg),)
53 define Build/Compile/kmod
54 $(MAKE) -C $(LINUX_DIR) \
55 ARCH="$(LINUX_KARCH)" \
56 CROSS_COMPILE="$(TARGET_CROSS)" \
57 SUBDIRS="$(PKG_BUILD_DIR)" \
58 modules
59 endef
60 endif
61
62 define Build/Compile
63 $(call Build/Compile/kmod)
64 $(MAKE) -C $(PKG_BUILD_DIR)/test \
65 CFLAGS="$(TARGET_CFLAGS)" \
66 CC="$(TARGET_CC)" \
67 getjpeg
68 endef
69
70 define Package/ov51x-jpeg-utils/install
71 $(INSTALL_DIR) $(1)/usr/bin
72 $(INSTALL_BIN) $(PKG_BUILD_DIR)/test/getjpeg $(1)/usr/bin/
73 endef
74
75 $(eval $(call BuildPackage,ov51x-jpeg-utils))
76 $(eval $(call KernelPackage,video-ov51x-jpeg))
This page took 0.04525 seconds and 5 git commands to generate.