diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2022-09-01 12:52:42 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2022-09-01 13:39:50 +0200 |
commit | 6faa9bc8a78bde33829eb9b25de399bdb182a917 (patch) | |
tree | 2ee8c0d6da443ac0103ad37d4b89193c12d2f4c5 | |
parent | faacc271beb603044e3718962c94ca0b9ce4c539 (diff) |
add waylwan/xwayland
-rw-r--r-- | wayland/xwayland/Makefile | 44 | ||||
-rw-r--r-- | wayland/xwayland/distinfo | 2 | ||||
-rw-r--r-- | wayland/xwayland/patches/patch-hw_xwayland_xwayland-input_c | 19 | ||||
-rw-r--r-- | wayland/xwayland/pkg/DESCR | 6 | ||||
-rw-r--r-- | wayland/xwayland/pkg/PLIST | 5 |
5 files changed, 76 insertions, 0 deletions
diff --git a/wayland/xwayland/Makefile b/wayland/xwayland/Makefile new file mode 100644 index 0000000..7c99014 --- /dev/null +++ b/wayland/xwayland/Makefile @@ -0,0 +1,44 @@ +COMMENT = the X.Org Xwayland server + +DISTNAME = xwayland-22.1.3 +CATEGORIES = wayland + +HOMEPAGE = https://gitlab.freedesktop.org/xorg/xserver + +MAINTAINER = xenocara@openbsd.org + +# MIT +PERMIT_PACKAGE = Yes + +# uses pledge() + +WANTLIB = GL Xau Xdmcp Xfont2 xcvt drm gbm kvm pthread c m +WANTLIB += pixman-1 xshmfence epoxy wayland-client + +MASTER_SITES = ${MASTER_SITE_XORG:=xserver/} +EXTRACT_SUFX = .tar.xz + +MODULES = devel/meson xenocara + +BUILD_DEPENDS = devel/xorgproto \ + devel/libxcvt \ + fonts/xorg-font-util \ + x11/xtrans \ + x11/libxkbfile \ + devel/xorgproto \ + wayland/wayland-protocols + +RUN_DEPENDS = x11/xkbcomp + +LIB_DEPENDS = graphics/pixman \ + graphics/libepoxy \ + graphics/mesa \ + sysutils/libdrm \ + wayland/wayland + +SEPARATE_BUILD = yes + +CONFIGURE_ARGS = -Dxdm-auth-1=false \ + -Dsecure-rpc=false + +.include <bsd.port.mk> diff --git a/wayland/xwayland/distinfo b/wayland/xwayland/distinfo new file mode 100644 index 0000000..9415742 --- /dev/null +++ b/wayland/xwayland/distinfo @@ -0,0 +1,2 @@ +SHA256 (xwayland-22.1.3.tar.xz) = pxLre84yzZNN82gUtd0EaqZwiZwW/pjyr7ADV4+GocU= +SIZE (xwayland-22.1.3.tar.xz) = 1272440 diff --git a/wayland/xwayland/patches/patch-hw_xwayland_xwayland-input_c b/wayland/xwayland/patches/patch-hw_xwayland_xwayland-input_c new file mode 100644 index 0000000..2695b23 --- /dev/null +++ b/wayland/xwayland/patches/patch-hw_xwayland_xwayland-input_c @@ -0,0 +1,19 @@ +Index: hw/xwayland/xwayland-input.c +--- hw/xwayland/xwayland-input.c.orig ++++ hw/xwayland/xwayland-input.c +@@ -26,7 +26,15 @@ + + #include <xwayland-config.h> + ++#ifndef __OpenBSD__ + #include <linux/input.h> ++#else ++#define BTN_LEFT 0x110 ++#define BTN_RIGHT 0x111 ++#define BTN_MIDDLE 0x112 ++#define BTN_SIDE 0x113 ++#endif ++ + #include <sys/mman.h> + + #include <inputstr.h> diff --git a/wayland/xwayland/pkg/DESCR b/wayland/xwayland/pkg/DESCR new file mode 100644 index 0000000..c31f7aa --- /dev/null +++ b/wayland/xwayland/pkg/DESCR @@ -0,0 +1,6 @@ +XWayland is a fully fledged X server implementation that act as a +proxy between X11 clients and a Wayland compositor. It runs as a +specialized Wayland client, while optionally using a set of XWayland +specific Wayland protocols for implementing certain functionality. The +Wayland compositor acts both as the Wayland display server XWayland +connects to, as well as the Window Manager. diff --git a/wayland/xwayland/pkg/PLIST b/wayland/xwayland/pkg/PLIST new file mode 100644 index 0000000..6bc47a2 --- /dev/null +++ b/wayland/xwayland/pkg/PLIST @@ -0,0 +1,5 @@ +@bin bin/Xwayland +lib/pkgconfig/xwayland.pc +lib/xorg/protocol.txt +@man man/man1/Xserver.1 +@man man/man1/Xwayland.1 |