package/mjpg-streamer: New package
authorBernd Kuhls <bernd.kuhls@t-online.de>
Mon, 26 Jan 2015 20:51:11 +0000 (21:51 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 2 Feb 2015 22:24:28 +0000 (23:24 +0100)
--
v2: various fixes (Thomas)

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/Config.in
package/mjpg-streamer/Config.in [new file with mode: 0644]
package/mjpg-streamer/mjpg-streamer.mk [new file with mode: 0644]

index 0f5836bd0e68f7ef08bddb3f87fcc2bcb80e1f12..6da5202aa57c893e1b82abae0cc2a8f4fa464d35 100644 (file)
@@ -1106,6 +1106,7 @@ endif
        source "package/memcached/Config.in"
        source "package/mii-diag/Config.in"
        source "package/minidlna/Config.in"
+       source "package/mjpg-streamer/Config.in"
        source "package/modem-manager/Config.in"
        source "package/mongoose/Config.in"
        source "package/mongrel2/Config.in"
diff --git a/package/mjpg-streamer/Config.in b/package/mjpg-streamer/Config.in
new file mode 100644 (file)
index 0000000..7925d41
--- /dev/null
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_MJPG_STREAMER
+       bool "mjpg-streamer"
+       depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # linux/uvcvideo.h
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+       depends on BR2_USE_MMU # fork()
+       select BR2_PACKAGE_JPEG
+       help
+         MJPG-streamer takes JPGs from Linux-UVC compatible webcams, filesystem
+         or other input plugins and streams them as M-JPEG via HTTP to
+         webbrowsers, VLC and other software.
+
+         http://mjpg-streamer.sourceforge.net
+
+comment "mjpg-streamer needs a toolchain w/ threads, headers >= 3.0"
+       depends on BR2_USE_MMU
+       depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
diff --git a/package/mjpg-streamer/mjpg-streamer.mk b/package/mjpg-streamer/mjpg-streamer.mk
new file mode 100644 (file)
index 0000000..2385429
--- /dev/null
@@ -0,0 +1,25 @@
+################################################################################
+#
+# mjpg-streamer
+#
+################################################################################
+
+# Original source is located at
+# http://sourceforge.net/p/mjpg-streamer/code/commit_browser
+# oliv3r forked the repo to add support for 3.16 and 3.17 kernels:
+# http://sourceforge.net/p/mjpg-streamer/patches/14/
+MJPG_STREAMER_VERSION = 730b5bcdc378b6a201131c6c2620eedbe0f6eb30
+MJPG_STREAMER_SITE = $(call github,oliv3r,mjpg-streamer,$(MJPG_STREAMER_VERSION))
+MJPG_STREAMER_LICENSE = GPLv2+
+MJPG_STREAMER_LICENSE_FILES = LICENSE
+MJPG_STREAMER_DEPENDENCIES = jpeg
+
+define MJPG_STREAMER_BUILD_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) CC=$(TARGET_CC) -C $(@D)
+endef
+
+define MJPG_STREAMER_INSTALL_TARGET_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)/usr install
+endef
+
+$(eval $(generic-package))