summaryrefslogtreecommitdiff
path: root/gui-apps/wf-recorder/wf-recorder-0.6.0-r1.ebuild
blob: 7919f5c673ae79938002ffb68893f43fca3f2afc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 2020-2026 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"

SRC_URI="https://github.com/ammen99/wf-recorder/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"

LICENSE="MIT"
SLOT="0"
IUSE="pipewire pulseaudio"

PATCHES=(
	"${FILESDIR}/${P}-filter-color-range.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
}