summaryrefslogtreecommitdiff
path: root/emulators/xmame
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2004-05-26 09:34:17 +0000
committerdillo <dillo@pkgsrc.org>2004-05-26 09:34:17 +0000
commit061ded3045382f7ca43f926ba766c3b1c02d39f5 (patch)
treed675ca3d059ab3b1edaf07e2819b6a90430db704 /emulators/xmame
parentdfed217592a5d92d4b9e241b563da1fb4a2061cf (diff)
downloadpkgsrc-061ded3045382f7ca43f926ba766c3b1c02d39f5.tar.gz
Fix usb joystick driver for talkative joysticks: read all available
reports and use the newest one. Bump PKGREVISION.
Diffstat (limited to 'emulators/xmame')
-rw-r--r--emulators/xmame/Makefile3
-rw-r--r--emulators/xmame/distinfo3
-rw-r--r--emulators/xmame/patches/patch-ab22
3 files changed, 26 insertions, 2 deletions
diff --git a/emulators/xmame/Makefile b/emulators/xmame/Makefile
index ce9d0053ad6..c66ac5c063c 100644
--- a/emulators/xmame/Makefile
+++ b/emulators/xmame/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.110 2004/05/16 00:27:30 kristerw Exp $
+# $NetBSD: Makefile,v 1.111 2004/05/26 09:34:17 dillo Exp $
#
DISTNAME= xmame-0.82.1
+PKGREVISION= 1
CATEGORIES= emulators games x11
MASTER_SITES= http://x.mame.net/download/
EXTRACT_SUFX= .tar.bz2
diff --git a/emulators/xmame/distinfo b/emulators/xmame/distinfo
index 530c24cb92a..e72796ce148 100644
--- a/emulators/xmame/distinfo
+++ b/emulators/xmame/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.49 2004/05/16 00:27:30 kristerw Exp $
+$NetBSD: distinfo,v 1.50 2004/05/26 09:34:17 dillo Exp $
SHA1 (xmame-0.82.1.tar.bz2) = a5f88a6e3e1cb2e6db37a770deeb14ae6e7829fd
Size (xmame-0.82.1.tar.bz2) = 12833581 bytes
SHA1 (patch-aa) = 0b9ffcb7c4305e7c349f229b2646acb31553d549
+SHA1 (patch-ab) = 098c3f51099136306a48929ee9f57aa6607dee2d
SHA1 (patch-ae) = df9ce91871bfcff611ff8f616482d4ff2e8204a3
diff --git a/emulators/xmame/patches/patch-ab b/emulators/xmame/patches/patch-ab
new file mode 100644
index 00000000000..b99f63648c1
--- /dev/null
+++ b/emulators/xmame/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.25 2004/05/26 09:34:17 dillo Exp $
+
+--- src/unix/joystick-drivers/joy_usb.c.orig Sun Mar 7 01:01:12 2004
++++ src/unix/joystick-drivers/joy_usb.c
+@@ -255,11 +255,14 @@ static void joy_usb_poll(void)
+
+ static int joy_read(int fd, int i)
+ {
+- int len, axis, usage, page, d;
++ int len, new, axis, usage, page, d;
+ struct hid_item *h;
+
+- len = read(fd, priv_joy_data[i].data_buf, priv_joy_data[i].dlen);
+- if (len != priv_joy_data[i].dlen)
++ new = 0;
++ while ((len=read(fd, priv_joy_data[i].data_buf, priv_joy_data[i].dlen))
++ == priv_joy_data[i].dlen)
++ new = 1;
++ if (!new)
+ return FALSE;
+
+ for (h = priv_joy_data[i].hids; h; h = h->next)