37 lines
732 B
Bash
37 lines
732 B
Bash
# Copyright 2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="Implementation of WebRTC data exchange and signaling"
|
|
HOMEPAGE="https://github.com/paullouisageneau/libdatachannel"
|
|
|
|
EGIT_REPO_URI="https://github.com/paullouisageneau/libdatachannel.git"
|
|
EGIT_COMMIT="v${PV}"
|
|
EGIT_SUBMODULES=( deps/plog deps/usrsctp deps/libsrtp deps/libjuice )
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
LICENSE="MPL-2.0"
|
|
SLOT="0"
|
|
IUSE="examples media websocket"
|
|
|
|
RDEPEND="
|
|
dev-cpp/plog
|
|
net-libs/libnice
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
inherit cmake git-r3
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DNO_EXAMPLES=$(usex !examples)
|
|
-DNO_MEDIA=$(usex !media)
|
|
-DNO_WEBSOCKET=$(usex !websocket)
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|
|
|