2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
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
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/ov51x-jpeg
/Default
24 URL
:=http
://www.rastageeks.org
/ov51x-jpeg
/
27 define Package
/ov51x-jpeg-utils
28 $(call Package
/ov51x-jpeg
/Default
)
31 TITLE
:=OV51x based USB webcam utilities
32 DEPENDS
:=+kmod-video-ov51x-jpeg
35 define Package
/ov51x-jpeg-utils
/description
36 Utility programs for the video-ov51x kernel module
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
)
48 define KernelPackage
/video-ov51x-jpeg
/description
49 Kernel module for OV51x based USB cameras
, with in-driver JPEG support.
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)" \
63 $(call Build
/Compile
/kmod
)
64 $(MAKE
) -C
$(PKG_BUILD_DIR
)/test \
65 CFLAGS
="$(TARGET_CFLAGS)" \
70 define Package
/ov51x-jpeg-utils
/install
71 $(INSTALL_DIR
) $(1)/usr
/bin
72 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/test/getjpeg
$(1)/usr
/bin
/
75 $(eval
$(call BuildPackage
,ov51x-jpeg-utils
))
76 $(eval
$(call KernelPackage
,video-ov51x-jpeg
))