gentoo-ebuilds/media-plugins/gst-plugins-webrtc/gst-plugins-webrtc-1.24.10-r1.ebuild
Matthew White 4d8eb78f44
media-plugins/gst-plugins-webrtc: fix compilation
Upstream decided to auto-enable srtp, sctp and dtls options, when the
webrtc option is enabled: fd4828bafe613eec33e8f3faef5ab5181a73c8b6.

This adds a patch to partially revert the upstream commit in order to
allow the stand-alone compilation of webrtc.

Fixes the following:

'ERROR: Feature ... cannot be disabled: webrtc option is enabled'

Closes: https://bugs.gentoo.org/947523
Package-Manager: portage-3.0.66.1-r1
Signed-off-by: Matthew White <mehw.is.me@inventati.org>
Closes: https://github.com/gentoo/gentoo/pull/39996
Signed-off-by: Sam James <sam@gentoo.org>
2025-01-06 01:21:41 +00:00

42 lines
1.1 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
GST_ORG_MODULE=gst-plugins-bad
inherit gstreamer-meson
DESCRIPTION="WebRTC plugins for GStreamer"
KEYWORDS="~amd64 ~arm64"
RDEPEND="
>=media-plugins/gst-plugins-sctp-${PV}:1.0[${MULTILIB_USEDEP}]
>=media-libs/webrtc-audio-processing-1.0:1[${MULTILIB_USEDEP}]
>=net-libs/libnice-0.1.21[${MULTILIB_USEDEP}]
"
DEPEND="${RDEPEND}"
GST_PLUGINS_ENABLED="webrtc webrtcdsp"
GST_PLUGINS_BUILD_DIR="webrtc webrtcdsp"
PATCHES=(
"${FILESDIR}/${PN}-1.24.10-disable-srtp-sctp-dtls-options.patch"
)
src_prepare() {
default
gstreamer_system_package \
gstwebrtc_dep:gstreamer-webrtc \
gstsctp_dep:gstreamer-sctp \
gstbadaudio_dep:gstreamer-bad-audio
}
multilib_src_install() {
# TODO: Fix this properly, see bug #907470 and bug #909079.
insinto /usr/$(get_libdir)
doins "${BUILD_DIR}"/ext/webrtc/libgstwebrtc.so
doins "${BUILD_DIR}"/gst-libs/gst/webrtc/nice/libgstwebrtcnice-1.0.so*
insinto /usr/include/gstreamer-1.0/gst/webrtc/nice
doins "${S}"/gst-libs/gst/webrtc/nice/*.h
gstreamer_multilib_src_install
}