diff options
Diffstat (limited to 'community')
-rw-r--r-- | community/ois/PKGBUILD | 7 | ||||
-rw-r--r-- | community/ois/ois-1.3-gcc47.patch | 49 |
2 files changed, 54 insertions, 2 deletions
diff --git a/community/ois/PKGBUILD b/community/ois/PKGBUILD index eeac3678f..484a72e92 100644 --- a/community/ois/PKGBUILD +++ b/community/ois/PKGBUILD @@ -10,11 +10,14 @@ arch=('i686' 'x86_64' 'mips64el') url="http://sourceforge.net/projects/wgois" license=('custom:zlib/libpng') makedepends=('autoconf' 'automake' 'libtool' 'gcc' 'libxaw') -source=("http://downloads.sourceforge.net/project/wgois/Source%20Release/${pkgver}/ois_v${_oisver}.tar.gz") -md5sums=('9697fead17eac6025151cd2e1fca1518') +source=("http://downloads.sourceforge.net/project/wgois/Source%20Release/${pkgver}/ois_v${_oisver}.tar.gz" + "ois-1.3-gcc47.patch") +md5sums=('9697fead17eac6025151cd2e1fca1518' + 'e5cb7a504cf30a382d0b0420aedaa953') build() { cd ${srcdir}/${pkgname}-v${_oisver} + patch -Np1 -i ${srcdir}/ois-1.3-gcc47.patch chmod +x bootstrap ./bootstrap ./configure --prefix=/usr diff --git a/community/ois/ois-1.3-gcc47.patch b/community/ois/ois-1.3-gcc47.patch new file mode 100644 index 000000000..f77c741c7 --- /dev/null +++ b/community/ois/ois-1.3-gcc47.patch @@ -0,0 +1,49 @@ +--- ois-v1-3.orig/demos/FFConsoleDemo.cpp 2010-03-31 22:38:04.000000000 -0500 ++++ ois-v1-3/demos/FFConsoleDemo.cpp 2012-12-24 00:33:49.240616817 -0500 +@@ -7,6 +7,7 @@ + #include <ios>
+ #include <sstream>
+ #include <vector>
++#include <unistd.h>
+
+ using namespace std;
+
+--- ois-v1-3.orig/demos/OISConsole.cpp 2010-08-15 17:51:34.000000000 -0500 ++++ ois-v1-3/demos/OISConsole.cpp 2012-12-24 00:44:27.697240229 -0500 +@@ -12,6 +12,7 @@ + #include <iostream>
+ #include <vector>
+ #include <sstream>
++#include <unistd.h>
+
+ ////////////////////////////////////Needed Windows Headers////////////
+ #if defined OIS_WIN32_PLATFORM
+@@ -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;
+ }
+--- ois-v1-3.orig/src/linux/LinuxJoyStickEvents.cpp 2010-07-25 20:28:41.000000000 -0500 ++++ ois-v1-3/src/linux/LinuxJoyStickEvents.cpp 2012-12-24 00:36:18.360998563 -0500 +@@ -33,6 +33,7 @@ + #include <fcntl.h> //Needed to Open a file descriptor
+ #include <cassert>
+ #include <linux/input.h>
++#include <unistd.h>
+
+
+ #include <sstream>
+--- ois-v1-3.orig/src/linux/LinuxForceFeedback.cpp 2010-03-31 22:06:55.000000000 -0500 ++++ ois-v1-3/src/linux/LinuxForceFeedback.cpp 2012-12-24 00:36:54.023723000 -0500 +@@ -26,6 +26,7 @@ + #include <cstdlib>
+ #include <errno.h>
+ #include <memory.h>
++#include <unistd.h>
+
+ using namespace OIS;
+
|