Package: add divinus streamer (#1449)

pull/1450/head
viktorxda 2024-05-20 01:41:50 +02:00 committed by GitHub
parent 0bcb22979b
commit 1d545a3c0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 33 additions and 0 deletions

View File

@ -10,6 +10,7 @@ source "$BR2_EXTERNAL_GENERAL_PATH/package/baresip-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/capjpeg/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/comgt/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/datalink/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/divinus/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/dropbear-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/exfat-openipc/Config.in"
source "$BR2_EXTERNAL_GENERAL_PATH/package/f2fs-tools-openipc/Config.in"

View File

@ -0,0 +1,5 @@
config BR2_PACKAGE_DIVINUS
bool "Divinus streamer"
help
Multi-platform open source streamer
https://openipc.org

View File

@ -0,0 +1,27 @@
################################################################################
#
# divinus
#
################################################################################
DIVINUS_SITE = $(call github,openipc,divinus,$(DIVINUS_VERSION))
DIVINUS_VERSION = HEAD
DIVINUS_LICENSE = MIT
DIVINUS_LICENSE_FILES = LICENSE
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
DIVINUS_OPTIONS = "-s -Os -lm"
else
DIVINUS_OPTIONS = "-s -Os"
endif
define DIVINUS_BUILD_CMDS
$(MAKE) CC=$(TARGET_CC) OPT=$(DIVINUS_OPTIONS) -C $(@D)
endef
define DIVINUS_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/divinus
endef
$(eval $(generic-package))