PKG_NAME:=mjpg-streamer
PKG_REV:=182
PKG_VERSION:=r$(PKG_REV)
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).1.tar.bz2
include $(INCLUDE_DIR)/package.mk
+PKG_BUILD_DEPENDS:=MJPG_STREAMER_V4L2:libv4l
+
define Package/mjpg-streamer
SECTION:=multimedia
CATEGORY:=Multimedia
TITLE:=MJPG-streamer
- DEPENDS:=+libpthread +libjpeg
- ifeq ($(CONFIG_MJPG_STREAMER_V4L2),y)
- DEPENDS+=+libv4l
- endif
+ DEPENDS:=+libpthread +libjpeg +PACKAGE_libv4l:libv4l
URL:=http://mjpg-streamer.wiki.sourceforge.net/
MENU:=1
endef
#!/bin/sh /etc/rc.common
-# Copyright (C) 2009-2013 OpenWrt.org
+# Copyright (C) 2009-2014 OpenWrt.org
START=90
STOP=10
config_get resolution "$s" 'resolution'
[ -n "$resolution" ] && input_arg="${input_arg} --resolution $resolution"
+
+ config_get led "$s" 'led'
+ [ -n "$led" ] && input_arg="${input_arg} --led $led"
fi
if [ -z "$input_arg" ]; then