net-libs/libdatachannel - 0.24.6 (jacksonchen666)

Search

Install

Install this version:

emerge -a =net-libs/libdatachannel-0.24.6

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-libs/libdatachannel-0.24.6

Or alternatively:

emerge --autounmask-write -a =net-libs/libdatachannel-0.24.6

Package Information

Description:
C/C++ WebRTC network library
Homepage:
https://github.com/paullouisageneau/libdatachannel
License:
MPL-2.0

Ebuild Details

Version EAPI Keywords Slot
0.24.6 8 ~amd64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="C/C++ WebRTC network library"
HOMEPAGE="https://github.com/paullouisageneau/libdatachannel"
SRC_URI="https://github.com/paullouisageneau/libdatachannel/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	net-libs/usrsctp:=
	dev-libs/plog:=
	net-libs/libsrtp:2=
	dev-cpp/nlohmann_json:=

	!libnice? ( net-libs/libjuice:= )
	libnice?  ( net-libs/libnice:= )

	!gnutls? (
		!mbedtls? (
			dev-libs/openssl:=
		)
	)
	gnutls? (
		net-libs/gnutls:=
	)
	mbedtls? (
		net-libs/mbedtls:=
	)
"
RDEPEND="${DEPEND}"
#BDEPEND=""

IUSE="gnutls mbedtls libnice +media +websocket"

# tests seemingly require network
RESTRICT="test"
REQUIRE_USE="
	?? ( gnutls mbedtls )
"

src_configure() {
	local mycmakeargs=(
		-DPREFER_SYSTEM_LIB=1
		# makes no difference to installed files when enabled
		-DNO_EXAMPLES=yes
		# tests seemingly require network
		-DNO_TESTS=yes

		# libraries choice
		# openssl is implied default unless these ar set
		-DUSE_GNUTLS=$(usex gnutls)
		-DUSE_MBEDTLS=$(usex mbedtls)

		-DUSE_NICE=$(usex libnice)

		# feature support
		-DNO_MEDIA=$(usex !media)
		-DNO_WEBSOCKET=$(usex !websocket)
	)
	cmake_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-libs/libdatachannel | euse -E <flag> -p net-libs/libdatachannel | euse -D <flag> -p net-libs/libdatachannel

Global/Standard Flags

media
❓ Default: Enabled (+)
websocket
❓ Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	net-libs/usrsctp:=
	dev-libs/plog:=
	net-libs/libsrtp:2=
	dev-cpp/nlohmann_json:=

	!libnice? ( net-libs/libjuice:= )
	libnice?  ( net-libs/libnice:= )

	!gnutls? (
		!mbedtls? (
			dev-libs/openssl:=
		)
	)
	gnutls? (
		net-libs/gnutls:=
	)
	mbedtls? (
		net-libs/mbedtls:=
	)

RDEPEND

	net-libs/usrsctp:=
	dev-libs/plog:=
	net-libs/libsrtp:2=
	dev-cpp/nlohmann_json:=

	!libnice? ( net-libs/libjuice:= )
	libnice?  ( net-libs/libnice:= )

	!gnutls? (
		!mbedtls? (
			dev-libs/openssl:=
		)
	)
	gnutls? (
		net-libs/gnutls:=
	)
	mbedtls? (
		net-libs/mbedtls:=
	)

Manifest for 0.24.6

Type File Size Source URLs
DIST libdatachannel-0.24.6.tar.gz 52656037 bytes https://github.com/paullouisageneau/libdatachannel/archive/refs/tags/v0.24.6.tar.gz