pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/modular-xorg-server modular-xorg-server: Add Xwayl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f069d5793203
branches:  trunk
changeset: 400112:f069d5793203
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Aug 22 13:12:31 2019 +0000

description:
modular-xorg-server: Add Xwayland support to options.mk.

This no longer needs modular X to build with DRI, so make that
unconditional.

diffstat:

 x11/modular-xorg-server/PLIST                                      |   3 +-
 x11/modular-xorg-server/distinfo                                   |   3 +-
 x11/modular-xorg-server/options.mk                                 |  22 ++++++---
 x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c |  21 +++++++++
 4 files changed, 39 insertions(+), 10 deletions(-)

diffs (92 lines):

diff -r 4b1c05f4880a -r f069d5793203 x11/modular-xorg-server/PLIST
--- a/x11/modular-xorg-server/PLIST     Thu Aug 22 13:01:14 2019 +0000
+++ b/x11/modular-xorg-server/PLIST     Thu Aug 22 13:12:31 2019 +0000
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.28 2018/05/11 13:47:35 wiz Exp $
+@comment $NetBSD: PLIST,v 1.29 2019/08/22 13:12:31 nia Exp $
 bin/X
 bin/Xnest
 bin/Xorg
 bin/Xvfb
+${PLIST.wayland}bin/Xwayland
 bin/cvt
 bin/gtf
 include/xorg/BT.h
diff -r 4b1c05f4880a -r f069d5793203 x11/modular-xorg-server/distinfo
--- a/x11/modular-xorg-server/distinfo  Thu Aug 22 13:01:14 2019 +0000
+++ b/x11/modular-xorg-server/distinfo  Thu Aug 22 13:12:31 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.94 2019/02/28 12:32:39 tnn Exp $
+$NetBSD: distinfo,v 1.95 2019/08/22 13:12:31 nia Exp $
 
 SHA1 (xorg-server-1.20.4.tar.bz2) = 1a79da92122124cb782a4eebfd83fd33d5c0d7d4
 RMD160 (xorg-server-1.20.4.tar.bz2) = cad624e1d1ada0b46a76a1e5de6b12446f7c6dda
@@ -16,4 +16,5 @@
 SHA1 (patch-hw_xfree86_os-support_solaris_solaris-amd64.S) = 088a3118deb7567194e08dd46e34cb6edba38400
 SHA1 (patch-hw_xfree86_os-support_xf86_OSproc.h) = e1c049857893d2f050d5fb297a3e8ef86f0b1d7e
 SHA1 (patch-hw_xfree86_os_support_bus_xf86Sbus.h) = 0e0a243b737f8f762c9f8f24a2265d1b6aefb544
+SHA1 (patch-hw_xwayland_xwayland-input.c) = 281a28bfb2ddfd92376f61e450f322626dbb43cb
 SHA1 (patch-test_xtest.c) = 77622ef481e91e64b3a6dd64b8579404f33ec88f
diff -r 4b1c05f4880a -r f069d5793203 x11/modular-xorg-server/options.mk
--- a/x11/modular-xorg-server/options.mk        Thu Aug 22 13:01:14 2019 +0000
+++ b/x11/modular-xorg-server/options.mk        Thu Aug 22 13:12:31 2019 +0000
@@ -1,16 +1,12 @@
-# $NetBSD: options.mk,v 1.19 2018/05/11 13:47:35 wiz Exp $
+# $NetBSD: options.mk,v 1.20 2019/08/22 13:12:31 nia Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.modular-xorg-server
-PKG_SUPPORTED_OPTIONS= inet6 debug dtrace
-PKG_SUGGESTED_OPTIONS= inet6
-.if ${X11_TYPE} == "modular"
-PKG_SUPPORTED_OPTIONS+=        dri
-PKG_SUGGESTED_OPTIONS+=        dri
-.endif
+PKG_SUPPORTED_OPTIONS= inet6 dri debug dtrace wayland
+PKG_SUGGESTED_OPTIONS= inet6 dri
 
 .include "../../mk/bsd.options.mk"
 
-PLIST_VARS+=           dri dtrace
+PLIST_VARS+=           dri dtrace wayland
 
 .if !empty(PKG_OPTIONS:Mdri)
 .include "../../graphics/libepoxy/buildlink3.mk"
@@ -59,3 +55,13 @@
 .else
 CONFIGURE_ARGS+=       --without-dtrace
 .endif
+
+.if !empty(PKG_OPTIONS:Mwayland)
+PLIST.wayland=         yes
+CONFIGURE_ARGS+=       --enable-xwayland
+CONFIGURE_ARGS+=       --disable-xwayland-eglstream
+.include "../../devel/wayland/buildlink3.mk"
+.include "../../devel/wayland-protocols/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-xwayland
+.endif
diff -r 4b1c05f4880a -r f069d5793203 x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c        Thu Aug 22 13:12:31 2019 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-hw_xwayland_xwayland-input.c,v 1.1 2019/08/22 13:12:31 nia Exp $
+
+Support non-evdev platforms.
+
+--- hw/xwayland/xwayland-input.c.orig  2019-02-26 19:28:50.000000000 +0000
++++ hw/xwayland/xwayland-input.c
+@@ -26,7 +26,14 @@
+ 
+ #include "xwayland.h"
+ 
++#if defined(__linux) || defined(__FreeBSD__)
+ #include <linux/input.h>
++#else
++#define BTN_LEFT      (0)
++#define BTN_MIDDLE    (1)
++#define BTN_RIGHT     (2)
++#define BTN_SIDE      (3)
++#endif
+ 
+ #include <sys/mman.h>
+ #include <xkbsrv.h>



Home | Main Index | Thread Index | Old Index