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
28 TITLE
:=Utility programs for the qc-usb kernel module
30 Utilities to tweak parameters of your QuickCam Express or
\\\
31 similar webcam. These programs are completely useless without a
\\\
32 qc-usb-modules package.
33 URL
:=http
://qce-ga.sourceforge.net
/
36 define KernelPackage
/usb-qc
37 TITLE
:=Support for USB QuickCam Express webcam
39 Kernel support for Logitech
's QuickCam Express webcam and \\\
40 other webcams with similar chipsets.
42 DEPENDS:=@LINUX_2_6 @USB_SUPPORT @VIDEO_SUPPORT kmod-usb-core +kmod-videodev
43 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
44 FILES:=$(PKG_BUILD_DIR)/quickcam.$(LINUX_KMOD_SUFFIX)
45 AUTOLOAD:=$(call AutoLoad,90,quickcam)
48 ifneq ($(CONFIG_PACKAGE_kmod-usb-qc),)
49 define Build/Compile/kmod
50 $(MAKE) -C $(LINUX_DIR) \
51 PATH="$(TARGET_PATH)" \
52 KVER="$(LINUX_VERSION)" \
53 KERNELRELEASE="$(LINUX_VERSION)" \
55 SUBDIRS="$(PKG_BUILD_DIR)" \
56 KERNEL_DIR="$(KERNEL_DIR)" \
57 ARCH="$(LINUX_KARCH)" \
58 CROSS_COMPILE="$(TARGET_CROSS)" \
64 $(call Build/Compile/kmod)
66 $(MAKE) -C $(PKG_BUILD_DIR) \
67 CFLAGS="$(TARGET_CFLAGS)" \
71 define Package/qc-usb-utils/install
72 $(INSTALL_DIR) $(1)/usr/bin
73 $(INSTALL_BIN) $(PKG_BUILD_DIR)/qcset $(1)/usr/bin/
76 $(eval $(call BuildPackage,qc-usb-utils))
77 $(eval $(call KernelPackage,usb-qc))