source: packages/multimedia/qc-usb/Makefile @ 12464

Last change on this file since 12464 was 12464, checked in by nico, 8 years ago

Well, another round fixing dependencies on kmod-video-core -- this is the last i promise ;) sounds like it's time to get some sleep after all...

File size: 2.3 KB
Line 
1#
2# Copyright (C) 2006-2008 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
9include $(TOPDIR)/rules.mk
10include $(INCLUDE_DIR)/kernel.mk
11
12PKG_NAME:=qc-usb
13PKG_VERSION:=0.6.6
14PKG_RELEASE:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17PKG_SOURCE_URL:=@SF/qce-ga
18PKG_MD5SUM:=9eab8fb3a75326d1565d59b0c7256075
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/qc-usb/Default
23  URL:=http://qce-ga.sourceforge.net/
24endef
25
26define 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
31endef
32
33define 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.
36endef
37
38define KernelPackage/video-quickcam
39$(call Package/qc-usb/Default)
40  SUBMENU:=Video Support
41  TITLE:=QuickCam Express USB webcam support
42  DEPENDS:=@USB_SUPPORT +kmod-usb-core +kmod-video-core
43  FILES:=$(PKG_BUILD_DIR)/quickcam.$(LINUX_KMOD_SUFFIX)
44  AUTOLOAD:=$(call AutoLoad,90,quickcam)
45endef
46
47define KernelPackage/video-quickcam/description
48 Kernel support for Logitech's QuickCam Express webcam and other webcams
49 with similar chipsets.
50endef
51
52ifeq ($(KERNEL),2.4)
53  ifeq ($(LINUX_KARCH),i386)
54    KERNEL_C_OPTS:= -Os -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time
55  endif
56  ifeq ($(LINUX_KARCH),mips)
57    KERNEL_C_OPTS:= -Os -G 0 -mlong-calls -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap
58  endif
59endif
60
61ifneq ($(CONFIG_PACKAGE_kmod-video-quickcam),)
62  define Build/Compile/kmod
63        $(MAKE) -C $(PKG_BUILD_DIR) \
64                LINUX_DIR="$(LINUX_DIR)" \
65                ARCH="$(LINUX_KARCH)" \
66                CROSS_COMPILE="$(TARGET_CROSS)" \
67                CC="$(TARGET_CC)" \
68                LD="$(TARGET_CC) -nodefaultlibs -nostartfiles" \
69                USER_OPT="$(KERNEL_C_OPTS)" \
70                quickcam.$(LINUX_KMOD_SUFFIX)
71  endef
72endif
73
74define Build/Compile/user
75        $(MAKE) -C $(PKG_BUILD_DIR) \
76                CFLAGS="$(TARGET_CFLAGS)" \
77                qcset
78endef
79
80define Build/Compile
81        $(call Build/Compile/kmod)
82        $(call Build/Compile/user)
83endef
84
85define Package/qc-usb-utils/install
86        $(INSTALL_DIR) $(1)/usr/bin
87        $(INSTALL_BIN) $(PKG_BUILD_DIR)/qcset $(1)/usr/bin/
88endef
89
90$(eval $(call BuildPackage,qc-usb-utils))
91$(eval $(call KernelPackage,video-quickcam))
Note: See TracBrowser for help on using the repository browser.