[adm5120] cleanup memory detection code, fix #2244
[openwrt.git] / package / spca5xx-view / 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: Makefile 7006 2007-04-19 12:06:39Z kaloz $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=spca5xx-view
12 PKG_VERSION:=1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=spca5xx-view.tar.bz2
16 PKG_SOURCE_URL:=http://www.acmesystems.it/download/owrt
17 PKG_MD5SUM:=
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/spca5xx-view
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=spca5xx streaming applicaton
27 DEPENDS:=+kmod-spca5xx-le +libpthread
28 URL:=http://www.acmesystems.it/
29 endef
30
31 define Package/spca5xx-view/description
32 This package contains a streaming daemon for spca5xx based webcams
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR)/servfox/ CFLAGS="$(TARTGET_CFLAGS)" CC="$(TARGET_CC)" all
37 $(MAKE) -C $(PKG_BUILD_DIR)/servfox/ PREFIX="$(PKG_INSTALL_DIR)" install
38 endef
39
40 define Package/spca5xx-view/install
41 $(INSTALL_DIR) $(1)/
42 $(CP) $(PKG_INSTALL_DIR)/* $(1)
43 $(INSTALL_DIR) $(1)/www/
44 $(CP) $(PKG_BUILD_DIR)/html-files/* $(1)/www/
45 $(INSTALL_DIR) $(1)/etc/config
46 $(INSTALL_DATA) ./files/servfox.config $(1)/etc/config/servfox
47 $(INSTALL_DIR) $(1)/etc/init.d
48 $(INSTALL_BIN) ./files/servfox.init $(1)/etc/init.d/servfox
49 endef
50
51 $(eval $(call BuildPackage,spca5xx-view))
This page took 0.054111 seconds and 5 git commands to generate.