@ -1,5 +1,5 @@
#
#
# Copyright (C) 2006-2013 OpenWrt.org
# Copyright (C) 2006-2014 OpenWrt.org
#
#
# This is free software, licensed under the GNU General Public License v2.
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# See /LICENSE for more information.
@ -8,7 +8,7 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := mjpg-streamer
PKG_NAME := mjpg-streamer
PKG_REV := 181
PKG_REV := 182
PKG_VERSION := r$( PKG_REV)
PKG_VERSION := r$( PKG_REV)
PKG_RELEASE := 1
PKG_RELEASE := 1
PKG_MAINTAINER := Roger D <rogerdammit@gmail.com>
PKG_MAINTAINER := Roger D <rogerdammit@gmail.com>
@ -19,13 +19,17 @@ PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION := $( PKG_REV)
PKG_SOURCE_VERSION := $( PKG_REV)
PKG_SOURCE_PROTO := svn
PKG_SOURCE_PROTO := svn
PKG_LICENSE := GPL-2.0
PKG_LICENSE_FILE := LICENSE
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / m j p g - s t r e a m e r
d e f i n e P a c k a g e / m j p g - s t r e a m e r
SECTION:= multimedia
SECTION:= multimedia
CATEGORY:= Multimedia
CATEGORY:= Multimedia
TITLE:= MJPG-streamer
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/
URL:= http://mjpg-streamer.wiki.sourceforge.net/
MENU:= 1
MENU:= 1
e n d e f
e n d e f
@ -44,6 +48,30 @@ define Package/mjpg-streamer/conffiles
/ e t c / c o n f i g / m j p g - s t r e a m e r
/ e t c / c o n f i g / m j p g - s t r e a m e r
e n d e f
e n d e f
CAMBOZOLA := cambozola-latest.tar.gz
d e f i n e D o w n l o a d / c a m b o z o l a
URL:= http://www.andywilcock.com/code/cambozola
FILE:= $( CAMBOZOLA)
MD5SUM:= 6c48fd994685d4d72668850eeb613e24
e n d e f
# Fetch latest cambozola that works with latest Java(s)
# Yes, I know this is ugly
d e f i n e B u i l d / P r e p a r e
$( 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
e n d e f
i f e q ( $( CONFIG_MJPG_STREAMER_V 4L 2) , y )
TARGET_CFLAGS += -DUSE_LIBV4L2
TARGET_LDFLAGS += -lv4l2
e n d i f
d e f i n e P a c k a g e / m j p g - s t r e a m e r / i n s t a l l
d e f i n e P a c k a g e / m j p g - s t r e a m e r / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /mjpg_streamer $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_BUILD_DIR) /mjpg_streamer $( 1) /usr/bin/
@ -60,6 +88,9 @@ endif
i f e q ( $( CONFIG_MJPG_STREAMER_INPUT_UVC ) , y )
i f e q ( $( CONFIG_MJPG_STREAMER_INPUT_UVC ) , y )
$( CP) $( PKG_BUILD_DIR) /input_uvc.so $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /input_uvc.so $( 1) /usr/lib
e n d i f
e n d i f
i f e q ( $( CONFIG_MJPG_STREAMER_INPUT_TESTPICTURE ) , y )
$( CP) $( PKG_BUILD_DIR) /input_testpicture.so $( 1) /usr/lib
e n d i f
i f e q ( $( CONFIG_MJPG_STREAMER_OUTPUT_FILE ) , y )
i f e q ( $( CONFIG_MJPG_STREAMER_OUTPUT_FILE ) , y )
$( CP) $( PKG_BUILD_DIR) /output_file.so $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /output_file.so $( 1) /usr/lib
e n d i f
e n d i f