gui-apps/wl-mirror: enable capturing with libgbm

See-Also: https://github.com/Ferdi265/wl-mirror/issues/65#issuecomment-2780740755
Signed-off-by: Mazunki Hoksaas <rolferen@gmail.com>
This commit is contained in:
Mazunki Hoksaas 2025-04-05 17:57:03 +02:00
parent 6bf1de2fc3
commit 7d1e0da1de
No known key found for this signature in database
GPG Key ID: 4BA695D60FC614BF
2 changed files with 8 additions and 1 deletions

View File

@ -12,4 +12,7 @@
<upstream>
<remote-id type="github">Ferdi265/wl-mirror</remote-id>
</upstream>
<use>
<flag name="gbm">Enable capturing with libgbm (generally more efficient).</flag>
</use>
</pkgmetadata>

View File

@ -13,13 +13,16 @@ SRC_URI="https://github.com/Ferdi265/wl-mirror/releases/download/v${PV}/wl-mirro
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+examples man"
IUSE="+examples +gbm man"
DEPEND="
gui-libs/wlroots
dev-libs/wayland-protocols
dev-libs/wayland
media-libs/libglvnd
gbm? (
media-libs/mesa[opengl]
)
dev-util/wayland-scanner
man? (
app-text/scdoc
@ -33,6 +36,7 @@ src_configure() {
-DFORCE_SYSTEM_WL_PROTOCOLS=ON
-DFORCE_SYSTEM_WLR_PROTOCOLS=OFF
-DINSTALL_EXAMPLE_SCRIPTS=$(usex examples ON OFF)
-DWITH_GBM=$(usex gbm ON OFF)
)
cmake_src_configure