mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
With ffmpeg 7 the frame_rate variable has been made private API which breaks the build for this package. The patch fixes that by setting the frame_rate variable to a sentinel value because the frame rate cannot be accessed and is unknown. Doesn't break building with ffmpeg 6. Closes: https://bugs.gentoo.org/948264 Signed-off-by: Kostadin Shishmanov <kostadinshishmanov@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/40461 Signed-off-by: Sam James <sam@gentoo.org>
50 lines
1.0 KiB
Bash
50 lines
1.0 KiB
Bash
# Copyright 2020-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit meson
|
|
|
|
DESCRIPTION="Screen recorder for wlroots-based compositors"
|
|
HOMEPAGE="https://github.com/ammen99/wf-recorder"
|
|
|
|
if [[ ${PV} == *9999* ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/ammen99/wf-recorder.git"
|
|
else
|
|
SRC_URI="https://github.com/ammen99/wf-recorder/releases/download/v${PV}/${P}.tar.xz"
|
|
KEYWORDS="~amd64 ~x86"
|
|
fi
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
IUSE="pipewire pulseaudio"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${P}-fix-build-with-no-audio.patch"
|
|
"${FILESDIR}/${P}-ffmpeg-7.patch"
|
|
)
|
|
|
|
DEPEND="
|
|
dev-libs/wayland
|
|
media-libs/mesa[opengl,wayland]
|
|
media-video/ffmpeg[pulseaudio?,x264]
|
|
x11-libs/libdrm
|
|
pipewire? ( >=media-video/pipewire-1.0.5:= )
|
|
pulseaudio? ( media-libs/libpulse )
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="
|
|
dev-libs/wayland-protocols
|
|
dev-util/wayland-scanner
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
$(meson_feature pulseaudio pulse)
|
|
$(meson_feature pipewire)
|
|
)
|
|
meson_src_configure
|
|
}
|