Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2008 16:14:56 +0400 (MSD)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/124711: [NEW PORT] devel/ois: Object Oriented Input System
Message-ID:  <20080618121456.DF04917046@hades.panopticon>
Resent-Message-ID: <200806181220.m5ICK4k1067729@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         124711
>Category:       ports
>Synopsis:       [NEW PORT] devel/ois: Object Oriented Input System
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 18 12:20:04 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 7.0-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #0: Fri Apr 25 11:18:45 MSD 2008 root@hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
Object Oriented Input System (OIS) is meant to be a cross platform,
simple solution for using all kinds of Input Devices (KeyBoards,
Mice, Joysticks, etc) and feedback devices (e.g. forcefeedback).
Written in C++ using Object Oriented Design patterns.

NOTE: this ports lacks joystick support. For now.

WWW: http://www.wreckedgames.com/
>How-To-Repeat:
>Fix:

--- ois-1.2.0.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ois
#	ois/Makefile
#	ois/distinfo
#	ois/files
#	ois/files/patch-src-linux-LinuxInputManager.cpp
#	ois/files/patch-src-Makefile.am
#	ois/pkg-descr
#	ois/pkg-plist
#
echo c - ois
mkdir -p ois > /dev/null 2>&1
echo x - ois/Makefile
sed 's/^X//' >ois/Makefile << 'END-of-ois/Makefile'
X# New ports collection makefile for:	ois
X# Date created:		16 Jun 2008
X# Whom:			Dmitry Marakasov <amdmi3@amdmi3.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ois
XPORTVERSION=	1.2.0
XCATEGORIES=	devel
XMASTER_SITES=	SF
XMASTER_SITE_SUBDIR=	wgois
XDISTNAME=	${PORTNAME}_${PORTVERSION}
X
XMAINTAINER=	amdmi3@amdmi3.ru
XCOMMENT=	Object Oriented Input System
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_AUTOTOOLS=	libtool:15:env aclocal:19:env autoheader:261:env automake:19:env autoconf:261:env
XUSE_XORG=	x11 xaw
X
XCONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include"
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
Xpost-patch:
X	@${REINPLACE_CMD} 's|^pkgconfigdir = .*|pkgconfigdir=$${prefix}/libdata/pkgconfig|' \
X		${WRKSRC}/Makefile.am
X
Xpre-configure:
X	@cd ${WRKSRC} && ./bootstrap
X
X.include <bsd.port.mk>
END-of-ois/Makefile
echo x - ois/distinfo
sed 's/^X//' >ois/distinfo << 'END-of-ois/distinfo'
XMD5 (ois_1.2.0.tar.gz) = 6a8cedad04f095127ca1455162fec955
XSHA256 (ois_1.2.0.tar.gz) = 175414df5d7b924779fa513ea614081ae55ae708a5e29473e74911297e4be708
XSIZE (ois_1.2.0.tar.gz) = 109768
END-of-ois/distinfo
echo c - ois/files
mkdir -p ois/files > /dev/null 2>&1
echo x - ois/files/patch-src-linux-LinuxInputManager.cpp
sed 's/^X//' >ois/files/patch-src-linux-LinuxInputManager.cpp << 'END-of-ois/files/patch-src-linux-LinuxInputManager.cpp'
X--- src/linux/LinuxInputManager.cpp.orig	2008-01-28 00:24:28.000000000 +0300
X+++ src/linux/LinuxInputManager.cpp	2008-06-16 11:12:52.000000000 +0400
X@@ -22,7 +22,6 @@
X */
X #include "linux/LinuxInputManager.h"
X #include "linux/LinuxKeyboard.h"
X-#include "linux/LinuxJoyStickEvents.h"
X #include "linux/LinuxMouse.h"
X #include "OISException.h"
X #include <cstdlib>
X@@ -49,8 +48,6 @@
X //--------------------------------------------------------------------------------//
X LinuxInputManager::~LinuxInputManager()
X {
X-	//Close all joysticks
X-	LinuxJoyStick::_clearJoys(unusedJoyStickList);
X }
X 
X //--------------------------------------------------------------------------------//
X@@ -99,8 +96,6 @@
X void LinuxInputManager::_enumerateDevices()
X {
X 	//Enumerate all attached devices
X-	unusedJoyStickList = LinuxJoyStick::_scanJoys();
X-	joySticks = unusedJoyStickList.size();
X }
X 
X //----------------------------------------------------------------------------//
X@@ -114,9 +109,6 @@
X 	if( mouseUsed == false )
X 		ret.insert(std::make_pair(OISMouse, mInputSystemName));
X 
X-	for(JoyStickInfoList::iterator i = unusedJoyStickList.begin(); i != unusedJoyStickList.end(); ++i)
X-		ret.insert(std::make_pair(OISJoyStick, i->vendor));
X-
X 	return ret;
X }
X 
X@@ -127,7 +119,7 @@
X 	{
X 	case OISKeyboard: return 1;
X 	case OISMouse: return 1;
X-	case OISJoyStick: return joySticks;
X+	case OISJoyStick: return 0;
X 	default: return 0;
X 	}
X }
X@@ -139,7 +131,7 @@
X 	{
X 	case OISKeyboard: return keyboardUsed ? 0 : 1;
X 	case OISMouse: return mouseUsed ? 0 : 1;
X-	case OISJoyStick: return (int)unusedJoyStickList.size();
X+	case OISJoyStick: return 0;
X 	default: return 0;
X 	}
X }
X@@ -180,19 +172,6 @@
X 			obj = new LinuxMouse(this, bufferMode, grabMouse, hideMouse);
X 		break;
X 	}
X-	case OISJoyStick:
X-	{
X-		for(JoyStickInfoList::iterator i = unusedJoyStickList.begin(); i != unusedJoyStickList.end(); ++i)
X-		{
X-			if(vendor == "" || i->vendor == vendor)
X-			{
X-				obj = new LinuxJoyStick(this, bufferMode, *i);
X-				unusedJoyStickList.erase(i);
X-				break;
X-			}
X-		}
X-		break;
X-	}
X 	default:
X 		break;
X 	}
X@@ -208,11 +187,6 @@
X {
X 	if( obj )
X 	{
X-		if( obj->type() == OISJoyStick )
X-		{
X-			unusedJoyStickList.push_back( ((LinuxJoyStick*)obj)->_getJoyInfo() );
X-		}
X-
X 		delete obj;
X 	}
X }
END-of-ois/files/patch-src-linux-LinuxInputManager.cpp
echo x - ois/files/patch-src-Makefile.am
sed 's/^X//' >ois/files/patch-src-Makefile.am << 'END-of-ois/files/patch-src-Makefile.am'
X--- src/Makefile.am.orig	2008-02-14 06:33:36.000000000 +0300
X+++ src/Makefile.am	2008-06-16 11:10:17.000000000 +0400
X@@ -1,4 +1,4 @@
X-INCLUDES = $(STLPORT_CFLAGS) -I$(top_srcdir)/includes $(CFLAGS) -I/usr/X11R6/include
X+INCLUDES = $(STLPORT_CFLAGS) -I$(top_srcdir)/includes
X 
X 
X 
X@@ -10,16 +10,13 @@
X 	OISKeyboard.cpp \
X 	OISForceFeedback.cpp \
X 	OISException.cpp \
X-	./linux/EventHelpers.cpp \
X 	./linux/LinuxInputManager.cpp \
X-        ./linux/LinuxJoyStickEvents.cpp \
X-        ./linux/LinuxForceFeedback.cpp \
X 	./linux/LinuxKeyboard.cpp \
X 	./linux/LinuxMouse.cpp
X 
X libOIS_la_LDFLAGS = -release @PACKAGE_VERSION@
X #libOIS_la_LDFLAGS = -version-info $(shell echo "@PACKAGE_VERSION@" | tr '.' ':')
X 
X-libOIS_la_LIBADD = $(STLPORT_LIBS) -L/usr/X11R6/lib -lX11
X+libOIS_la_LIBADD = $(STLPORT_LIBS) -lX11
X 
X #eof "$Id: Makefile.am,v 1.15.2.1 2008/02/14 03:33:36 pjcast Exp $"
END-of-ois/files/patch-src-Makefile.am
echo x - ois/pkg-descr
sed 's/^X//' >ois/pkg-descr << 'END-of-ois/pkg-descr'
XObject Oriented Input System (OIS) is meant to be a cross platform,
Xsimple solution for using all kinds of Input Devices (KeyBoards,
XMice, Joysticks, etc) and feedback devices (e.g. forcefeedback).
XWritten in C++ using Object Oriented Design patterns.
X
XNOTE: this ports lacks joystick support. For now.
X
XWWW: http://www.wreckedgames.com/
END-of-ois/pkg-descr
echo x - ois/pkg-plist
sed 's/^X//' >ois/pkg-plist << 'END-of-ois/pkg-plist'
Xinclude/OIS/OIS.h
Xinclude/OIS/OISConfig.h
Xinclude/OIS/OISEffect.h
Xinclude/OIS/OISEvents.h
Xinclude/OIS/OISException.h
Xinclude/OIS/OISFactoryCreator.h
Xinclude/OIS/OISForceFeedback.h
Xinclude/OIS/OISInputManager.h
Xinclude/OIS/OISInterface.h
Xinclude/OIS/OISJoyStick.h
Xinclude/OIS/OISKeyboard.h
Xinclude/OIS/OISMouse.h
Xinclude/OIS/OISObject.h
Xinclude/OIS/OISPrereqs.h
Xlib/libOIS-1.2.0.so
Xlib/libOIS.a
Xlib/libOIS.la
Xlib/libOIS.so
Xlibdata/pkgconfig/OIS.pc
X@dirrm include/OIS
END-of-ois/pkg-plist
exit
--- ois-1.2.0.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080618121456.DF04917046>