packages/scpa5xx-view: use lowercase config option, use new service functions
[openwrt/svn-archive/archive.git] / multimedia / spca5xx-view / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=spca5xx-view
11 PKG_VERSION:=1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=spca5xx-view.tar.bz2
15 PKG_SOURCE_URL:=http://www.acmesystems.it/download/owrt
16 PKG_MD5SUM:=113357f8fbc3b994424ae37644529d55
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/spca5xx-view
23 SECTION:=utils
24 CATEGORY:=Utilities
25 TITLE:=spca5xx streaming applicaton
26 DEPENDS:=+kmod-video-spca5xx-le +libpthread
27 URL:=http://www.acmesystems.it/
28 endef
29
30 define Package/spca5xx-view/description
31 This package contains a streaming daemon for spca5xx based webcams
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR)/servfox/ CFLAGS="$(TARTGET_CFLAGS)" CC="$(TARGET_CC)" all
36 $(MAKE) -C $(PKG_BUILD_DIR)/servfox/ PREFIX="$(PKG_INSTALL_DIR)" install
37 endef
38
39 define Package/spca5xx-view/install
40 $(INSTALL_DIR) $(1)/
41 $(CP) $(PKG_INSTALL_DIR)/* $(1)
42 $(INSTALL_DIR) $(1)/www/
43 $(CP) $(PKG_BUILD_DIR)/html-files/* $(1)/www/
44 $(INSTALL_DIR) $(1)/etc/config
45 $(INSTALL_DATA) ./files/servfox.config $(1)/etc/config/servfox
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) ./files/servfox.init $(1)/etc/init.d/servfox
48 endef
49
50 $(eval $(call BuildPackage,spca5xx-view))