Initial Commit
- initial default booting image
This commit is contained in:
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