From 03aa6775d024407df20ec58b047e386252daec28 Mon Sep 17 00:00:00 2001 From: milisbir Date: Sat, 10 Feb 2018 01:32:03 +0200 Subject: [PATCH] ois --- talimatname/genel/o/ois/gcc47.patch | 56 +++++++++++++++++++++++++++++ talimatname/genel/o/ois/talimat | 25 +++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 talimatname/genel/o/ois/gcc47.patch create mode 100644 talimatname/genel/o/ois/talimat diff --git a/talimatname/genel/o/ois/gcc47.patch b/talimatname/genel/o/ois/gcc47.patch new file mode 100644 index 000000000..2727d9173 --- /dev/null +++ b/talimatname/genel/o/ois/gcc47.patch @@ -0,0 +1,56 @@ +diff -rup ois-v1-3/configure.ac patched/configure.ac +--- ois-v1-3/configure.ac 2010-04-04 13:51:08.000000000 -0400 ++++ patched/configure.ac 2013-01-30 20:33:38.461394645 -0500 +@@ -5,7 +5,7 @@ AC_INIT( [OIS], 1.3.0 ) + + AC_CANONICAL_TARGET + AM_INIT_AUTOMAKE( [OIS], 1.3.0 ) +-AM_CONFIG_HEADER([includes/config.h]) ++AC_CONFIG_HEADERS([includes/config.h]) + + dnl Check for programs + AC_PROG_CC +diff -rup ois-v1-3/demos/FFConsoleDemo.cpp patched/demos/FFConsoleDemo.cpp +--- ois-v1-3/demos/FFConsoleDemo.cpp 2010-03-31 23:38:04.000000000 -0400 ++++ patched/demos/FFConsoleDemo.cpp 2013-01-30 20:33:18.281393097 -0500 +@@ -7,6 +7,7 @@ + #include + #include + #include ++#include + + using namespace std; + +diff -rup ois-v1-3/demos/OISConsole.cpp patched/demos/OISConsole.cpp +--- ois-v1-3/demos/OISConsole.cpp 2010-08-15 18:51:34.000000000 -0400 ++++ patched/demos/OISConsole.cpp 2013-01-30 20:33:18.281393097 -0500 +@@ -12,6 +12,7 @@ + #include + #include + #include ++#include + + ////////////////////////////////////Needed Windows Headers//////////// + #if defined OIS_WIN32_PLATFORM +diff -rup ois-v1-3/src/linux/LinuxForceFeedback.cpp patched/src/linux/LinuxForceFeedback.cpp +--- ois-v1-3/src/linux/LinuxForceFeedback.cpp 2010-03-31 23:06:55.000000000 -0400 ++++ patched/src/linux/LinuxForceFeedback.cpp 2013-01-30 20:33:18.284726761 -0500 +@@ -26,6 +26,7 @@ restrictions: + #include + #include + #include ++#include + + using namespace OIS; + +diff -rup ois-v1-3/src/linux/LinuxJoyStickEvents.cpp patched/src/linux/LinuxJoyStickEvents.cpp +--- ois-v1-3/src/linux/LinuxJoyStickEvents.cpp 2010-07-25 21:28:41.000000000 -0400 ++++ patched/src/linux/LinuxJoyStickEvents.cpp 2013-01-30 20:33:18.284726761 -0500 +@@ -33,6 +33,7 @@ restrictions: + #include //Needed to Open a file descriptor + #include + #include ++#include + + + #include diff --git a/talimatname/genel/o/ois/talimat b/talimatname/genel/o/ois/talimat new file mode 100644 index 000000000..6ef5511c2 --- /dev/null +++ b/talimatname/genel/o/ois/talimat @@ -0,0 +1,25 @@ +# Tanım: Nesneye Yönelik Giriş Sistemi +# URL: http://sourceforge.net/projects/wgois +# Paketçi: Cihan_Alkan +# Gerekler: xorg-libxaw +# Grup: + +isim=ois +surum=1.3 +devir=1 +_oisver=${surum/./-} +kaynak=(https://downloads.sourceforge.net/project/wgois/Source%20Release/${surum}/ois_v${_oisver}.tar.gz + gcc47.patch) + +derle() { + + cd ${SRC}/${isim}-v${_oisver} + + patch -Np1 < ${SRC}/gcc47.patch + + chmod +x bootstrap + ./bootstrap + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install +}