aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2022-01-01 01:36:20 +0000
committerJan Beich <jbeich@FreeBSD.org>2022-03-27 22:53:16 +0000
commit1e376ffff3f9b8849740665738ab26f02fa41b79 (patch)
tree86114937f153c853d2b5cf6fda00ba920512cc88
parent7565b1701461b093b88b582be76c4c862e8fc03c (diff)
downloadports-1e376ffff3f9b8849740665738ab26f02fa41b79.tar.gz
ports-1e376ffff3f9b8849740665738ab26f02fa41b79.zip
x11/wl-mirror: add new port
wl-mirror attempts to provide a solution to sway's lack of output mirroring by mirroring an output onto a client surface. Features: - Mirror an output onto a resizable window - Mirror an output onto another output by fullscreening the window - Reacts to changes in output scale - Preserves aspect ratio - Corrects for flipped or rotated outputs - Supports custom flips or rotations - Supports mirroring custom regions of outputs - Supports receiving additional options on stdin for changing the mirrored screen or region on the fly (works best when used with pipectl) https://github.com/Ferdi265/wl-mirror (cherry picked from commit 4ae14ebeac238aef26fa234429f14eec5a5cb03d)
-rw-r--r--x11/Makefile1
-rw-r--r--x11/wl-mirror/Makefile29
-rw-r--r--x11/wl-mirror/distinfo5
-rw-r--r--x11/wl-mirror/pkg-descr15
4 files changed, 50 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index a6ffc979ccd1..4507e904a756 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -389,6 +389,7 @@
SUBDIR += wezterm
SUBDIR += wf-shell
SUBDIR += wl-clipboard
+ SUBDIR += wl-mirror
SUBDIR += wlogout
SUBDIR += wlr-randr
SUBDIR += wlrctl
diff --git a/x11/wl-mirror/Makefile b/x11/wl-mirror/Makefile
new file mode 100644
index 000000000000..2850ab626126
--- /dev/null
+++ b/x11/wl-mirror/Makefile
@@ -0,0 +1,29 @@
+PORTNAME= wl-mirror
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.8.1
+CATEGORIES= x11
+
+MAINTAINER= jbeich@FreeBSD.org
+COMMENT= Simple Wayland output mirror client
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols
+LIB_DEPENDS= libwayland-egl.so:graphics/wayland
+
+USES= cmake gl localbase:ldflags
+USE_GITHUB= yes
+USE_GITLAB= nodefault
+USE_GL= glesv2 egl
+GH_ACCOUNT= Ferdi265
+GL_TUPLE= https://gitlab.freedesktop.org:wlroots:wlr-protocols:d998ee6fc64ea7e066014023653d1271b7702c09:wlrproto/proto/wlr-protocols
+PLIST_FILES= bin/${PORTNAME}
+
+post-patch:
+ @${REINPLACE_CMD} 's,/usr,${LOCALBASE},' ${WRKSRC}/CMakeLists.txt
+
+pre-configure:
+ @${TOUCH} ${WRKSRC_wlrproto}/.git
+
+.include <bsd.port.mk>
diff --git a/x11/wl-mirror/distinfo b/x11/wl-mirror/distinfo
new file mode 100644
index 000000000000..1e4410a76587
--- /dev/null
+++ b/x11/wl-mirror/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1641000980
+SHA256 (Ferdi265-wl-mirror-v0.8.1_GH0.tar.gz) = 933fcbbc1ffd98821887731d2b7f02d0ea5298db478d7f1d118f269c37a947ad
+SIZE (Ferdi265-wl-mirror-v0.8.1_GH0.tar.gz) = 32683
+SHA256 (wlroots-wlr-protocols-d998ee6fc64ea7e066014023653d1271b7702c09_GL0.tar.gz) = b5bb4a054321beb900378aa4ceb4f8f68d840f2e8c70defcc9d6ba644ab18959
+SIZE (wlroots-wlr-protocols-d998ee6fc64ea7e066014023653d1271b7702c09_GL0.tar.gz) = 22764
diff --git a/x11/wl-mirror/pkg-descr b/x11/wl-mirror/pkg-descr
new file mode 100644
index 000000000000..cb86c052b6c5
--- /dev/null
+++ b/x11/wl-mirror/pkg-descr
@@ -0,0 +1,15 @@
+wl-mirror attempts to provide a solution to sway's lack of output
+mirroring by mirroring an output onto a client surface.
+
+Features:
+- Mirror an output onto a resizable window
+- Mirror an output onto another output by fullscreening the window
+- Reacts to changes in output scale
+- Preserves aspect ratio
+- Corrects for flipped or rotated outputs
+- Supports custom flips or rotations
+- Supports mirroring custom regions of outputs
+- Supports receiving additional options on stdin for changing the mirrored
+ screen or region on the fly (works best when used with pipectl)
+
+WWW: https://github.com/Ferdi265/wl-mirror