diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2022-01-01 01:36:20 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2022-02-21 17:04:18 +0000 |
commit | 4ae14ebeac238aef26fa234429f14eec5a5cb03d (patch) | |
tree | f12721fe12b79bebe947e54fa53fa5861322df37 | |
parent | fac9c630f3c6e3d7053c31e23193ac40f8881435 (diff) |
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
-rw-r--r-- | x11/Makefile | 1 | ||||
-rw-r--r-- | x11/wl-mirror/Makefile | 29 | ||||
-rw-r--r-- | x11/wl-mirror/distinfo | 5 | ||||
-rw-r--r-- | x11/wl-mirror/pkg-descr | 15 |
4 files changed, 50 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile index 6c4783b0c77a..3bbde49a3128 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -392,6 +392,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 |