Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 1998 08:22:51 +0400 (MSD)
From:      Andrey Zakhvatov <andy@icc.surw.chel.su>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/6171: New port: xtron-1.1a
Message-ID:  <199803300422.IAA20989@icc.surw.chel.su>

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

>Number:         6171
>Category:       ports
>Synopsis:       New port: xtron-1.1a
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 29 20:30:03 PST 1998
>Last-Modified:
>Originator:     Andrey Zakhvatov
>Organization:
South Ural Railway ICC
>Release:        FreeBSD 2.2.2-RELEASE i386
>Environment:

>Description:

   This is a port of Tron game for X Window.

   Xtron is a simple one or two player  version of the  old
classic TRON. The game is simple: avoid running into walls,
your own tail, and that of your opponent.


# 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:
#
#	xtron-1.1a
#	xtron-1.1a/Makefile
#	xtron-1.1a/files
#	xtron-1.1a/files/md5
#	xtron-1.1a/patches
#	xtron-1.1a/patches/patch-ab
#	xtron-1.1a/patches/patch-aa
#	xtron-1.1a/patches/patch-ac
#	xtron-1.1a/pkg
#	xtron-1.1a/pkg/PLIST
#	xtron-1.1a/pkg/COMMENT
#	xtron-1.1a/pkg/DESCR
#
echo c - xtron-1.1a
mkdir -p xtron-1.1a > /dev/null 2>&1
echo x - xtron-1.1a/Makefile
sed 's/^X//' >xtron-1.1a/Makefile << 'END-of-xtron-1.1a/Makefile'
X# New ports collection makefile for:	xtron
X# Version required:			1.1a
X# Date created:				29 March 1998
X# Whom:					Andrey Zakhvatov
X#
X# $Id$
X#
X
XDISTNAME=		xtron-1.1a
XCATEGORIES=		games x11
XMASTER_SITES=		${MASTER_SITE_SUNSITE}
XMASTER_SITE_SUBDIR=	games/arcade
XEXTRACT_SUFX=		.tgz
X
XMAINTAINER=		andy@icc.surw.chel.su
X
XLIB_DEPENDS=		Xpm\\.4\\.:${PORTSDIR}/graphics/xpm
X
XUSE_X11=		yes
X
Xdo-install:
X	@ ${INSTALL_PROGRAM} ${WRKSRC}/xtron ${PREFIX}/bin
X	@ ${MKDIR} ${PREFIX}/share/xtron
X	@ ${INSTALL_DATA} ${WRKSRC}/pixmaps/* ${PREFIX}/share/xtron
X	@ ${INSTALL_DATA} ${WRKSRC}/xtronrc ${PREFIX}/lib/X11/app-defaults/Tron
X	@ ${MKDIR} ${PREFIX}/share/doc/xtron
X.for file in CHANGES COPYING README
X	@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/xtron
X.endfor
X
X.include <bsd.port.mk>
END-of-xtron-1.1a/Makefile
echo c - xtron-1.1a/files
mkdir -p xtron-1.1a/files > /dev/null 2>&1
echo x - xtron-1.1a/files/md5
sed 's/^X//' >xtron-1.1a/files/md5 << 'END-of-xtron-1.1a/files/md5'
XMD5 (xtron-1.1a.tgz) = 1f15c9cb5a03ac740d62cea3f876da60
END-of-xtron-1.1a/files/md5
echo c - xtron-1.1a/patches
mkdir -p xtron-1.1a/patches > /dev/null 2>&1
echo x - xtron-1.1a/patches/patch-ab
sed 's/^X//' >xtron-1.1a/patches/patch-ab << 'END-of-xtron-1.1a/patches/patch-ab'
X--- resource.c	Sun Apr 23 22:39:03 1995
X+++ /home/andy/tmp/wrk/resource.c	Sun Mar 29 23:05:40 1998
X@@ -101,7 +101,7 @@
X       if ((XTRONresources = XrmGetFileDatabase("./.xtronrc")) == NULL)  {
X 	 if ((XTRONresources = XrmGetFileDatabase("$HOME/xtronrc")) == NULL)  {
X 	    if ((XTRONresources = XrmGetFileDatabase("$HOME/.xtronrc")) == NULL)  {
X-	       if ((XTRONresources = XrmGetFileDatabase("/usr/X11/lib/X11/app-defaults/xtronrc")) == NULL)  {
X+	       if ((XTRONresources = XrmGetFileDatabase("/usr/X11R6/lib/X11/app-defaults/Tron")) == NULL)  {
X 		  if ((XTRONresources = XrmGetFileDatabase("/usr/X11/lib/X11/app-defaults/.xtronrc")) == NULL)  {
X 		     fprintf(stderr,"error: unable to open/read resource file xtronrc\n");
X 		     return(0);
END-of-xtron-1.1a/patches/patch-ab
echo x - xtron-1.1a/patches/patch-aa
sed 's/^X//' >xtron-1.1a/patches/patch-aa << 'END-of-xtron-1.1a/patches/patch-aa'
X--- Makefile	Sun Apr 16 13:26:00 1995
X+++ /home/andy/tmp/wrk/Makefile	Sun Mar 29 23:08:24 1998
X@@ -20,8 +20,8 @@
X #
X CC=		gcc
X CFLAGS=		-O4 -Wall
X-INCLUDES=	-I/usr/X386/include/X11 -I/usr/include
X-LIBS=		-L/usr/X386/lib
X+INCLUDES=	-I/usr/X11R6/include -I/usr/X11R6/include/X11
X+LIBS=		-L/usr/X11R6/lib
X LDLIBS=		-lXpm -lX11
X DEPEND=		makedepend
X OBJS=		wintype.o xtron.o main.o xpm2pixmap.o resource.o
END-of-xtron-1.1a/patches/patch-aa
echo x - xtron-1.1a/patches/patch-ac
sed 's/^X//' >xtron-1.1a/patches/patch-ac << 'END-of-xtron-1.1a/patches/patch-ac'
X--- xtronrc	Sun Apr 23 22:53:22 1995
X+++ /home/andy/tmp/wrk/xtronrc	Sun Mar 29 23:27:25 1998
X@@ -3,7 +3,7 @@
X # in the user's home directory or in /usr/X11/lib/X11/app-defaults.
X # you can also rename it .xtronrc if you prefer it to be hidden
X # make sure that the pixmaps directory has a trailing / at the end
X-xtron.PixmapsDIR:             ./pixmaps/
X+xtron.PixmapsDIR:             /usr/X11R6/share/xtron/
X 
X # change these key settings for player 1 [RED]
X xtron.player1UP:              w
END-of-xtron-1.1a/patches/patch-ac
echo c - xtron-1.1a/pkg
mkdir -p xtron-1.1a/pkg > /dev/null 2>&1
echo x - xtron-1.1a/pkg/PLIST
sed 's/^X//' >xtron-1.1a/pkg/PLIST << 'END-of-xtron-1.1a/pkg/PLIST'
Xbin/xtron
Xlib/X11/app-defaults/Tron
Xshare/doc/xtron/CHANGES
Xshare/doc/xtron/COPYING
Xshare/doc/xtron/README
Xshare/xtron/Xtron_icon.xpm
Xshare/xtron/again.xpm
Xshare/xtron/againr.xpm
Xshare/xtron/back.xpm
Xshare/xtron/comprr.xpm
Xshare/xtron/computer.xpm
Xshare/xtron/human.xpm
Xshare/xtron/humanr.xpm
Xshare/xtron/p1.xpm
Xshare/xtron/p2.xpm
Xshare/xtron/p3.xpm
Xshare/xtron/pause.xpm
Xshare/xtron/pauser.xpm
Xshare/xtron/quit.xpm
Xshare/xtron/quitr.xpm
Xshare/xtron/score.xpm
Xshare/xtron/scorer.xpm
X@dirrm share/doc/xtron
X@dirrm share/xtron
END-of-xtron-1.1a/pkg/PLIST
echo x - xtron-1.1a/pkg/COMMENT
sed 's/^X//' >xtron-1.1a/pkg/COMMENT << 'END-of-xtron-1.1a/pkg/COMMENT'
XAvoid running into walls, your own tail, and that of your opponent.
END-of-xtron-1.1a/pkg/COMMENT
echo x - xtron-1.1a/pkg/DESCR
sed 's/^X//' >xtron-1.1a/pkg/DESCR << 'END-of-xtron-1.1a/pkg/DESCR'
X   Xtron is a simple one or two player  version of the  old
Xclassic TRON. The game is simple: avoid running into walls,
Xyour own tail, and that of your opponent.
END-of-xtron-1.1a/pkg/DESCR
exit


>How-To-Repeat:

>Fix:
	
   Please, check and commit this port.

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



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