summaryrefslogtreecommitdiff
path: root/community/ois
diff options
context:
space:
mode:
Diffstat (limited to 'community/ois')
-rw-r--r--community/ois/PKGBUILD9
-rw-r--r--community/ois/ois-1.3-gcc47.patch49
2 files changed, 55 insertions, 3 deletions
diff --git a/community/ois/PKGBUILD b/community/ois/PKGBUILD
index f7de157c3..484a72e92 100644
--- a/community/ois/PKGBUILD
+++ b/community/ois/PKGBUILD
@@ -6,15 +6,18 @@ pkgver=1.3
_oisver=${pkgver/./-}
pkgrel=2
pkgdesc="Object Oriented Input System"
-arch=('i686' 'x86_64')
+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;
+