BUILD_DIR -> KERNEL_BUILD_DIR
[openwrt.git] / package / spca5xx / 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:=spca5xx
13 PKG_VERSION:=20060301
14 PKG_RELEASE:=1
15 PKG_MD5SUM:=4160e03c408ac254111febacf058b88a
16
17 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_URL:=http://mxhaard.free.fr/spca50x/Download/
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_CAT:=zcat
21
22 include $(INCLUDE_DIR)/package.mk
23
24 #FIXME: add proper dependency handling on kmod-usb-core & kmod-videodev packages
25 define Package/kmod-spca5xx
26 SECTION:=drivers
27 CATEGORY:=Drivers
28 DEPENDS:=@PACKAGE_KMOD_USB&&PACKAGE_KMOD_VIDEODEV
29 TITLE:=Driver for SPCA5xx based USB cameras
30 DESCRIPTION:=Driver for SPCA5xx based USB cameras
31 URL:=http://mxhaard.free.fr/
32 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(LINUX_DIR) \
37 ARCH="$(LINUX_KARCH)" \
38 CROSS_COMPILE="$(TARGET_CROSS)" \
39 KERNELVERSION="$(KERNEL)" \
40 SUBDIRS="$(PKG_BUILD_DIR)" \
41 modules
42 endef
43
44 define Package/kmod-spca5xx/install
45 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
46 $(CP) $(PKG_BUILD_DIR)/spca5xx.$(LINUX_KMOD_SUFFIX) \
47 $(1)/lib/modules/$(LINUX_VERSION)/
48 endef
49
50 $(eval $(call BuildPackage,kmod-spca5xx))
This page took 0.045049 seconds and 5 git commands to generate.