commit:     7d1e0da1de9c96e62e13fd6c7d14af8c4412a55a
Author:     Mazunki Hoksaas <rolferen <AT> gmail <DOT> com>
AuthorDate: Sat Apr  5 15:57:03 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sat Apr  5 15:59:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7d1e0da1

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 <AT> gmail.com>

 gui-apps/wl-mirror/metadata.xml                                     | 3 +++
 .../{wl-mirror-0.18.1-r1.ebuild => wl-mirror-0.18.1-r2.ebuild}      | 6 +++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/gui-apps/wl-mirror/metadata.xml b/gui-apps/wl-mirror/metadata.xml
index b9c7f2dc6..3686d1800 100644
--- a/gui-apps/wl-mirror/metadata.xml
+++ b/gui-apps/wl-mirror/metadata.xml
@@ -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>

diff --git a/gui-apps/wl-mirror/wl-mirror-0.18.1-r1.ebuild 
b/gui-apps/wl-mirror/wl-mirror-0.18.1-r2.ebuild
similarity index 91%
rename from gui-apps/wl-mirror/wl-mirror-0.18.1-r1.ebuild
rename to gui-apps/wl-mirror/wl-mirror-0.18.1-r2.ebuild
index 5d4473e6d..93ddd9b1d 100644
--- a/gui-apps/wl-mirror/wl-mirror-0.18.1-r1.ebuild
+++ b/gui-apps/wl-mirror/wl-mirror-0.18.1-r2.ebuild
@@ -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

Reply via email to