2 # Copyright (C) 2006 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:=@SF/qce-ga
18 PKG_MD5SUM:=6f6787e1dda11ca3b936ad434154f426
20 include $(INCLUDE_DIR)/package.mk
22 define Package/qc-usb/Default
23 URL:=http://qce-ga.sourceforge.net/
26 define Package/qc-usb-utils
27 $(call Package/qc-usb/Default)
30 TITLE:=Utility programs for the qc-usb kernel module
33 define Package/qc-usb-utils/description
34 Utilities to tweak parameters of your QuickCam Express or similar webcam.
35 These programs are completely useless without a qc-usb-modules package.
38 define KernelPackage/video-quickcam
39 $(call Package/qc-usb/Default)
40 SUBMENU:=Video Support
41 TITLE:=QuickCam Express USB webcam support
42 DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core kmod-video-core
43 FILES:=$(PKG_BUILD_DIR)/quickcam.$(LINUX_KMOD_SUFFIX)
44 AUTOLOAD:=$(call AutoLoad,90,quickcam)
47 define KernelPackage/video-quickcam/description
48 Kernel support for Logitech's QuickCam Express webcam and other webcams
49 with similar chipsets.
52 ifneq ($(CONFIG_PACKAGE_kmod-video-quickcam),)
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) \
65 CFLAGS="$(TARGET_CFLAGS)" \
69 define Package/qc-usb-utils/install
70 $(INSTALL_DIR) $(1)/usr/bin
71 $(INSTALL_BIN) $(PKG_BUILD_DIR)/qcset $(1)/usr/bin/
74 $(eval $(call BuildPackage,qc-usb-utils))
75 $(eval $(call KernelPackage,video-quickcam))