Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Apr 2001 19:31:58 +0930 (CST)
From:      mark@kyne.com.au
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/26377: New port: games/xrot: A falling ball puzzle game for X
Message-ID:  <200104061001.f36A1w951794@aeris.kyne.com.au>

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

>Number:         26377
>Category:       ports
>Synopsis:       New port: games/xrot: A falling ball puzzle game for X
>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:   Fri Apr 06 03:00:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Mark Pulford
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
none
>Environment:

>Description:

A falling ball puzzle game for X. Rotate the playfield and use gravity
to guide a ball around a maze toward the goal.

Could whoever commits this port add the distfile to their freefall webspace and
update the MASTER_SITES? Xrot is a great little game, but its fast becoming
extinct ;(

>How-To-Repeat:

>Fix:
# 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:
#
#	xrot
#	xrot/distinfo
#	xrot/Makefile
#	xrot/files
#	xrot/files/patch-Imakefile
#	xrot/files/patch-record.c
#	xrot/pkg-install
#	xrot/pkg-comment
#	xrot/pkg-descr
#	xrot/pkg-plist
#
echo c - xrot
mkdir -p xrot > /dev/null 2>&1
echo x - xrot/distinfo
sed 's/^X//' >xrot/distinfo << 'END-of-xrot/distinfo'
XMD5 (xrot-1.3.2.tar.gz) = 1230f2fe9f31db4ac47eac4ffe116db4
END-of-xrot/distinfo
echo x - xrot/Makefile
sed 's/^X//' >xrot/Makefile << 'END-of-xrot/Makefile'
X# New ports collection makefile for:	xrot
X# Date created:			Apr 2, 2001
X# Whom:				Mark Pulford <mark@kyne.com.au>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	xrot
XPORTVERSION=	1.3.2
XCATEGORIES=	games
XMASTER_SITES=	ftp://ftp.kobe-u.ac.jp/pub/Linux/packages/Vine/VinePlus/1.1/JG-0.9.1/sources/
X
XMAINTAINER=	mark@kyne.com.au
X
XWRKSRC=		${WRKDIR}/xrot
XUSE_IMAKE=	yes
X
Xdo-install:
X		${INSTALL_PROGRAM} ${WRKSRC}/xrot ${PREFIX}/bin
X		${CHOWN} root.games ${PREFIX}/bin/xrot
X		${CHMOD} g+s ${PREFIX}/bin/xrot
X		${SH} pkg-install ${PKGNAME} POST-INSTALL
X
X.include <bsd.port.mk>
END-of-xrot/Makefile
echo c - xrot/files
mkdir -p xrot/files > /dev/null 2>&1
echo x - xrot/files/patch-Imakefile
sed 's/^X//' >xrot/files/patch-Imakefile << 'END-of-xrot/files/patch-Imakefile'
X--- Imakefile.orig	Sat Jul  4 11:05:00 1998
X+++ Imakefile	Fri Apr  6 18:44:24 2001
X@@ -32,8 +32,8 @@
X 
X # NORECORD = -DNOREC
X 
X-RECORDDIR = /usr/local/games/lib/xrot
X-RECORDFILE = xrot_record
X+RECORDDIR = /var/games
X+RECORDFILE = xrot.scores
X 
X #------ secure RECORD file -------
X 
X@@ -62,7 +62,6 @@
X 
X #---------------------------------------------------------------
X 
X-CC = gcc
X DEPLIBS = $(DEPXLIB)
X LOCAL_LIBRARIES = $(XLIB) $(XPMLIB) -lm
X RECFLAGS = -DRECDIR=\"$(RECORDDIR)\" -DRECFILE=\"$(RECORDFILE)\" 
END-of-xrot/files/patch-Imakefile
echo x - xrot/files/patch-record.c
sed 's/^X//' >xrot/files/patch-record.c << 'END-of-xrot/files/patch-record.c'
X--- record.c.orig	Fri Apr  6 18:36:55 2001
X+++ record.c	Fri Apr  6 18:37:03 2001
X@@ -20,7 +20,7 @@
X extern void conv_time();
X 
X #ifdef SECURE_RECORDFILE
X-#define PERM 0644
X+#define PERM 0664
X #else
X #define PERM 0666
X #endif
END-of-xrot/files/patch-record.c
echo x - xrot/pkg-install
sed 's/^X//' >xrot/pkg-install << 'END-of-xrot/pkg-install'
X#!/bin/sh
X
XFILE="/var/games/xrot.scores"
X[ "$2" != "POST-INSTALL" -o -f "$FILE" ] && exit 0
X
Xecho "===>   Creating initial high score file $FILE"
Xtouch $FILE
Xchown root.games $FILE
Xchmod 664 $FILE
END-of-xrot/pkg-install
echo x - xrot/pkg-comment
sed 's/^X//' >xrot/pkg-comment << 'END-of-xrot/pkg-comment'
XA falling ball puzzle game for X
END-of-xrot/pkg-comment
echo x - xrot/pkg-descr
sed 's/^X//' >xrot/pkg-descr << 'END-of-xrot/pkg-descr'
XA falling ball puzzle game for X. Rotate the playfield and use gravity
Xto guide a ball around a maze toward the goal.
X
XUse right and left cursor keys to rotate the game screen.
XDown for less bounce.
XUp for jump.
XSpace for speed up.
XReturn to restart.
XESC to return to the title.
Xq to quit.
X
XRequires PseudoColor (256 colors).
END-of-xrot/pkg-descr
echo x - xrot/pkg-plist
sed 's/^X//' >xrot/pkg-plist << 'END-of-xrot/pkg-plist'
Xbin/xrot
END-of-xrot/pkg-plist
exit

>Release-Note:
>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?200104061001.f36A1w951794>