Initial Commit
- initial default booting image
This commit is contained in:
21
package/ustreamer/Config.in
Normal file
21
package/ustreamer/Config.in
Normal file
@@ -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
|
||||
3
package/ustreamer/ustreamer.hash
Normal file
3
package/ustreamer/ustreamer.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 d280f260c2c8cf1bf029ac5a0eb79af4c36e7ec0d47b33b37dff7a1c245384c6 ustreamer-6.61.tar.gz
|
||||
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE
|
||||
40
package/ustreamer/ustreamer.mk
Normal file
40
package/ustreamer/ustreamer.mk
Normal file
@@ -0,0 +1,40 @@
|
||||
################################################################################
|
||||
#
|
||||
# ustreamer
|
||||
#
|
||||
################################################################################
|
||||
|
||||
USTREAMER_VERSION = 6.61
|
||||
USTREAMER_SITE = $(call github,pikvm,ustreamer,v$(USTREAMER_VERSION))
|
||||
USTREAMER_LICENSE = GPL-3.0+
|
||||
USTREAMER_LICENSE_FILES = LICENSE
|
||||
USTREAMER_DEPENDENCIES = jpeg libevent libbsd host-pkgconf
|
||||
|
||||
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))
|
||||
Reference in New Issue
Block a user