strip the kernel version suffix from target directories, except for brcm-2.4 (the...
[openwrt.git] / package / qc-usb / Makefile
1 #
2 # Copyright (C) 2006 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:=qc-usb
13 PKG_VERSION:=0.6.5
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/qce-ga
18 PKG_MD5SUM:=6f6787e1dda11ca3b936ad434154f426
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/qc-usb-utils
23 SECTION:=utils
24 CATEGORY:=Utilities
25 TITLE:=Utility programs for the qc-usb kernel module
26 DESCRIPTION:=\
27 Utilities to tweak parameters of your QuickCam Express or \\\
28 similar webcam. These programs are completely useless without a \\\
29 qc-usb-modules package.
30 URL:=http://qce-ga.sourceforge.net/
31 endef
32
33 define KernelPackage/usb-qc
34 TITLE:=Support for USB QuickCam Express webcam
35 DESCRIPTION:=\
36 Kernel support for Logitech's QuickCam Express webcam and \\\
37 other webcams with similar chipsets.
38 SUBMENU:=USB Support
39 DEPENDS:=@LINUX_2_6 @USB_SUPPORT kmod-usb-core +kmod-videodev
40 FILES:=$(PKG_BUILD_DIR)/quickcam.$(LINUX_KMOD_SUFFIX)
41 AUTOLOAD:=$(call AutoLoad,90,quickcam)
42 endef
43
44 ifneq ($(CONFIG_PACKAGE_kmod-usb-qc),)
45 define Build/Compile/kmod
46 $(MAKE) -C $(LINUX_DIR) \
47 PATH="$(TARGET_PATH)" \
48 KVER="$(LINUX_VERSION)" \
49 KERNELRELEASE="$(LINUX_VERSION)" \
50 KSRC="$(LINUX_DIR)" \
51 SUBDIRS="$(PKG_BUILD_DIR)" \
52 KERNEL_DIR="$(KERNEL_DIR)" \
53 ARCH="$(LINUX_KARCH)" \
54 CROSS_COMPILE="$(TARGET_CROSS)" \
55 modules
56 endef
57 endif
58
59 define Build/Compile
60 $(call Build/Compile/kmod)
61
62 $(MAKE) -C $(PKG_BUILD_DIR) \
63 CFLAGS="$(TARGET_CFLAGS)" \
64 qcset
65 endef
66
67 define Package/qc-usb-utils/install
68 $(INSTALL_DIR) $(1)/usr/bin
69 $(INSTALL_BIN) $(PKG_BUILD_DIR)/qcset $(1)/usr/bin/
70 endef
71
72 $(eval $(call BuildPackage,qc-usb-utils))
73 $(eval $(call KernelPackage,usb-qc))
This page took 0.038981 seconds and 5 git commands to generate.