git: f484d98c446c - main - x11/xwaylandvideobridge: new port

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Thu, 09 Nov 2023 17:50:32 UTC
The branch main has been updated by tcberner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f484d98c446cde22fb807cd9c3670d7dc962095a

commit f484d98c446cde22fb807cd9c3670d7dc962095a
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2023-11-09 17:37:24 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2023-11-09 17:38:08 +0000

    x11/xwaylandvideobridge: new port
    
    By design, X11 applications can’t access window or screen contents for wayland
    clients. This is fine in principle, but it breaks screen sharing in tools like
    Discord, MS Teams, Skype, etc and more.
    
    This tool allows us to share specific windows to X11 clients, but within the
    control of the user at all times.
---
 x11/Makefile                      |  1 +
 x11/xwaylandvideobridge/Makefile  | 17 +++++++++++++++++
 x11/xwaylandvideobridge/distinfo  |  3 +++
 x11/xwaylandvideobridge/pkg-descr |  6 ++++++
 x11/xwaylandvideobridge/pkg-plist | 32 ++++++++++++++++++++++++++++++++
 5 files changed, 59 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index 5838dd74c078..b23f066f478d 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -617,6 +617,7 @@
     SUBDIR += xvmcinfo
     SUBDIR += xvt
     SUBDIR += xwatchwin
+    SUBDIR += xwaylandvideobridge
     SUBDIR += xwd
     SUBDIR += xwininfo
     SUBDIR += xwinwrap
diff --git a/x11/xwaylandvideobridge/Makefile b/x11/xwaylandvideobridge/Makefile
new file mode 100644
index 000000000000..a63046549406
--- /dev/null
+++ b/x11/xwaylandvideobridge/Makefile
@@ -0,0 +1,17 @@
+PORTNAME=	xwaylandvideobridge
+DISTVERSION=	0.3.0
+CATEGORIES=	x11 kde
+MASTER_SITES=	KDE/stable/${PORTNAME}/
+
+MAINTAINER=	kde@FreeBSD.org
+COMMENT=	Tool to share specific windows to X11 clients
+WWW=		https://invent.kde.org/system/xwaylandvideobridge
+
+USES=		cmake kde:5 qt:5 tar:xz xorg
+USE_KDE=	coreaddons i18n kpipewire notifications windowsystem \
+		ecm:build
+USE_QT=		core dbus declarative gui network widgets x11extras \
+		buildtools:build qmake:build
+USE_XORG=	x11 xcb
+
+.include <bsd.port.mk>
diff --git a/x11/xwaylandvideobridge/distinfo b/x11/xwaylandvideobridge/distinfo
new file mode 100644
index 000000000000..eb94ae7b8170
--- /dev/null
+++ b/x11/xwaylandvideobridge/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1699542009
+SHA256 (xwaylandvideobridge-0.3.0.tar.xz) = f8da6e8fe0ec3bd5ea797af8aad8fe1daab36fc3c77e2d36bb7443832cdfcffa
+SIZE (xwaylandvideobridge-0.3.0.tar.xz) = 35584
diff --git a/x11/xwaylandvideobridge/pkg-descr b/x11/xwaylandvideobridge/pkg-descr
new file mode 100644
index 000000000000..2a64a7131234
--- /dev/null
+++ b/x11/xwaylandvideobridge/pkg-descr
@@ -0,0 +1,6 @@
+By design, X11 applications can’t access window or screen contents for wayland
+clients. This is fine in principle, but it breaks screen sharing in tools like
+Discord, MS Teams, Skype, etc and more.
+
+This tool allows us to share specific windows to X11 clients, but within the
+control of the user at all times.
diff --git a/x11/xwaylandvideobridge/pkg-plist b/x11/xwaylandvideobridge/pkg-plist
new file mode 100644
index 000000000000..ecd204520152
--- /dev/null
+++ b/x11/xwaylandvideobridge/pkg-plist
@@ -0,0 +1,32 @@
+bin/xwaylandvideobridge
+etc/xdg/autostart/org.kde.xwaylandvideobridge.desktop
+share/applications/org.kde.xwaylandvideobridge.desktop
+share/icons/hicolor/scalable/apps/xwaylandvideobridge.svg
+share/locale/ca/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/ca@valencia/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/cs/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/de/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/en_GB/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/eo/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/es/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/eu/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/fi/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/fr/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/gl/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/it/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/ja/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/ka/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/ko/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/nl/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/nn/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/pl/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/pt/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/pt_BR/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/sk/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/sl/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/sv/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/tr/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/uk/LC_MESSAGES/xwaylandvideobridge.mo
+share/locale/zh_CN/LC_MESSAGES/xwaylandvideobridge.mo
+share/metainfo/org.kde.xwaylandvideobridge.appdata.xml
+share/qlogging-categories5/xwaylandvideobridge.categories