summaryrefslogtreecommitdiff
path: root/x11/xf86-input-mouse
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2018-05-12 12:16:00 +0000
committerryoon <ryoon@pkgsrc.org>2018-05-12 12:16:00 +0000
commit62e8d445dbe69a858ad6be832860d8871aede1b9 (patch)
treeced7c6d14a1d6f27ed68626dbb911fd3d6359480 /x11/xf86-input-mouse
parenta8acb0330dee1fa60bda6e67a8926131ffc8445c (diff)
downloadpkgsrc-62e8d445dbe69a858ad6be832860d8871aede1b9.tar.gz
Fix build under NetBSD with upstream patch
Diffstat (limited to 'x11/xf86-input-mouse')
-rw-r--r--x11/xf86-input-mouse/distinfo3
-rw-r--r--x11/xf86-input-mouse/patches/patch-src_mouse.c32
2 files changed, 34 insertions, 1 deletions
diff --git a/x11/xf86-input-mouse/distinfo b/x11/xf86-input-mouse/distinfo
index 890cacd6d05..6dbf8c36d4f 100644
--- a/x11/xf86-input-mouse/distinfo
+++ b/x11/xf86-input-mouse/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.19 2016/11/17 08:06:52 wiz Exp $
+$NetBSD: distinfo,v 1.20 2018/05/12 12:16:00 ryoon Exp $
SHA1 (xf86-input-mouse-1.9.2.tar.bz2) = d3a0839ad5a33665bb261a4fba33e3a6271817dc
RMD160 (xf86-input-mouse-1.9.2.tar.bz2) = c7d68c0de19787ceda4e4307b113b6d74e0cb62d
SHA512 (xf86-input-mouse-1.9.2.tar.bz2) = 30fdc4f699d434e2fb4a9f8d2f4f980538d646a6e4d2d572737fc5498c0bce0fb1ba080173ea0aa3480f574dde3f58d5a7ac837afdb29640ccb092b3f18ff209
Size (xf86-input-mouse-1.9.2.tar.bz2) = 377685 bytes
+SHA1 (patch-src_mouse.c) = 0e593e5c805af8d0be04925a8e0af97961fa4dd3
SHA1 (patch-src_sun__mouse.c) = e23157bc9bdb5840ac008648d1c9a894e7a900cc
diff --git a/x11/xf86-input-mouse/patches/patch-src_mouse.c b/x11/xf86-input-mouse/patches/patch-src_mouse.c
new file mode 100644
index 00000000000..64f62b50314
--- /dev/null
+++ b/x11/xf86-input-mouse/patches/patch-src_mouse.c
@@ -0,0 +1,32 @@
+$NetBSD: patch-src_mouse.c,v 1.3 2018/05/12 12:16:00 ryoon Exp $
+
+From: https://cgit.freedesktop.org/xorg/driver/xf86-input-mouse/commit/?id=3c8f243b750a92d5837a449d344ff884dbd02b57
+Adapt to removal of xf86GetOS
+
+--- src/mouse.c.orig 2016-09-06 03:53:31.000000000 +0000
++++ src/mouse.c
+@@ -794,7 +794,6 @@ InitProtocols(void)
+ {
+ int classes;
+ int i;
+- const char *osname = NULL;
+
+ if (osInfo)
+ return TRUE;
+@@ -821,11 +820,11 @@ InitProtocols(void)
+ mouseProtocols[i].id = PROT_UNSUP;
+
+ /* NetBSD uses PROT_BM for "PS/2". */
+- xf86GetOS(&osname, NULL, NULL, NULL);
+- if (osname && xf86NameCmp(osname, "netbsd") == 0)
+- for (i = 0; mouseProtocols[i].name; i++)
+- if (mouseProtocols[i].id == PROT_PS2)
+- mouseProtocols[i].id = PROT_BM;
++#if defined(__NetBSD__)
++ for (i = 0; mouseProtocols[i].name; i++)
++ if (mouseProtocols[i].id == PROT_PS2)
++ mouseProtocols[i].id = PROT_BM;
++#endif
+
+ return TRUE;
+ }