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-spca5xx-le
+libpthread
29 This package contains a streaming daemon for spca5xx based webcams
30 URL
:=http
://www.acmesystems.it
34 $(MAKE
) -C
$(PKG_BUILD_DIR
)/servfox
/ CFLAGS
=$(TARTGET_CFLAGS
) CC
=$(TARGET_CC
) all
35 $(MAKE
) -C
$(PKG_BUILD_DIR
)/servfox
/ PREFIX
="$(PKG_INSTALL_DIR)" install
38 define Package
/spca5xx-view
/install
40 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)
41 $(INSTALL_DIR
) $(1)/www
/
42 $(CP
) $(PKG_BUILD_DIR
)/html-files
/* $(1)/www
/
43 $(INSTALL_DIR
) $(1)/etc
/config
44 $(INSTALL_DATA
) .
/files
/servfox.config
$(1)/etc
/config
/servfox
45 $(INSTALL_DIR
) $(1)/etc
/init.d
46 $(INSTALL_BIN
) .
/files
/servfox.init
$(1)/etc
/init.d
/servfox
49 $(eval
$(call BuildPackage
,spca5xx-view
))