Ticket #2513: mjpg-streamer-1.patch

File mjpg-streamer-1.patch, 2.0 KB (added by anonymous, 9 years ago)
  • package/mjpg-streamer

    diff -Nur package/mjpg-streamer.old/Makefile package/mjpg-streamer/Makefile
    old new  
     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 
     9include $(TOPDIR)/rules.mk 
     10 
     11PKG_NAME:=mjpg-streamer 
     12PKG_VERSION:=2 
     13PKG_RELEASE:=1 
     14 
     15PKG_SOURCE:=mjpg_streamer_2007_10_12.tgz 
     16PKG_SOURCE_URL:=http://naaa.de/programme/mjpg-streamer/ 
     17PKG_MD5SUM:=fd1159498a8648d30dfead3e6569ab54 
     18 
     19PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 
     20 
     21include $(INCLUDE_DIR)/package.mk 
     22 
     23define Package/mjpg-streamer 
     24  SECTION:=multimedia 
     25  CATEGORY:=Multimedia 
     26  TITLE:=MJPG-streamer 
     27  DEPENDS:=@LINUX_2_6 +libpthread 
     28  DESCRIPTION:=streaming application for Linux-UVC compatible webcams 
     29  URL:=http://www.naaa.de/uvc_streamer.htm 
     30endef 
     31 
     32MAKE_FLAGS += \ 
     33        -C $(PKG_BUILD_DIR) \ 
     34        CFLAGS="$(TARGET_CFLAGS)" \ 
     35        CC="$(TARGET_CC)" \ 
     36        all 
     37 
     38define Package/mjpg-streamer/install 
     39        $(INSTALL_DIR) $(1)/sbin 
     40        $(INSTALL_BIN) $(PKG_BUILD_DIR)/mjpg_streamer $(1)/sbin 
     41        $(INSTALL_DIR) $(1)/usr/lib 
     42        $(INSTALL_BIN) $(PKG_BUILD_DIR)/input_uvc.so $(1)/usr/lib 
     43        $(INSTALL_BIN) $(PKG_BUILD_DIR)/output_http.so $(1)/usr/lib 
     44        $(INSTALL_BIN) $(PKG_BUILD_DIR)/output_file.so $(1)/usr/lib 
     45        $(INSTALL_DIR) $(1)/webcam_www 
     46        $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/cambozola.jar $(1)/webcam_www 
     47        $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/control.htm $(1)/webcam_www 
     48        $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/favicon.ico $(1)/webcam_www 
     49        $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/functions.js $(1)/webcam_www 
     50        $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/index.html $(1)/webcam_www 
     51        $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/java.html $(1)/webcam_www 
     52        $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/LICENSE.txt $(1)/webcam_www 
     53        $(INSTALL_DATA) $(PKG_BUILD_DIR)/www/stream.html $(1)/webcam_www 
     54endef 
     55 
     56$(eval $(call BuildPackage,mjpg-streamer))