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