From: Maksim Kiselev <bigunclemax@gmail.com>
To: buildroot@buildroot.org
Cc: Maksim Kiselev <bigunclemax@gmail.com>,
Samuel Martin <s.martin49@gmail.com>
Subject: [Buildroot] [PATCH] package/libdatachannel: new package
Date: Wed, 26 Apr 2023 19:14:02 +0300 [thread overview]
Message-ID: <20230426161402.3251010-1-bigunclemax@gmail.com> (raw)
This patch adds a new package for libdatachannel.
libdatachannel is an open-source software library implementing WebRTC Data
Channels, WebRTC Media Transport, and WebSockets. It is written in C++17
and offers C bindings.
Signed-off-by: Maksim Kiselev <bigunclemax@gmail.com>
---
package/Config.in | 1 +
package/libdatachannel/Config.in | 7 +++++
package/libdatachannel/libdatachannel.hash | 3 ++
package/libdatachannel/libdatachannel.mk | 32 ++++++++++++++++++++++
4 files changed, 43 insertions(+)
create mode 100644 package/libdatachannel/Config.in
create mode 100644 package/libdatachannel/libdatachannel.hash
create mode 100644 package/libdatachannel/libdatachannel.mk
diff --git a/package/Config.in b/package/Config.in
index eaac32a01a..c323409e37 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1408,6 +1408,7 @@ menu "Audio/Sound"
source "package/libcodec2/Config.in"
source "package/libcue/Config.in"
source "package/libcuefile/Config.in"
+ source "package/libdatachannel/Config.in"
source "package/libebur128/Config.in"
source "package/libg7221/Config.in"
source "package/libgsm/Config.in"
diff --git a/package/libdatachannel/Config.in b/package/libdatachannel/Config.in
new file mode 100644
index 0000000000..84ade9a879
--- /dev/null
+++ b/package/libdatachannel/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBDATACHANNEL
+ bool "libdatachannel"
+ help
+ C/C++ WebRTC network library featuring Data Channels,
+ Media Transport, and WebSockets.
+
+ https://github.com/paullouisageneau/libdatachannel
diff --git a/package/libdatachannel/libdatachannel.hash b/package/libdatachannel/libdatachannel.hash
new file mode 100644
index 0000000000..fd1112acf7
--- /dev/null
+++ b/package/libdatachannel/libdatachannel.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 cecd359c6c261676bde42ab8b912c851d13d73759b16eb03496903833fdf4306 libdatachannel-v0.18.3-br1.tar.gz
+sha256 fab3dd6bdab226f1c08630b1dd917e11fcb4ec5e1e020e2c16f83a0a13863e85 LICENSE
diff --git a/package/libdatachannel/libdatachannel.mk b/package/libdatachannel/libdatachannel.mk
new file mode 100644
index 0000000000..d86eed9bef
--- /dev/null
+++ b/package/libdatachannel/libdatachannel.mk
@@ -0,0 +1,32 @@
+################################################################################
+#
+# libdatachannel
+#
+################################################################################
+
+LIBDATACHANNEL_VERSION = v0.18.3
+LIBDATACHANNEL_SITE_METHOD = git
+LIBDATACHANNEL_SITE = https://github.com/paullouisageneau/libdatachannel
+LIBDATACHANNEL_GIT_SUBMODULES = YES
+LIBDATACHANNEL_INSTALL_STAGING = YES
+LIBDATACHANNEL_LICENSE = MPL-2.0
+LIBDATACHANNEL_LICENSE_FILES = LICENSE
+
+LIBDATACHANNEL_CONF_OPTS = -DPREFER_SYSTEM_LIB=1
+
+ifeq ($(BR2_PACKAGE_JSON_FOR_MODERN_CPP),y)
+LIBDATACHANNEL_CONF_OPTS += -DUSE_SYSTEM_JSON=1
+LIBDATACHANNEL_DEPENDENCIES += json-for-modern-cpp
+endif
+
+ifeq ($(BR2_PACKAGE_LIBNICE),y)
+LIBDATACHANNEL_CONF_OPTS += -DUSE_NICE=1
+LIBDATACHANNEL_DEPENDENCIES += libnice
+endif
+
+ifeq ($(BR2_PACKAGE_LIBSRTP),y)
+LIBDATACHANNEL_CONF_OPTS += -DUSE_SYSTEM_SRTP=1
+LIBDATACHANNEL_DEPENDENCIES += libsrtp
+endif
+
+$(eval $(cmake-package))
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2023-04-26 16:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-26 16:14 Maksim Kiselev [this message]
2023-05-08 20:42 ` [Buildroot] [PATCH] package/libdatachannel: new package Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230426161402.3251010-1-bigunclemax@gmail.com \
--to=bigunclemax@gmail.com \
--cc=buildroot@buildroot.org \
--cc=s.martin49@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.