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