diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2012-08-01 09:15:45 -0300 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-14 22:30:33 -0500 |
commit | 86849038ea0a8aefbd651e0ab8ec23b9ac88efde (patch) | |
tree | c801b388edb9898da4e815b4751e10b7fb54b0b3 /libraries/ois | |
parent | c79a84612163d7ea0ca0537e6daaccaddc056f3d (diff) | |
download | slackbuilds-86849038ea0a8aefbd651e0ab8ec23b9ac88efde.tar.gz |
libraries/ois: Included patch for gcc-4.7.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries/ois')
-rw-r--r-- | libraries/ois/gcc-4.7.patch | 63 | ||||
-rw-r--r-- | libraries/ois/ois.SlackBuild | 5 | ||||
-rw-r--r-- | libraries/ois/ois.info | 2 |
3 files changed, 68 insertions, 2 deletions
diff --git a/libraries/ois/gcc-4.7.patch b/libraries/ois/gcc-4.7.patch new file mode 100644 index 0000000000..16c103b040 --- /dev/null +++ b/libraries/ois/gcc-4.7.patch @@ -0,0 +1,63 @@ +diff -Naur ois-v1-3.orig/demos/FFConsoleDemo.cpp ois-v1-3/demos/FFConsoleDemo.cpp +--- ois-v1-3.orig/demos/FFConsoleDemo.cpp 2010-04-01 03:38:04.000000000 +0000 ++++ ois-v1-3/demos/FFConsoleDemo.cpp 2012-07-10 02:40:07.339818611 +0000 +@@ -3,6 +3,7 @@ + #include <math.h>
+ #include <cstdlib>
+ #include <iostream>
++#include <unistd.h>
+ #include <iomanip>
+ #include <ios>
+ #include <sstream>
+diff -Naur ois-v1-3.orig/demos/OISConsole.cpp ois-v1-3/demos/OISConsole.cpp +--- ois-v1-3.orig/demos/OISConsole.cpp 2010-08-15 22:51:34.000000000 +0000 ++++ ois-v1-3/demos/OISConsole.cpp 2012-07-10 02:38:39.624815796 +0000 +@@ -10,6 +10,7 @@ + #include "OISForceFeedback.h"
+
+ #include <iostream>
++#include <unistd.h>
+ #include <vector>
+ #include <sstream>
+
+@@ -77,7 +78,7 @@ + }
+ bool keyReleased( const KeyEvent &arg ) {
+ if( arg.key == KC_ESCAPE || arg.key == KC_Q )
+- appRunning = false; ++ appRunning = false;
+ std::cout << "KeyReleased {" << ((Keyboard*)(arg.device))->getAsString(arg.key) << "}\n";
+ return true;
+ }
+diff -Naur ois-v1-3.orig/src/linux/LinuxForceFeedback.cpp ois-v1-3/src/linux/LinuxForceFeedback.cpp +--- ois-v1-3.orig/src/linux/LinuxForceFeedback.cpp 2010-04-01 03:06:55.000000000 +0000 ++++ ois-v1-3/src/linux/LinuxForceFeedback.cpp 2012-07-10 02:33:03.871465001 +0000 +@@ -33,7 +33,8 @@ + #define OIS_LINUX_JOYFF_DEBUG 1
+
+ #ifdef OIS_LINUX_JOYFF_DEBUG
+-# include <iostream>
++#include <iostream>
++#include <unistd.h>
+ using namespace std;
+ #endif
+
+diff -Naur ois-v1-3.orig/src/linux/LinuxJoyStickEvents.cpp ois-v1-3/src/linux/LinuxJoyStickEvents.cpp +--- ois-v1-3.orig/src/linux/LinuxJoyStickEvents.cpp 2010-07-26 01:28:41.000000000 +0000 ++++ ois-v1-3/src/linux/LinuxJoyStickEvents.cpp 2012-07-10 02:27:07.663922138 +0000 +@@ -31,12 +31,13 @@ + #include "OISException.h"
+
+ #include <fcntl.h> //Needed to Open a file descriptor
+-#include <cassert>
++#include <cassert>
+ #include <linux/input.h>
+
+
+ #include <sstream>
+-# include <iostream>
++#include <iostream>
++#include <unistd.h>
+ using namespace std;
+
+ using namespace OIS;
diff --git a/libraries/ois/ois.SlackBuild b/libraries/ois/ois.SlackBuild index 60891771f4..8473686b5a 100644 --- a/libraries/ois/ois.SlackBuild +++ b/libraries/ois/ois.SlackBuild @@ -7,7 +7,7 @@ PRGNAM=ois VERSION=${VERSION:-1.3.0} SRCVER=${SRCVER:-v1-3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -52,6 +52,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Fix for gcc 4.7.x. +patch -p1 < $CWD/gcc-4.7.patch + [ ! -x ./bootstrap ] && chmod +x ./bootstrap ./bootstrap diff --git a/libraries/ois/ois.info b/libraries/ois/ois.info index 3f5fafc859..8850f27c88 100644 --- a/libraries/ois/ois.info +++ b/libraries/ois/ois.info @@ -7,4 +7,4 @@ DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Larry Hajali" EMAIL="larryhaja[at]gmail[dot]com" -APPROVED="dsomero" +APPROVED="dsomero,Niels Horn" |