pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/xf86-input-mouse allow use of the wsmouse protocol...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ca3db376b9ce
branches: trunk
changeset: 603578:ca3db376b9ce
user: drochner <drochner%pkgsrc.org@localhost>
date: Tue May 08 11:20:13 2012 +0000
description:
allow use of the wsmouse protocol on NetBSD, bump PKGREV
diffstat:
x11/xf86-input-mouse/Makefile | 3 ++-
x11/xf86-input-mouse/distinfo | 4 ++--
x11/xf86-input-mouse/patches/patch-ac | 23 ++++++++++++++++-------
3 files changed, 20 insertions(+), 10 deletions(-)
diffs (98 lines):
diff -r 1db3552ce15a -r ca3db376b9ce x11/xf86-input-mouse/Makefile
--- a/x11/xf86-input-mouse/Makefile Tue May 08 09:42:17 2012 +0000
+++ b/x11/xf86-input-mouse/Makefile Tue May 08 11:20:13 2012 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.13 2012/05/06 20:51:24 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2012/05/08 11:20:13 drochner Exp $
DISTNAME= xf86-input-mouse-1.7.2
+PKGREVISION= 1
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XORG:=driver/}
EXTRACT_SUFX= .tar.bz2
diff -r 1db3552ce15a -r ca3db376b9ce x11/xf86-input-mouse/distinfo
--- a/x11/xf86-input-mouse/distinfo Tue May 08 09:42:17 2012 +0000
+++ b/x11/xf86-input-mouse/distinfo Tue May 08 11:20:13 2012 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.9 2012/05/06 20:51:24 wiz Exp $
+$NetBSD: distinfo,v 1.10 2012/05/08 11:20:13 drochner Exp $
SHA1 (xf86-input-mouse-1.7.2.tar.bz2) = 0da6390c6f3d7d636110a52f08193739929ae4ae
RMD160 (xf86-input-mouse-1.7.2.tar.bz2) = 467870d6b65decc832fadf66896d613456f217cd
Size (xf86-input-mouse-1.7.2.tar.bz2) = 341378 bytes
SHA1 (patch-ab) = 632ec0e3908ccd16678a480b5ffa00dba7db640f
-SHA1 (patch-ac) = d32bbb082c0898e6eb6bf9dadb2af401b1e79312
+SHA1 (patch-ac) = eea2c36d6b652448996a52cf413a46cfe3accd7e
SHA1 (patch-src_mouse.h) = 7df93c8f7ef6e054ffd252246480051490c79d7b
diff -r 1db3552ce15a -r ca3db376b9ce x11/xf86-input-mouse/patches/patch-ac
--- a/x11/xf86-input-mouse/patches/patch-ac Tue May 08 09:42:17 2012 +0000
+++ b/x11/xf86-input-mouse/patches/patch-ac Tue May 08 11:20:13 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.1 2009/05/22 19:05:57 tnn Exp $
+$NetBSD: patch-ac,v 1.2 2012/05/08 11:20:13 drochner Exp $
Changes from NetBSD xsrc/external/mit/xorg-server/dist/\
hw/xfree86/os-support/bsd/bsd_mouse.c
@@ -23,8 +23,8 @@
unless I add this).
----------------------------
---- src/bsd_mouse.c.orig 2009-05-19 15:12:28 +0300
-+++ src/bsd_mouse.c 2009-05-19 15:13:13 +0300
+--- src/bsd_mouse.c.orig 2012-03-16 06:34:27.000000000 +0000
++++ src/bsd_mouse.c
@@ -53,12 +53,15 @@
#define HUP_GENERIC_DESKTOP 0x0001
@@ -41,6 +41,15 @@
#define HID_USAGE2(p,u) (((p) << 16) | u)
/* The UMS mices have middle button as number 3 */
+@@ -98,7 +101,7 @@ static int
+ SupportedInterfaces(void)
+ {
+ #if defined(__NetBSD__)
+- return MSE_SERIAL | MSE_BUS | MSE_PS2 | MSE_AUTO;
++ return MSE_SERIAL | MSE_BUS | MSE_PS2 | MSE_AUTO | MSE_MISC;
+ #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
+ return MSE_SERIAL | MSE_BUS | MSE_PS2 | MSE_AUTO | MSE_MISC;
+ #else
@@ -339,6 +342,23 @@ FindDevice(InputInfoPtr pInfo, const cha
}
#endif
@@ -65,7 +74,7 @@
#if (defined(__OpenBSD__) || defined(__NetBSD__)) && defined(WSCONS_SUPPORT)
/* Only support wsmouse configuration for now */
-@@ -496,7 +516,7 @@ typedef struct _UsbMseRec {
+@@ -473,7 +493,7 @@ typedef struct _UsbMseRec {
hid_item_t loc_x; /* x locator item */
hid_item_t loc_y; /* y locator item */
hid_item_t loc_z; /* z (wheel) locator item */
@@ -74,7 +83,7 @@
hid_item_t loc_btn[MSE_MAXBUTTONS]; /* buttons locator items */
unsigned char *buffer;
} UsbMseRec, *UsbMsePtr;
-@@ -708,6 +728,9 @@ usbPreInit(InputInfoPtr pInfo, const cha
+@@ -688,6 +708,9 @@ usbPreInit(InputInfoPtr pInfo, const cha
if (hid_locate(reportDesc, HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_WHEEL),
hid_input, &pUsbMse->loc_z, pUsbMse->iid) < 0) {
}
@@ -84,7 +93,7 @@
#else
if (hid_locate(reportDesc, HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_X),
hid_input, &pUsbMse->loc_x) < 0) {
-@@ -720,6 +743,9 @@ usbPreInit(InputInfoPtr pInfo, const cha
+@@ -700,6 +723,9 @@ usbPreInit(InputInfoPtr pInfo, const cha
if (hid_locate(reportDesc, HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_WHEEL),
hid_input, &pUsbMse->loc_z) < 0) {
}
@@ -94,7 +103,7 @@
#endif
/* Probe for number of buttons */
for (i = 1; i <= MSE_MAXBUTTONS; i++) {
-@@ -790,6 +816,9 @@ xf86OSMouseInit(int flags)
+@@ -772,6 +798,9 @@ OSMouseInit(int flags)
p->SetupAuto = SetupAuto;
p->SetMiscRes = SetMouseRes;
#endif
Home |
Main Index |
Thread Index |
Old Index