[package] update mjpg-streamer to r94 (#7491)
[openwrt/svn-archive/archive.git] / multimedia / mjpg-streamer / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mjpg-streamer
11 PKG_REV:=94
12 PKG_VERSION:=r$(PKG_REV)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer/mjpg-streamer/
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_PROTO:=svn
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://mjpg-streamer.wiki.sourceforge.net/
29 endef
30
31 define Package/mjpg-streamer/description
32 Streaming application for Linux-UVC compatible webcams
33 endef
34
35 EXTRA_CFLAGS += $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)
36
37 define 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 gspcav1,$(PKG_BUILD_DIR)/input_$(input_plugin).so) $(1)/usr/lib
46 $(CP) $(foreach output_plugin,http file autofocus,$(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
49 endef
50
51 $(eval $(call BuildPackage,mjpg-streamer))