Bug 95990 - New Port: emulators/xjoypad
Summary: New Port: emulators/xjoypad
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-18 10:00 UTC by Timothy Beyer
Modified: 2008-05-28 14:00 UTC (History)
1 user (show)

See Also:


Attachments
xjoypad.shar (3.34 KB, text/plain)
2006-04-18 10:00 UTC, Timothy Beyer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Beyer 2006-04-18 10:00:28 UTC
xjoypad allows an USB joypad (probably a USB Joystick, too) to be used
with games on linux (probably other unix-like operating systems too).
This is done by mapping the joypad events to X keyboard events which
are sent to the window currently having the focus. Therefore only
keyboard-controlled games are currently supported by xjoypad. xjoypad
was written to add joypad support to the playstation emulator epsxe.

How-To-Repeat: 	N/A
Comment 1 Alejandro Pulver freebsd_committer freebsd_triage 2006-10-01 20:54:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->alepulver

Take PR.
Comment 2 Alejandro Pulver freebsd_committer freebsd_triage 2006-10-02 01:11:34 UTC
State Changed
From-To: open->feedback

Doesn't build. Ask submitter for a fix.
Comment 3 Alejandro Pulver freebsd_committer freebsd_triage 2006-10-02 01:15:51 UTC
Hello.

This port fails to build.

The log is available at:
ftp://ftp.alepulver.com.ar/logs/linux-xjoypad-1.log.bz2

Could you please submit a fix?

Best Regards,
Ale
Comment 4 Alejandro Pulver freebsd_committer freebsd_triage 2006-11-08 19:35:23 UTC
Responsible Changed
From-To: alepulver->freebsd-ports-bugs

Leave PR
Comment 5 Gabor Kovesdan freebsd_committer freebsd_triage 2006-12-20 00:15:50 UTC
Dear Submitter,

are you still interested in fixing this port so that it can be committed,
or can we close this problem report? I'm looking forward to
your answer. Thank you for your time on contributing to FreeBSD.

Regards,
Gabor Kovesdan
Comment 6 Timothy Beyer 2006-12-20 06:21:14 UTC
At Wed, 20 Dec 2006 01:15:50 +0100,
Gabor Kovesdan wrote:
> 
> Dear Submitter,
> 
> are you still interested in fixing this port so that it can be committed,
> or can we close this problem report? I'm looking forward to
> your answer. Thank you for your time on contributing to FreeBSD.
> 
> Regards,
> Gabor Kovesdan

I'm definitely interested in fixing the problem, but I have not yet been able to reproduce the faulty result that the tester mentioned.  I am going to update to the latest version of the linuxulator and see if that brings up the problem, the version of linuxlator I have installed is linux_base-8-8.0_6, not linux_base-fc-4_9 as is in current.

--Tim
Comment 7 Martin Wilke freebsd_committer freebsd_triage 2007-03-28 10:18:06 UTC
State Changed
From-To: feedback->closed

Submitter timeout about 3 months. Please feel free to submit a follow-up 
for this PR ticket if you can come up with a solution. Thanks.
Comment 8 Timothy Beyer 2008-04-22 08:51:20 UTC
>Submitter-Id:	current-users
>Originator:	Timothy Beyer
>Organization:	no organization
>Confidential:	no
>Synopsis:	New Port: emulators/linux-xjoypad
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		change-request
>Release:	FreeBSD 7.0-RELEASE-p1 i386
>Environment:
FreeBSD aeonserv.aeonnet 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #0: Sun Apr 20 02:48:24 PDT 2008     beyert@aeonserv.aeonnet:/usr/src/sys/i386/compile/CUSTOM  i386

>Description:
xjoypad allows an USB joypad (probably a USB Joystick, too) to be used
with games on linux (probably other unix-like operating systems too).
This is done by mapping the joypad events to X keyboard events which
are sent to the window currently having the focus. Therefore only
keyboard-controlled games are currently supported by xjoypad. xjoypad
was written to add joypad support to the playstation emulator epsxe.

>How-To-Repeat:
	N/A
>Fix:
This is a fix to a prior problem report that I made in 2006,
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/95990
It now works on the latest linuxulator in 7.0-RELEASE.

NOTE: This port is dependent on the application of a problem report for linux-js,
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/120118
(also see http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2008-January/134947.html)
This port will not compile until pr #120118 is applied to linux-js.

