summaryrefslogtreecommitdiff
path: root/x11/accessx
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-02-15 11:44:54 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-02-15 11:44:54 +0000
commita933b342e07410032c5e19d8e98f9e4319c92c14 (patch)
treef5431ebfdccbca1b3ed1dd3ce2919e55fb1d49f4 /x11/accessx
parentSet LC_CTYPE to 'C' for ${REINPLACE_CMD}, since if LC_CTYPE is set to (diff)
- Fix build
PR: 109184 Submitted by: Stephen Montgomery-Smith <stephen@cauchy.math.missouri.edu> (maintainer)
Notes
Notes: svn path=/head/; revision=185226
Diffstat (limited to 'x11/accessx')
-rw-r--r--x11/accessx/Makefile1
-rw-r--r--x11/accessx/files/patch-Access.C29
-rw-r--r--x11/accessx/files/patch-Access.h11
3 files changed, 41 insertions, 0 deletions
diff --git a/x11/accessx/Makefile b/x11/accessx/Makefile
index ba208863c771..7c9829e5710a 100644
--- a/x11/accessx/Makefile
+++ b/x11/accessx/Makefile
@@ -7,6 +7,7 @@
PORTNAME= accessx
PORTVERSION= 0.951
+PORTREVISION= 1
CATEGORIES= x11 accessibility
MASTER_SITES= http://www.disability.uiuc.edu/accessx/software/
DISTNAME= accessx${PORTVERSION:S/.//g}
diff --git a/x11/accessx/files/patch-Access.C b/x11/accessx/files/patch-Access.C
new file mode 100644
index 000000000000..dc50b39dd53d
--- /dev/null
+++ b/x11/accessx/files/patch-Access.C
@@ -0,0 +1,29 @@
+--- Access.C.orig Tue Mar 13 23:39:55 2001
++++ Access.C Tue Jan 30 22:18:00 2007
+@@ -21,6 +21,8 @@
+ #include <X11/XKBlib.h>
+ #include "Access.h"
+
++using namespace std;
++
+ //
+ // Access()
+ //
+@@ -152,7 +154,7 @@
+ //Get the state of the keyboard.
+
+ XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
+- if ((int)xkb == BadAlloc || xkb == NULL)
++ if (xkb == NULL)
+ {
+ return 5; /*AccessKeyboardQueryFailure;*/
+ }
+@@ -261,7 +263,7 @@
+ //Get the state of the keyboard.
+
+ XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
+- if ((int)xkb == BadAlloc || xkb == NULL)
++ if (xkb == NULL)
+ {
+ return 5; /*AccessKeyboardQueryFailure;*/
+ }
diff --git a/x11/accessx/files/patch-Access.h b/x11/accessx/files/patch-Access.h
new file mode 100644
index 000000000000..58c8c0b89c4c
--- /dev/null
+++ b/x11/accessx/files/patch-Access.h
@@ -0,0 +1,11 @@
+--- Access.h-orig Sun Nov 17 19:34:23 2002
++++ Access.h Sun Nov 17 19:34:34 2002
+@@ -20,7 +20,7 @@
+ *
+ */
+
+-#include <iostream.h>
++#include <iostream>
+ #include <math.h>
+
+ inline char* onoroff(int val)