ports/95990: New Port: emulators/xjoypad
Timothy Beyer
beyert at cs.ucr.edu
Tue Apr 18 09:00:59 UTC 2006
>Number: 95990
>Category: ports
>Synopsis: New Port: emulators/xjoypad
>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: Tue Apr 18 09:00:28 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Timothy Beyer
>Release: FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD aeonserv.aeonnet 6.0-STABLE FreeBSD 6.0-STABLE #0: Tue Mar 14 03:00:02 PST 2006 beyert at 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:
--- 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:
#
# xjoypad/
# xjoypad/Makefile
# xjoypad/distinfo
# xjoypad/pkg-message
# xjoypad/pkg-plist
# xjoypad/pkg-descr
#
echo c - xjoypad/
mkdir -p xjoypad/ > /dev/null 2>&1
echo x - xjoypad/Makefile
sed 's/^X//' >xjoypad/Makefile << 'END-of-xjoypad/Makefile'
X# New ports collection makefile for: linux-xjoypad
X# Date created: 17 Apr 2006
X# Whom: Timothy Beyer <beyert at cs.ucr.edu>
X#
X# $FreeBSD: ports/emulators/linux-xjoypad/Makefile,v 1.00 2006/04/17 17:23:40 beyert Exp $
X#
X
XPORTNAME= xjoypad
XPORTVERSION= 1
XCATEGORIES= emulators linux
XMASTER_SITES= http://members.chello.at/erich.kitzmueller/ammoq/
XPKGNAMEPREFIX= linux-
XDISTNAME= xjoypad
X
XMAINTAINER= beyert at 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
X
Xdo-build:
X (cd ${WRKSRC} && ${CC} ${CFLAGS} -o xjoypad ${FILES} -lcompat ${LIB_X11})
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-xjoypad/Makefile
echo x - xjoypad/distinfo
sed 's/^X//' >xjoypad/distinfo << 'END-of-xjoypad/distinfo'
XMD5 (xjoypad.zip) = 3cd14dae1e19f499e658c42d1d8861cc
XSHA256 (xjoypad.zip) = 1e640c369191c977a9729deac422d97dcc964cec219e5e1fc953afaeab8e82a8
XSIZE (xjoypad.zip) = 419299
END-of-xjoypad/distinfo
echo x - xjoypad/pkg-message
sed 's/^X//' >xjoypad/pkg-message << 'END-of-xjoypad/pkg-message'
X===============================================================================
XTo activate the default joystick to key mapping, run the command
X
Xxjoypad -device /dev/input/js* &
X
Xwhere * depends on whether you are using using a standard game pad or
Xa usb game pad
X
Xnote that the -device switch is incorrectly stated as -devicefilename
Xin the documentation
X===============================================================================
END-of-xjoypad/pkg-message
echo x - xjoypad/pkg-plist
sed 's/^X//' >xjoypad/pkg-plist << 'END-of-xjoypad/pkg-plist'
Xbin/xjoypad
X%%PORTDOCS%%%%DOCSDIR%%/README.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-xjoypad/pkg-plist
echo x - xjoypad/pkg-descr
sed 's/^X//' >xjoypad/pkg-descr << 'END-of-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 at cs.ucr.edu
END-of-xjoypad/pkg-descr
exit
--- xjoypad.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list