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