source: packages/multimedia/mjpg-streamer/Makefile @ 29175

Last change on this file since 29175 was 29175, checked in by nico, 5 years ago

packages/mpjpg-streamer: use new service functions

  • Property copyright set to Copyright (C) 2007-2008 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1#
2# Copyright (C) 2006-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=mjpg-streamer
11PKG_REV:=148
12PKG_VERSION:=r$(PKG_REV)
13PKG_RELEASE:=2
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16PKG_SOURCE_URL:=https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer/mjpg-streamer/
17PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18PKG_SOURCE_VERSION:=$(PKG_REV)
19PKG_SOURCE_PROTO:=svn
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/mjpg-streamer
24  SECTION:=multimedia
25  CATEGORY:=Multimedia
26  TITLE:=MJPG-streamer
27  DEPENDS:=+libpthread +libjpeg
28  URL:=http://mjpg-streamer.wiki.sourceforge.net/
29endef
30
31define Package/mjpg-streamer/description
32        Streaming application for Linux-UVC compatible webcams
33endef
34
35EXTRA_CFLAGS += $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)
36
37define Package/mjpg-streamer/install
38        $(INSTALL_DIR) $(1)/usr/bin
39        $(INSTALL_BIN) $(PKG_BUILD_DIR)/mjpg_streamer $(1)/usr/bin/
40        $(INSTALL_DIR) $(1)/etc/config
41        $(CP) ./files/mjpg-streamer.config $(1)/etc/config/mjpg-streamer
42        $(INSTALL_DIR) $(1)/etc/init.d
43        $(INSTALL_BIN) ./files/mjpg-streamer.init $(1)/etc/init.d/mjpg-streamer
44        $(INSTALL_DIR) $(1)/usr/lib
45        $(CP) $(foreach input_plugin,file uvc,$(PKG_BUILD_DIR)/input_$(input_plugin).so) $(1)/usr/lib
46        $(CP) $(foreach output_plugin,http file,$(PKG_BUILD_DIR)/output_$(output_plugin).so) $(1)/usr/lib
47        $(INSTALL_DIR) $(1)/etc/hotplug.d/usb
48        $(INSTALL_DATA) ./files/mjpg-streamer.hotplug $(1)/etc/hotplug.d/usb/20-mjpg-streamer
49endef
50
51$(eval $(call BuildPackage,mjpg-streamer))
Note: See TracBrowser for help on using the repository browser.