2020-07-08 19:55:48 -04:00
|
|
|
# Copyright 2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2020-02-26 01:53:27 -05:00
|
|
|
EAPI=7
|
|
|
|
|
2020-07-19 17:09:16 -04:00
|
|
|
EHG_REPO_URI="https://hg.sr.ht/~scoopta/wlrobs"
|
2020-02-26 01:53:27 -05:00
|
|
|
|
2020-07-19 17:09:16 -04:00
|
|
|
inherit mercurial meson
|
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"
|
|
|
|
IUSE="dmabuf +scpy"
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND="
|
|
|
|
dev-libs/wayland
|
|
|
|
media-video/obs-studio
|
|
|
|
virtual/pkgconfig
|
|
|
|
dev-util/meson
|
|
|
|
dmabuf? (
|
|
|
|
x11-libs/libdrm
|
|
|
|
virtual/opengl
|
|
|
|
)
|
|
|
|
"
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
local install_path="/usr/lib/obs-plugins/"
|
|
|
|
if $(uname -m | grep "64"); then
|
|
|
|
install_path="/usr/lib64/obs-plugins/"
|
|
|
|
fi
|
|
|
|
dodir ${install_path}
|
|
|
|
cp "${S}-build/libwlrobs.so" "${D}/${install_path}/libwlrobs.so" || die "Failed to install"
|
|
|
|
}
|