remove PKG_CAT from packages
[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:=2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=mjpg_streamer_2007_10_12.tgz
16 PKG_SOURCE_URL:=http://naaa.de/programme/mjpg-streamer/
17 PKG_MD5SUM:=fd1159498a8648d30dfead3e6569ab54
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
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 MAKE_FLAGS += \
36 -C $(PKG_BUILD_DIR) \
37 CFLAGS="$(TARGET_CFLAGS)" \
38 CC="$(TARGET_CC)" \
39 all
40
41 define Package/mjpg-streamer/install
42 $(INSTALL_DIR) $(1)/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mjpg_streamer $(1)/sbin
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/input_uvc.so $(1)/usr/lib
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/output_http.so $(1)/usr/lib
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/output_file.so $(1)/usr/lib
48 $(INSTALL_DIR) $(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/favicon.ico $(1)/webcam_www
52 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/functions.js $(1)/webcam_www
53 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/index.html $(1)/webcam_www
54 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/java.html $(1)/webcam_www
55 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/LICENSE.txt $(1)/webcam_www
56 $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/stream.html $(1)/webcam_www
57 endef
58
59 $(eval $(call BuildPackage,mjpg-streamer))