2008-01-23 10:09:46 +00:00
|
|
|
#
|
2010-07-24 21:40:46 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2007-10-14 05:26:08 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mjpg-streamer
|
2010-12-04 19:58:53 +00:00
|
|
|
PKG_REV:=136
|
2008-03-21 18:26:25 +00:00
|
|
|
PKG_VERSION:=r$(PKG_REV)
|
2010-07-24 21:40:46 +00:00
|
|
|
PKG_RELEASE:=1
|
2007-10-14 05:26:08 +00:00
|
|
|
|
2008-03-21 18:26:25 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer/mjpg-streamer/
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
PKG_SOURCE_PROTO:=svn
|
2007-10-14 05:26:08 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/mjpg-streamer
|
|
|
|
SECTION:=multimedia
|
|
|
|
CATEGORY:=Multimedia
|
|
|
|
TITLE:=MJPG-streamer
|
2010-10-05 23:56:19 +00:00
|
|
|
DEPENDS:=@!LINUX_2_4 +libpthread +libjpeg
|
2009-07-26 11:09:22 +00:00
|
|
|
URL:=http://mjpg-streamer.wiki.sourceforge.net/
|
2007-10-14 05:26:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mjpg-streamer/description
|
2008-03-21 18:26:25 +00:00
|
|
|
Streaming application for Linux-UVC compatible webcams
|
2007-10-14 05:26:08 +00:00
|
|
|
endef
|
|
|
|
|
2009-04-29 12:56:17 +00:00
|
|
|
EXTRA_CFLAGS += $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)
|
2007-10-14 05:26:08 +00:00
|
|
|
|
|
|
|
define Package/mjpg-streamer/install
|
2009-07-26 11:09:22 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mjpg_streamer $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(CP) ./files/mjpg-streamer.config $(1)/etc/config/mjpg-streamer
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2009-07-28 22:17:18 +00:00
|
|
|
$(INSTALL_BIN) ./files/mjpg-streamer.init $(1)/etc/init.d/mjpg-streamer
|
2007-10-14 05:26:08 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-02-08 13:48:04 +00:00
|
|
|
$(CP) $(foreach input_plugin,file uvc gspcav1,$(PKG_BUILD_DIR)/input_$(input_plugin).so) $(1)/usr/lib
|
2008-03-21 18:26:25 +00:00
|
|
|
$(CP) $(foreach output_plugin,http file autofocus,$(PKG_BUILD_DIR)/output_$(output_plugin).so) $(1)/usr/lib
|
2009-07-26 11:09:22 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/usb
|
|
|
|
$(INSTALL_DATA) ./files/mjpg-streamer.hotplug $(1)/etc/hotplug.d/usb/20-mjpg-streamer
|
2007-10-14 05:26:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mjpg-streamer))
|