if PACKAGE_mjpg-streamer
+config MJPG_STREAMER_V4L2
+ bool "Compile input_uvc with libv4l2 (camera controls)"
+ depends on PACKAGE_libv4l
+ default n
+
config MJPG_STREAMER_INPUT_FILE
- bool "Install input file library"
- default y
+ bool "Install input file plugin"
+ default n
config MJPG_STREAMER_INPUT_UVC
- bool "Install input uvc library"
+ bool "Install input uvc plugin"
default y
+config MJPG_STREAMER_INPUT_TESTPICTURE
+ bool "Install input testpicture plugin"
+ default n
+
config MJPG_STREAMER_OUTPUT_FILE
- bool "Install output file library"
- default y
+ bool "Install output file plugin"
+ default n
config MJPG_STREAMER_OUTPUT_HTTP
- bool "Install output http library"
+ bool "Install output http plugin"
default y
config MJPG_STREAMER_WWW
- bool "Install WWW files"
+ bool "Install Web UI files (includes cambozola)"
default y
endif
#
-# Copyright (C) 2006-2013 OpenWrt.org
+# Copyright (C) 2006-2014 OpenWrt.org
#
# 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
-PKG_REV:=181
+PKG_REV:=182
PKG_VERSION:=r$(PKG_REV)
PKG_RELEASE:=1
PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_SOURCE_PROTO:=svn
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILE:=LICENSE
+
include $(INCLUDE_DIR)/package.mk
define Package/mjpg-streamer
SECTION:=multimedia
CATEGORY:=Multimedia
TITLE:=MJPG-streamer
- DEPENDS:=+libpthread +libjpeg
+ DEPENDS:=+libpthread +libjpeg +PACKAGE_libv4l:libv4l
+#$(if $(CONFIG_MJPG_STREAMER_V4L2),+libv4l)
URL:=http://mjpg-streamer.wiki.sourceforge.net/
MENU:=1
endef
/etc/config/mjpg-streamer
endef
+CAMBOZOLA:=cambozola-latest.tar.gz
+
+define Download/cambozola
+ URL:=http://www.andywilcock.com/code/cambozola
+ FILE:=$(CAMBOZOLA)
+ MD5SUM:=6c48fd994685d4d72668850eeb613e24
+endef
+
+# Fetch latest cambozola that works with latest Java(s)
+# Yes, I know this is ugly
+define Build/Prepare
+ $(call Build/Prepare/Default)
+ ifeq ($(CONFIG_MJPG_STREAMER_WWW),y)
+ $(eval $(call Download,cambozola))
+ $(TAR) -xvf $(DL_DIR)/$(CAMBOZOLA) --strip=2 --wildcards \
+ -C $(PKG_BUILD_DIR)/www */dist/cambozola.jar
+ endif
+endef
+
+ifeq ($(CONFIG_MJPG_STREAMER_V4L2),y)
+ TARGET_CFLAGS+= -DUSE_LIBV4L2
+ TARGET_LDFLAGS+= -lv4l2
+endif
+
define Package/mjpg-streamer/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mjpg_streamer $(1)/usr/bin/
ifeq ($(CONFIG_MJPG_STREAMER_INPUT_UVC),y)
$(CP) $(PKG_BUILD_DIR)/input_uvc.so $(1)/usr/lib
endif
+ifeq ($(CONFIG_MJPG_STREAMER_INPUT_TESTPICTURE),y)
+ $(CP) $(PKG_BUILD_DIR)/input_testpicture.so $(1)/usr/lib
+endif
ifeq ($(CONFIG_MJPG_STREAMER_OUTPUT_FILE),y)
$(CP) $(PKG_BUILD_DIR)/output_file.so $(1)/usr/lib
endif
--- /dev/null
+--- a/Makefile
++++ b/Makefile
+@@ -33,12 +33,12 @@ APP_BINARY = mjpg_streamer
+
+ # define the names and targets of the plugins
+ PLUGINS = input_uvc.so
+-#PLUGINS += output_file.so
++PLUGINS += output_file.so
+ #PLUGINS += output_udp.so
+ PLUGINS += output_http.so
+ PLUGINS += input_testpicture.so
+ #PLUGINS += output_autofocus.so
+-#PLUGINS += input_file.so
++PLUGINS += input_file.so
+ # PLUGINS += input_pylon.so
+ # PLUGINS += input_megatec.so
+ # PLUGINS += output_mars2020.so