From 071481e626b2ceef944c85999414cbcfa6331006 Mon Sep 17 00:00:00 2001 From: Ted Hess Date: Tue, 29 Jul 2014 09:29:55 -0400 Subject: [PATCH] mjpg-streamer: Upgrade to r182-experimental, add patches to remove debug, build additional plugins and minor fixes. Signed-off-by: Ted Hess --- multimedia/mjpg-streamer/Makefile | 7 ++-- .../010-enable_additional_plugins.patch | 17 ++++++++++ .../020-remove_gcc_debug_options.patch | 33 +++++++++++++++++++ .../030-allow_16_char_device_names.patch | 11 +++++++ 4 files changed, 64 insertions(+), 4 deletions(-) create mode 100644 multimedia/mjpg-streamer/patches/010-enable_additional_plugins.patch create mode 100644 multimedia/mjpg-streamer/patches/020-remove_gcc_debug_options.patch create mode 100644 multimedia/mjpg-streamer/patches/030-allow_16_char_device_names.patch diff --git a/multimedia/mjpg-streamer/Makefile b/multimedia/mjpg-streamer/Makefile index 290050715e..36d1786e8e 100644 --- a/multimedia/mjpg-streamer/Makefile +++ b/multimedia/mjpg-streamer/Makefile @@ -8,17 +8,16 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mjpg-streamer -PKG_REV:=181 +PKG_REV:=182 PKG_VERSION:=r$(PKG_REV) -PKG_RELEASE:=2 +PKG_RELEASE:=1 PKG_MAINTAINER:=Roger D PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer +PKG_SOURCE_URL:=https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer-experimental PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_VERSION:=$(PKG_REV) PKG_SOURCE_PROTO:=svn -PKG_MD5SUM:=b2bc22665733319e647ace236e283684 PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILE:=LICENSE diff --git a/multimedia/mjpg-streamer/patches/010-enable_additional_plugins.patch b/multimedia/mjpg-streamer/patches/010-enable_additional_plugins.patch new file mode 100644 index 0000000000..4713a08d13 --- /dev/null +++ b/multimedia/mjpg-streamer/patches/010-enable_additional_plugins.patch @@ -0,0 +1,17 @@ +--- 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 diff --git a/multimedia/mjpg-streamer/patches/020-remove_gcc_debug_options.patch b/multimedia/mjpg-streamer/patches/020-remove_gcc_debug_options.patch new file mode 100644 index 0000000000..00d831e09a --- /dev/null +++ b/multimedia/mjpg-streamer/patches/020-remove_gcc_debug_options.patch @@ -0,0 +1,33 @@ +--- a/plugins/input_uvc/Makefile ++++ b/plugins/input_uvc/Makefile +@@ -13,7 +13,7 @@ OTHER_HEADERS = ../../mjpg_streamer.h .. + + CFLAGS += -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC + +-CFLAGS += -g -DDEBUG ++#CFLAGS += -g -DDEBUG + + ifeq ($(USE_LIBV4L2),true) + LFLAGS += -lv4l2 +--- a/plugins/output_file/Makefile ++++ b/plugins/output_file/Makefile +@@ -12,7 +12,7 @@ CC = gcc + OTHER_HEADERS = ../../mjpg_streamer.h ../../utils.h ../output.h ../input.h + + CFLAGS += -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC +-CFLAGS += -DDEBUG -g ++#CFLAGS += -DDEBUG -g + LFLAGS += -lpthread -ldl + + all: output_file.so +--- a/plugins/output_udp/Makefile ++++ b/plugins/output_udp/Makefile +@@ -14,7 +14,7 @@ CC = gcc + OTHER_HEADERS = ../../mjpg_streamer.h ../../utils.h ../output.h ../input.h + + CFLAGS += -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC +-CFLAGS += -DDEBUG ++#CFLAGS += -DDEBUG + LFLAGS += -lpthread -ldl + + all: output_udp.so diff --git a/multimedia/mjpg-streamer/patches/030-allow_16_char_device_names.patch b/multimedia/mjpg-streamer/patches/030-allow_16_char_device_names.patch new file mode 100644 index 0000000000..0f8660ad60 --- /dev/null +++ b/multimedia/mjpg-streamer/patches/030-allow_16_char_device_names.patch @@ -0,0 +1,11 @@ +--- a/plugins/input_uvc/v4l2uvc.c ++++ b/plugins/input_uvc/v4l2uvc.c +@@ -69,7 +69,7 @@ int init_videoIn(struct vdIn *vd, char * + vd->videodevice = (char *) calloc(1, 16 * sizeof(char)); + vd->status = (char *) calloc(1, 100 * sizeof(char)); + vd->pictName = (char *) calloc(1, 80 * sizeof(char)); +- snprintf(vd->videodevice, 12, "%s", device); ++ snprintf(vd->videodevice, 16, "%s", device); + vd->toggleAvi = 0; + vd->getPict = 0; + vd->signalquit = 1; -- 2.30.2