]> Git Repo - buildroot-mgba.git/commitdiff
package/ustreamer: new package
authorKadambini Nema <[email protected]>
Mon, 19 Feb 2024 21:34:02 +0000 (13:34 -0800)
committerThomas Petazzoni <[email protected]>
Sat, 11 May 2024 11:56:51 +0000 (13:56 +0200)
Lightweight and fast MJPEG-HTTP streamer
(https://github.com/pikvm/ustreamer/tree/master#%C2%B5streamer)

Signed-off-by: Kadambini Nema <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
DEVELOPERS
package/Config.in
package/ustreamer/Config.in [new file with mode: 0644]
package/ustreamer/ustreamer.hash [new file with mode: 0644]
package/ustreamer/ustreamer.mk [new file with mode: 0644]

index cb8a69a36ace5422eb0b08c78498e4a9f72bb7d4..1c0cd336ca2991b7afe4ec6137525113f3045e62 100644 (file)
@@ -1920,6 +1920,9 @@ F:        package/easy-rsa/
 N:     Justin Maggard <[email protected]>
 F:     package/dtach/
 
+N:     Kadambini Nema <[email protected]>
+F:     package/ustreamer/
+
 N:     Kamel Bouhara <[email protected]>
 F:     package/libodb-boost/
 F:     package/libodb-mysql/
index c7bad6755321107603b859ec0fa1273bf2f75977..edc56290ea04193a1bb96280b233ed0875253d14 100644 (file)
@@ -2609,6 +2609,7 @@ endif
        source "package/uredir/Config.in"
        source "package/ushare/Config.in"
        source "package/ussp-push/Config.in"
+       source "package/ustreamer/Config.in"
        source "package/vde2/Config.in"
        source "package/vdr/Config.in"
        source "package/vdr-plugin-vnsiserver/Config.in"
diff --git a/package/ustreamer/Config.in b/package/ustreamer/Config.in
new file mode 100644 (file)
index 0000000..79c22ee
--- /dev/null
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_USTREAMER
+       bool "ustreamer"
+       depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16 # V4L2_EVENT_SOURCE_CHANGE
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libbsd
+       depends on !BR2_STATIC_LIBS # libbsd
+       depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS # libbsd
+       depends on BR2_USE_WCHAR # libbsd
+       select BR2_PACKAGE_JPEG
+       select BR2_PACKAGE_LIBBSD
+       select BR2_PACKAGE_LIBEVENT
+       help
+         Lightweight and fast MJPEG-HTTP streamer
+
+         https://github.com/pikvm/ustreamer
+
+comment "ustreamer needs a toolchain w/ headers >= 3.16, threads, dynamic library, wchar"
+       depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
+       depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16 || \
+               !BR2_TOOLCHAIN_HAS_THREADS || \
+               BR2_STATIC_LIBS || \
+               !BR2_USE_WCHAR
diff --git a/package/ustreamer/ustreamer.hash b/package/ustreamer/ustreamer.hash
new file mode 100644 (file)
index 0000000..d3f603e
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  88f107e02a0b5c6493d55ed1bce0c85f66ce83d2bc0271ff6319ad593c6584bc  ustreamer-5.51.tar.gz
+sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  LICENSE
diff --git a/package/ustreamer/ustreamer.mk b/package/ustreamer/ustreamer.mk
new file mode 100644 (file)
index 0000000..dc8577b
--- /dev/null
@@ -0,0 +1,40 @@
+################################################################################
+#
+# ustreamer
+#
+################################################################################
+
+USTREAMER_VERSION = 5.51
+USTREAMER_SITE = $(call github,pikvm,ustreamer,v$(USTREAMER_VERSION))
+USTREAMER_LICENSE = GPL-3.0+
+USTREAMER_LICENSE_FILES = LICENSE
+USTREAMER_DEPENDENCIES = jpeg libevent libbsd
+
+USTREAMER_MAKE_OPTS = \
+       $(TARGET_CONFIGURE_OPTS) \
+       WITH_PTHREAD_NP=1 \
+       WITH_SETPROCTITLE=1 \
+       HAS_PDEATHSIG=1
+
+ifeq ($(BR2_PACKAGE_SYSTEMD),y)
+USTREAMER_MAKE_OPTS += WITH_SYSTEMD=1
+USTREAMER_DEPENDENCIES += systemd
+endif
+
+ifeq ($(BR2_PACKAGE_LIBGPIOD),y)
+USTREAMER_MAKE_OPTS += WITH_GPIO=1
+USTREAMER_DEPENDENCIES += libgpiod
+endif
+
+define USTREAMER_BUILD_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) $(USTREAMER_MAKE_OPTS) -C $(@D)
+endef
+
+define USTREAMER_INSTALL_TARGET_CMDS
+       $(INSTALL) -D -m 0755 $(@D)/ustreamer \
+               $(TARGET_DIR)/usr/bin/ustreamer
+       $(INSTALL) -D -m 0755 $(@D)/ustreamer-dump \
+               $(TARGET_DIR)/usr/bin/ustreamer-dump
+endef
+
+$(eval $(generic-package))
This page took 0.057729 seconds and 4 git commands to generate.