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"
|
|
|
|
|
2020-08-20 16:29:00 -04:00
|
|
|
DEPEND="
|
2020-02-26 01:53:27 -05:00
|
|
|
dev-libs/wayland
|
|
|
|
media-video/obs-studio
|
|
|
|
dmabuf? (
|
|
|
|
x11-libs/libdrm
|
|
|
|
virtual/opengl
|
|
|
|
)
|
|
|
|
"
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
local install_path="/usr/lib/obs-plugins/"
|
|
|
|
if $(uname -m | grep "64"); then
|
|
|
|
install_path="/usr/lib64/obs-plugins/"
|
|
|
|
fi
|
2020-08-26 22:39:52 -04:00
|
|
|
dodir "/usr/$(get_libdir)/obs-plugins"
|
|
|
|
cp "${S}-build/libwlrobs.so" "${D}/usr/$(get_libdir)/obs-plugins/libwlrobs.so" || die "Failed to install"
|
2020-02-26 01:53:27 -05:00
|
|
|
}
|