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