summaryrefslogtreecommitdiff
path: root/dev-games/ois
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-games/ois
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-games/ois')
-rw-r--r--dev-games/ois/Manifest5
-rw-r--r--dev-games/ois/files/ois-1.3-automake-1.13.patch11
-rw-r--r--dev-games/ois/files/ois-1.3-gcc47.patch40
-rw-r--r--dev-games/ois/metadata.xml11
-rw-r--r--dev-games/ois/ois-1.3.ebuild26
5 files changed, 93 insertions, 0 deletions
diff --git a/dev-games/ois/Manifest b/dev-games/ois/Manifest
new file mode 100644
index 000000000000..d78f0fcda848
--- /dev/null
+++ b/dev-games/ois/Manifest
@@ -0,0 +1,5 @@
+AUX ois-1.3-automake-1.13.patch 242 BLAKE2B 63aa87256fb3c79d466edca5d88495f6c698ed9dabfa2e6bca3860521eed1ecab19ef1437a98f2db197e1db8162fc3dccf7e08743814de0517cd5e0abd7b4848 SHA512 c3f386d1a6d62df22408bd7c3ed639b87e91ec4fd6a663fafda9f9e399e1c08e38018967301afb432362d6944cbae4828adf22ee6649343be0848449aed6e029
+AUX ois-1.3-gcc47.patch 1209 BLAKE2B 462cad1fc694d85a118c4b9dce5e75c3199bd991a3b41a2f131ca87e129d564e310ec49086d8a8e61cddae27f9e708fbf518ab41aedf2f594336438b033d898c SHA512 499b960c29eb6be7adce5fe475af61f1a4cc6a3cdf8939eb4a690265f9c83923f3d365b8cd312e224b9f1c22606d607a45ecf05efd85edf87be3e89ede93c6d3
+DIST ois_v1-3.tar.gz 136739 BLAKE2B 88dd3af2c8b253d9cacc5c65510c150ba50c6a47c1c2cd241bf366f38fba0560a7cef08392e338984e8b172020c4a4c37e5eab024fabc695b2f06f93393850ed SHA512 48b7355a9be9c66233691aa5461192fb6e537d284e4366ebf931a76ee3be30f2cf17a4aa350fce6b433eaecf4259414062b9dd5854eaf872b9a18294cfc640c3
+EBUILD ois-1.3.ebuild 617 BLAKE2B 5a9485c2223610823117c57f6660e7007971aba7832e6eb0342720e8155813de9219a8fd1369e8f6c8f1f6601d7e873c8fb315b80fb08523de99337e391c025d SHA512 a0ae76bb48b80baa47e7a9a6e3e566fb1b86f01ea9783f80bbbc4c4c3aee9709d2f938f411dd2c5dad64319d34c4a515334e7cac3a7a4b0dff8f51bf07e74b33
+MISC metadata.xml 328 BLAKE2B b575ed476350e61e180f865c8f9711fd873b4a6e8e3ece407fe248fd33dc37edc7fe1e84262b0e364e5b313fc2e9b41a11d6dd860e9e816bbd5a4787326fad91 SHA512 3ff57cfd54985a9b278904738d8911322385025eb0e4e3f44742a19f5781761fef047e695927b2890e1311f567130cb2efdbae26b3afd69764bb70d48690d70c
diff --git a/dev-games/ois/files/ois-1.3-automake-1.13.patch b/dev-games/ois/files/ois-1.3-automake-1.13.patch
new file mode 100644
index 000000000000..fb103e40335a
--- /dev/null
+++ b/dev-games/ois/files/ois-1.3-automake-1.13.patch
@@ -0,0 +1,11 @@
+--- ois-v1-3/configure.ac
++++ ois-v1-3/configure.ac
+@@ -5,7 +5,7 @@
+
+ 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 --git a/dev-games/ois/files/ois-1.3-gcc47.patch b/dev-games/ois/files/ois-1.3-gcc47.patch
new file mode 100644
index 000000000000..d002ec3cffb5
--- /dev/null
+++ b/dev-games/ois/files/ois-1.3-gcc47.patch
@@ -0,0 +1,40 @@
+--- demos/FFConsoleDemo.cpp.old 2012-07-17 08:41:33.667876985 +0200
++++ demos/FFConsoleDemo.cpp 2012-07-17 08:42:01.415928693 +0200
+@@ -7,6 +7,7 @@
+ #include <ios>
+ #include <sstream>
+ #include <vector>
++#include <unistd.h>
+
+ using namespace std;
+
+--- demos/OISConsole.cpp.old 2012-07-17 08:43:44.637681119 +0200
++++ demos/OISConsole.cpp 2012-07-17 08:44:06.653135337 +0200
+@@ -12,6 +12,7 @@
+ #include <iostream>
+ #include <vector>
+ #include <sstream>
++#include <unistd.h>
+
+ ////////////////////////////////////Needed Windows Headers////////////
+ #if defined OIS_WIN32_PLATFORM
+--- src/linux/LinuxJoyStickEvents.cpp.old 2012-07-17 08:37:56.065155660 +0200
++++ src/linux/LinuxJoyStickEvents.cpp 2012-07-17 08:38:33.236545721 +0200
+@@ -33,6 +33,7 @@
+ #include <fcntl.h> //Needed to Open a file descriptor
+ #include <cassert>
+ #include <linux/input.h>
++#include <unistd.h>
+
+
+ #include <sstream>
+--- src/linux/LinuxForceFeedback.cpp.old 2012-07-17 08:40:02.633268854 +0200
++++ src/linux/LinuxForceFeedback.cpp 2012-07-17 08:40:28.642442655 +0200
+@@ -26,6 +26,7 @@
+ #include <cstdlib>
+ #include <errno.h>
+ #include <memory.h>
++#include <unistd.h>
+
+ using namespace OIS;
+
diff --git a/dev-games/ois/metadata.xml b/dev-games/ois/metadata.xml
new file mode 100644
index 000000000000..5d67c2e9bc85
--- /dev/null
+++ b/dev-games/ois/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">wgois</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-games/ois/ois-1.3.ebuild b/dev-games/ois/ois-1.3.ebuild
new file mode 100644
index 000000000000..a7572e973690
--- /dev/null
+++ b/dev-games/ois/ois-1.3.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools autotools-utils
+
+MY_P=${PN}-v${PV/./-}
+DESCRIPTION="Object-oriented Input System - A cross-platform C++ input handling library"
+HOMEPAGE="https://sourceforge.net/projects/wgois/"
+SRC_URI="mirror://sourceforge/wgois/${MY_P/-/_}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="static-libs"
+
+DEPEND="x11-libs/libXaw
+ x11-libs/libX11"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc47.patch \
+ "${FILESDIR}"/${P}-automake-1.13.patch
+ eautoreconf
+}