2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 7006 2007-04-19 12:06:39Z kaloz $
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=spca5xx-view
15 PKG_SOURCE
:=spca5xx-view.
tar.bz2
16 PKG_SOURCE_URL
:=http
://www.acmesystems.it
/download
/owrt
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/spca5xx-view
26 TITLE
:=spca5xx streaming applicaton
27 DEPENDS
:=+kmod-video-spca5xx-le
+libpthread
28 URL
:=http
://www.acmesystems.it
/
31 define Package
/spca5xx-view
/description
32 This package contains a streaming daemon for spca5xx based webcams
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
40 define Package
/spca5xx-view
/install
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
51 $(eval
$(call BuildPackage
,spca5xx-view
))