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_BUILD_DIR:=$(KERNEL_BUILD_DIR)/qc-usb-$(PKG_VERSION)
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_SOURCE_URL:=@SF/qce-ga
19 PKG_MD5SUM:=6f6787e1dda11ca3b936ad434154f426
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/kernel.mk
25 define Package/qc-usb-utils/Default
26 TITLE:=Utility programs for the qc-usb kernel module
28 Utilities to tweak paramters of your QuickCam Express or \\\
29 similar webcam. These programs are completely useless without a \\\
30 qc-usb-modules package.
31 URL:=http://qce-ga.sourceforge.net/
34 define Package/qc-usb-utils
37 $(call Package/qc-usb-utils/Default)
40 define KernelPackage/qc-usb
41 TITLE:=Support for USB QuickCam Express webcam
43 Kernel support for Logitech's QuickCam Express webcam and \\\
44 other webcams with similar chipsets.
47 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
48 FILES:=$(PKG_BUILD_DIR)/quickcam.$(LINUX_KMOD_SUFFIX)
49 AUTOLOAD:=$(call AutoLoad,70,quickcam)
52 ifeq ($(CONFIG_LINUX_2_6),y)
53 define Build/Compile/linux26
54 $(MAKE) -C $(LINUX_DIR) \
55 PATH="$(TARGET_PATH)" \
56 KVER="$(LINUX_VERSION)" \
57 KERNELRELEASE="$(LINUX_VERSION)" \
59 SUBDIRS="$(PKG_BUILD_DIR)" \
60 KERNEL_DIR="$(KERNEL_DIR)" \
61 ARCH="$(LINUX_KARCH)" \
62 CROSS_COMPILE="$(TARGET_CROSS)" \
68 $(call Build/Compile/linux26)
70 $(MAKE) -C $(PKG_BUILD_DIR) \
71 CFLAGS="$(TARGET_CFLAGS)" \
75 define Package/qc-usb-utils/install
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(INSTALL_BIN) $(PKG_BUILD_DIR)/qcset $(1)/usr/bin
80 $(eval $(call BuildPackage,qc-usb-utils))
81 $(eval $(call KernelPackage,qc-usb))