--- linux-xjoypad.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:
#
#	linux-xjoypad
#	linux-xjoypad/pkg-descr
#	linux-xjoypad/pkg-message
#	linux-xjoypad/Makefile
#	linux-xjoypad/pkg-plist
#	linux-xjoypad/distinfo
#	linux-xjoypad/files
#	linux-xjoypad/files/patch-xjoypad.c
#
echo c - linux-xjoypad
mkdir -p linux-xjoypad > /dev/null 2>&1
echo x - linux-xjoypad/pkg-descr
sed 's/^X//' >linux-xjoypad/pkg-descr << 'END-of-linux-xjoypad/pkg-descr'
Xexcerpt from README.txt:
X
Xxjoypad allows an USB joypad (probably a USB joystick, too) to be used
Xwith games on linux (probably other unix-like operating systems too).
XThis is done by mapping the joypad events to X keyboard events which
Xare sent to the window currently having the focus. Therefore only
Xkeyboard-controlled games are currently supported by xjoypad. xjoypad
Xwas written to add joypad support to the playstation emulator epsxe.
X
XThis is the Linux version.
X
XWWW: http://members.chello.at/erich.kitzmueller/ammoq/download.html
X
X- Timothy Beyer
Xbeyert@cs.ucr.edu
END-of-linux-xjoypad/pkg-descr
echo x - linux-xjoypad/pkg-message
sed 's/^X//' >linux-xjoypad/pkg-message << 'END-of-linux-xjoypad/pkg-message'
X===============================================================================
XTo activate the default joystick to key mapping, run the command
X
Xxjoypad -device /dev/input/js[device-id] &
X
Xwhere [device-id] depends on whether you are using using a standard game pad or
Xa usb game pad (it's probably going to be /dev/input/js0)
X
Xnote that the -device switch is incorrectly stated as -devicefilename
Xin the documentation
X===============================================================================
END-of-linux-xjoypad/pkg-message
echo x - linux-xjoypad/Makefile
sed 's/^X//' >linux-xjoypad/Makefile << 'END-of-linux-xjoypad/Makefile'
X# New ports collection makefile for:	linux-xjoypad
X# Date created:			17 Apr 2006
X# Whom:				Timothy Beyer <beyert@cs.ucr.edu>
X#
X# $FreeBSD: ports/emulators/linux-xjoypad/Makefile,v 1.20 2008/04/22 00:25:20 beyert Exp $
X#
X
XPORTNAME= xjoypad
XPORTVERSION= 1
XPORTREVISION= 1
XCATEGORIES=	emulators linux
XMASTER_SITES= http://members.chello.at/erich.kitzmueller/ammoq/
XPKGNAMEPREFIX= linux-
XDISTNAME= xjoypad
X
XMAINTAINER=	beyert@cs.ucr.edu
XCOMMENT= Joy-Device to X mapping (lets you play Linux games with a joypad)
X
XBUILD_DEPENDS=${X11BASE}/lib/libX11.a:${PORTSDIR}/x11/libX11
XRUN_DEPENDS= /boot/modules/linux_js.ko:${PORTSDIR}/devel/linux-js
X
XWRKSRC=	${WRKDIR}/xjoypad/
XUSE_LINUX= yes
XUSE_X_PREFIX= yes
XUSE_ZIP= yes
X
XFILES=xjoypad.c sendevent.c
XCFLAGS+=-I ${PREFIX}/include
XLIB_X11=${PREFIX}/lib/libX11.a
XLIB_XAU=${PREFIX}/lib/libXau.a
XLIB_XDMCP=${PREFIX}/lib/libXdmcp.a
X
Xdo-build:
X	(cd ${WRKSRC} && ${CC} ${CFLAGS} -o xjoypad ${FILES} -lcompat -lm ${LIB_X11} ${LIB_XAU} ${LIB_XDMCP})
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/xjoypad ${PREFIX}/bin
X
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
X.endif
X
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-linux-xjoypad/Makefile
echo x - linux-xjoypad/pkg-plist
sed 's/^X//' >linux-xjoypad/pkg-plist << 'END-of-linux-xjoypad/pkg-plist'
Xbin/xjoypad
X%%PORTDOCS%%%%DOCSDIR%%/README.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-linux-xjoypad/pkg-plist
echo x - linux-xjoypad/distinfo
sed 's/^X//' >linux-xjoypad/distinfo << 'END-of-linux-xjoypad/distinfo'
XMD5 (xjoypad.zip) = 3cd14dae1e19f499e658c42d1d8861cc
XSHA256 (xjoypad.zip) = 1e640c369191c977a9729deac422d97dcc964cec219e5e1fc953afaeab8e82a8
XSIZE (xjoypad.zip) = 419299
END-of-linux-xjoypad/distinfo
echo c - linux-xjoypad/files
mkdir -p linux-xjoypad/files > /dev/null 2>&1
echo x - linux-xjoypad/files/patch-xjoypad.c
sed 's/^X//' >linux-xjoypad/files/patch-xjoypad.c << 'END-of-linux-xjoypad/files/patch-xjoypad.c'
X--- xjoypad.c.orig	2008-04-20 20:07:58.000000000 -0700
X+++ xjoypad.c	2008-04-20 20:11:19.000000000 -0700
X@@ -20,6 +20,7 @@
X 
X #include <stdio.h>
X #include <stdlib.h>
X+#include <string.h>
X #include <sys/types.h>
X #include <sys/stat.h>
X #include <fcntl.h>
END-of-linux-xjoypad/files/patch-xjoypad.c
exit
--- linux-xjoypad.shar ends here ---
Comment 9 Timothy Beyer 2008-04-22 08:51:20 UTC
>Submitter-Id:	current-users
>Originator:	Timothy Beyer
>Organization:	no organization
>Confidential:	no
>Synopsis:	New Port: emulators/linux-xjoypad
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		change-request
>Release:	FreeBSD 7.0-RELEASE-p1 i386
>Environment:
FreeBSD aeonserv.aeonnet 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #0: Sun Apr 20 02:48:24 PDT 2008     beyert@aeonserv.aeonnet:/usr/src/sys/i386/compile/CUSTOM  i386

>Description:
xjoypad allows an USB joypad (probably a USB Joystick, too) to be used
with games on linux (probably other unix-like operating systems too).
This is done by mapping the joypad events to X keyboard events which
are sent to the window currently having the focus. Therefore only
keyboard-controlled games are currently supported by xjoypad. xjoypad
was written to add joypad support to the playstation emulator epsxe.

>How-To-Repeat:
	N/A
>Fix:
This is a fix to a prior problem report that I made in 2006,
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/95990
It now works on the latest linuxulator in 7.0-RELEASE.

NOTE: This port is dependent on the application of a problem report for linux-js,
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/120118
(also see http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2008-January/134947.html)
This port will not compile until pr #120118 is applied to linux-js.

--- linux-xjoypad.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:
#
#	linux-xjoypad
#	linux-xjoypad/pkg-descr
#	linux-xjoypad/pkg-message
#	linux-xjoypad/Makefile
#	linux-xjoypad/pkg-plist
#	linux-xjoypad/distinfo
#	linux-xjoypad/files
#	linux-xjoypad/files/patch-xjoypad.c
#
echo c - linux-xjoypad
mkdir -p linux-xjoypad > /dev/null 2>&1
echo x - linux-xjoypad/pkg-descr
sed 's/^X//' >linux-xjoypad/pkg-descr << 'END-of-linux-xjoypad/pkg-descr'
Xexcerpt from README.txt:
X
Xxjoypad allows an USB joypad (probably a USB joystick, too) to be used
Xwith games on linux (probably other unix-like operating systems too).
XThis is done by mapping the joypad events to X keyboard events which
Xare sent to the window currently having the focus. Therefore only
Xkeyboard-controlled games are currently supported by xjoypad. xjoypad
Xwas written to add joypad support to the playstation emulator epsxe.
X
XThis is the Linux version.
X
XWWW: http://members.chello.at/erich.kitzmueller/ammoq/download.html
X
X- Timothy Beyer
Xbeyert@cs.ucr.edu
END-of-linux-xjoypad/pkg-descr
echo x - linux-xjoypad/pkg-message
sed 's/^X//' >linux-xjoypad/pkg-message << 'END-of-linux-xjoypad/pkg-message'
X===============================================================================
XTo activate the default joystick to key mapping, run the command
X
Xxjoypad -device /dev/input/js[device-id] &
X
Xwhere [device-id] depends on whether you are using using a standard game pad or
Xa usb game pad (it's probably going to be /dev/input/js0)
X
Xnote that the -device switch is incorrectly stated as -devicefilename
Xin the documentation
X===============================================================================
END-of-linux-xjoypad/pkg-message
echo x - linux-xjoypad/Makefile
sed 's/^X//' >linux-xjoypad/Makefile << 'END-of-linux-xjoypad/Makefile'
X# New ports collection makefile for:	linux-xjoypad
X# Date created:			17 Apr 2006
X# Whom:				Timothy Beyer <beyert@cs.ucr.edu>
X#
X# $FreeBSD: ports/emulators/linux-xjoypad/Makefile,v 1.20 2008/04/22 00:25:20 beyert Exp $
X#
X
XPORTNAME= xjoypad
XPORTVERSION= 1
XPORTREVISION= 1
XCATEGORIES=	emulators linux
XMASTER_SITES= http://members.chello.at/erich.kitzmueller/ammoq/
XPKGNAMEPREFIX= linux-
XDISTNAME= xjoypad
X
XMAINTAINER=	beyert@cs.ucr.edu
XCOMMENT= Joy-Device to X mapping (lets you play Linux games with a joypad)
X
XBUILD_DEPENDS=${X11BASE}/lib/libX11.a:${PORTSDIR}/x11/libX11
XRUN_DEPENDS= /boot/modules/linux_js.ko:${PORTSDIR}/devel/linux-js
X
XWRKSRC=	${WRKDIR}/xjoypad/
XUSE_LINUX= yes
XUSE_X_PREFIX= yes
XUSE_ZIP= yes
X
XFILES=xjoypad.c sendevent.c
XCFLAGS+=-I ${PREFIX}/include
XLIB_X11=${PREFIX}/lib/libX11.a
XLIB_XAU=${PREFIX}/lib/libXau.a
XLIB_XDMCP=${PREFIX}/lib/libXdmcp.a
X
Xdo-build:
X	(cd ${WRKSRC} && ${CC} ${CFLAGS} -o xjoypad ${FILES} -lcompat -lm ${LIB_X11} ${LIB_XAU} ${LIB_XDMCP})
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/xjoypad ${PREFIX}/bin
X
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
X.endif
X
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-linux-xjoypad/Makefile
echo x - linux-xjoypad/pkg-plist
sed 's/^X//' >linux-xjoypad/pkg-plist << 'END-of-linux-xjoypad/pkg-plist'
Xbin/xjoypad
X%%PORTDOCS%%%%DOCSDIR%%/README.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-linux-xjoypad/pkg-plist
echo x - linux-xjoypad/distinfo
sed 's/^X//' >linux-xjoypad/distinfo << 'END-of-linux-xjoypad/distinfo'
XMD5 (xjoypad.zip) = 3cd14dae1e19f499e658c42d1d8861cc
XSHA256 (xjoypad.zip) = 1e640c369191c977a9729deac422d97dcc964cec219e5e1fc953afaeab8e82a8
XSIZE (xjoypad.zip) = 419299
END-of-linux-xjoypad/distinfo
echo c - linux-xjoypad/files
mkdir -p linux-xjoypad/files > /dev/null 2>&1
echo x - linux-xjoypad/files/patch-xjoypad.c
sed 's/^X//' >linux-xjoypad/files/patch-xjoypad.c << 'END-of-linux-xjoypad/files/patch-xjoypad.c'
X--- xjoypad.c.orig	2008-04-20 20:07:58.000000000 -0700
X+++ xjoypad.c	2008-04-20 20:11:19.000000000 -0700
X@@ -20,6 +20,7 @@
X 
X #include <stdio.h>
X #include <stdlib.h>
X+#include <string.h>
X #include <sys/types.h>
X #include <sys/stat.h>
X #include <fcntl.h>
END-of-linux-xjoypad/files/patch-xjoypad.c
exit
--- linux-xjoypad.shar ends here ---
Comment 10 Mark Linimon freebsd_committer freebsd_triage 2008-04-22 10:16:19 UTC
State Changed
From-To: closed->open

A new version has been submitted.
Comment 11 Edwin Groothuis freebsd_committer freebsd_triage 2008-05-28 13:57:23 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 12 dfilter service freebsd_committer freebsd_triage 2008-05-28 13:59:04 UTC
edwin       2008-05-28 12:58:56 UTC

  FreeBSD ports repository

  Modified files:
    emulators            Makefile 
  Added files:
    emulators/linux-xjoypad Makefile distinfo pkg-descr 
                            pkg-message pkg-plist 
    emulators/linux-xjoypad/files patch-xjoypad.c 
  Log:
  New Port: emulators/xjoypad
  
          xjoypad allows an USB joypad (probably a USB Joystick, too)
          to be used with games on linux (probably other unix-like
          operating systems too).  This is done by mapping the joypad
          events to X keyboard events which are sent to the window
          currently having the focus. Therefore only keyboard-controlled
          games are currently supported by xjoypad. xjoypad was written
          to add joypad support to the playstation emulator epsxe.
  
  PR:             ports/95990
  Submitted by:   Timothy Beyer <beyert@cs.ucr.edu>
  
  Revision  Changes    Path
  1.258     +1 -0      ports/emulators/Makefile
  1.1       +47 -0     ports/emulators/linux-xjoypad/Makefile (new)
  1.1       +3 -0      ports/emulators/linux-xjoypad/distinfo (new)
  1.1       +10 -0     ports/emulators/linux-xjoypad/files/patch-xjoypad.c (new)
  1.1       +15 -0     ports/emulators/linux-xjoypad/pkg-descr (new)
  1.1       +11 -0     ports/emulators/linux-xjoypad/pkg-message (new)
  1.1       +3 -0      ports/emulators/linux-xjoypad/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"