Merge branch 'openssl'
[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 # XXX: remove @!TARGET_* later when we have USB support properly detected on all targets
40 define KernelPackage/video-ov51x-jpeg
41 $(call Package/ov51x-jpeg/Default)
42 SUBMENU:=Video Support
43 TITLE:=OV51x based USB webcam support (JPEG)
44 DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core kmod-video-core @!TARGET_atheros @!TARGET_uml
45 FILES:=$(PKG_BUILD_DIR)/ov51x-jpeg.$(LINUX_KMOD_SUFFIX)
46 AUTOLOAD:=$(call AutoLoad,70,ov51x-jpeg)
47 endef
48
49 define KernelPackage/video-ov51x-jpeg/description
50 Kernel module for OV51x based USB cameras, with in-driver JPEG support.
51 endef
52
53 ifneq ($(CONFIG_PACKAGE_kmod-video-ov51x-jpeg),)
54 define Build/Compile/kmod
55 $(MAKE) -C $(LINUX_DIR) \
56 ARCH="$(LINUX_KARCH)" \
57 CROSS_COMPILE="$(TARGET_CROSS)" \
58 SUBDIRS="$(PKG_BUILD_DIR)" \
59 modules
60 endef
61 endif
62
63 define Build/Compile
64 $(call Build/Compile/kmod)
65 $(MAKE) -C $(PKG_BUILD_DIR)/test \
66 CFLAGS="$(TARGET_CFLAGS)" \
67 CC="$(TARGET_CC)" \
68 getjpeg
69 endef
70
71 define Package/ov51x-jpeg-utils/install
72 $(INSTALL_DIR) $(1)/usr/bin
73 $(INSTALL_BIN) $(PKG_BUILD_DIR)/test/getjpeg $(1)/usr/bin/
74 endef
75
76 $(eval $(call BuildPackage,ov51x-jpeg-utils))
77 $(eval $(call KernelPackage,video-ov51x-jpeg))
This page took 0.050635 seconds and 5 git commands to generate.