Upgrade mjpg-streamer to revision 35
[openwrt/svn-archive/archive.git] / multimedia / mjpg-streamer / Makefile
1 #
2 # Copyright (C) 2007 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$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mjpg-streamer
12 PKG_VERSION:=rev35
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=mjpg_streamer_$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=2a41d65eff5977e0d7823d2d12f385c9
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/mjpg-streamer
24 SECTION:=multimedia
25 CATEGORY:=Multimedia
26 TITLE:=MJPG-streamer
27 DEPENDS:=@LINUX_2_6 +libpthread +libjpeg
28 URL:=http://www.naaa.de/uvc_streamer.htm
29 endef
30
31 define Package/mjpg-streamer/description
32 streaming application for Linux-UVC compatible webcams
33 endef
34
35 EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
36 define Build/Compile
37 $(call Build/Compile/Default)
38 endef
39
40 define Package/mjpg-streamer/install
41 $(INSTALL_DIR) $(1)/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mjpg_streamer $(1)/sbin
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/input_uvc.so $(1)/usr/lib
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/output_http.so $(1)/usr/lib
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/output_file.so $(1)/usr/lib
47 $(INSTALL_DIR) $(1)/webcam_www
48 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/bodybg.gif $(1)/webcam_www
49 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/cambozola.jar $(1)/webcam_www
50 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/control.htm $(1)/webcam_www
51 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/example.jpg $(1)/webcam_www
52 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/favicon.ico $(1)/webcam_www
53 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/fix.css $(1)/webcam_www
54 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/functions.js $(1)/webcam_www
55 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/index.html $(1)/webcam_www
56 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/java.html $(1)/webcam_www
57 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/javascript.html $(1)/webcam_www
58 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/javascript_simple.html $(1)/webcam_www
59 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/java_simple.html $(1)/webcam_www
60 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/LICENSE.txt $(1)/webcam_www
61 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/sidebarbg.gif $(1)/webcam_www
62 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/static.html $(1)/webcam_www
63 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/static_simple.html $(1)/webcam_www
64 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/stream.html $(1)/webcam_www
65 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/stream_simple.html $(1)/webcam_www
66 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/style.css $(1)/webcam_www
67 endef
68
69 $(eval $(call BuildPackage,mjpg-streamer))