2023-01-03 15:19:21 -05:00
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
2020-07-08 19:55:48 -04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2023-01-03 15:19:21 -05:00
|
|
|
EAPI=8
|
2020-02-26 01:53:27 -05:00
|
|
|
|
2021-08-13 17:24:41 -04:00
|
|
|
inherit meson
|
|
|
|
|
|
|
|
if [[ ${PV} == 9999 ]]; then
|
|
|
|
inherit mercurial
|
|
|
|
EHG_REPO_URI="https://hg.sr.ht/~scoopta/wlrobs"
|
|
|
|
else
|
|
|
|
MY_PN="wlrobs"
|
|
|
|
MY_P="${MY_PN}-v${PV}"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
SRC_URI="https://hg.sr.ht/~scoopta/wlrobs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
2020-02-26 01:53:27 -05:00
|
|
|
|
|
|
|
DESCRIPTION="Allows screen capture on wlroots-based Wayland compositors"
|
|
|
|
HOMEPAGE="https://hg.sr.ht/~scoopta/wlrobs"
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
2021-08-13 17:14:23 -04:00
|
|
|
IUSE="+dmabuf +scpy"
|
2020-02-26 01:53:27 -05:00
|
|
|
|
2020-08-20 16:29:00 -04:00
|
|
|
DEPEND="
|
2020-02-26 01:53:27 -05:00
|
|
|
dev-libs/wayland
|
|
|
|
media-video/obs-studio
|
2021-08-13 17:14:23 -04:00
|
|
|
dmabuf? ( x11-libs/libdrm )
|
2020-02-26 01:53:27 -05:00
|
|
|
"
|
2020-08-20 16:29:00 -04:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND="
|
|
|
|
virtual/pkgconfig
|
|
|
|
dev-util/meson
|
|
|
|
"
|
2020-02-26 01:53:27 -05:00
|
|
|
|
|
|
|
src_configure() {
|
2020-07-08 20:07:16 -04:00
|
|
|
local emesonargs=(
|
2020-02-26 01:53:27 -05:00
|
|
|
$(meson_use dmabuf use_dmabuf)
|
|
|
|
$(meson_use scpy use_scpy)
|
|
|
|
)
|
|
|
|
meson_src_configure
|
|
|
|
}
|