diff options
author | will <will@FreeBSD.org> | 2001-04-07 05:51:42 +0000 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-04-07 05:51:42 +0000 |
commit | 345ec8389a907b7a84ebb1302384814eba028a52 (patch) | |
tree | 85ddfc4c77372fb9da0b845f5465648bf160a8c8 /games | |
parent | b1df710ce3e785e03606bab3b042e833faca8e04 (diff) | |
download | FreeBSD-ports-345ec8389a907b7a84ebb1302384814eba028a52.zip FreeBSD-ports-345ec8389a907b7a84ebb1302384814eba028a52.tar.gz |
Add xrot 1.3.2, a falling ball puzzle game for X.
PR: 26377
Submitted by: Mark Pulford <mark@kyne.com.au>
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/xrot/Makefile | 30 | ||||
-rw-r--r-- | games/xrot/distinfo | 1 | ||||
-rw-r--r-- | games/xrot/files/patch-Imakefile | 21 | ||||
-rw-r--r-- | games/xrot/files/patch-record.c | 11 | ||||
-rw-r--r-- | games/xrot/pkg-comment | 1 | ||||
-rw-r--r-- | games/xrot/pkg-descr | 12 | ||||
-rw-r--r-- | games/xrot/pkg-install | 9 | ||||
-rw-r--r-- | games/xrot/pkg-plist | 1 |
9 files changed, 87 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 6d4ed54..bd18104 100644 --- a/games/Makefile +++ b/games/Makefile @@ -303,6 +303,7 @@ SUBDIR += xroach SUBDIR += xroads SUBDIR += xrobots + SUBDIR += xrot SUBDIR += xrubik SUBDIR += xscavenger SUBDIR += xscorch diff --git a/games/xrot/Makefile b/games/xrot/Makefile new file mode 100644 index 0000000..3a56caf --- /dev/null +++ b/games/xrot/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: xrot +# Date created: Apr 2, 2001 +# Whom: Mark Pulford <mark@kyne.com.au> +# +# $FreeBSD$ +# + +PORTNAME= xrot +PORTVERSION= 1.3.2 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_LOCAL} \ + ftp://ftp.kobe-u.ac.jp/pub/Linux/packages/Vine/VinePlus/1.1/JG-0.9.1/sources/ +MASTER_SITE_SUBDIR= will + +MAINTAINER= mark@kyne.com.au + +WRKSRC= ${WRKDIR}/xrot +USE_IMAKE= yes +NO_INSTALL_MANPAGES= yes + +post-configure: + ${PERL} -pi -e "s@: xrot.man@:@g; s@xrot.man@/dev/null@g" ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/xrot ${PREFIX}/bin + ${CHOWN} root.games ${PREFIX}/bin/xrot + ${CHMOD} g+s ${PREFIX}/bin/xrot + ${SH} pkg-install ${PKGNAME} POST-INSTALL + +.include <bsd.port.mk> diff --git a/games/xrot/distinfo b/games/xrot/distinfo new file mode 100644 index 0000000..018e2df --- /dev/null +++ b/games/xrot/distinfo @@ -0,0 +1 @@ +MD5 (xrot-1.3.2.tar.gz) = 1230f2fe9f31db4ac47eac4ffe116db4 diff --git a/games/xrot/files/patch-Imakefile b/games/xrot/files/patch-Imakefile new file mode 100644 index 0000000..e1f765e --- /dev/null +++ b/games/xrot/files/patch-Imakefile @@ -0,0 +1,21 @@ +--- Imakefile.orig Sat Jul 4 11:05:00 1998 ++++ Imakefile Fri Apr 6 18:44:24 2001 +@@ -32,8 +32,8 @@ + + # NORECORD = -DNOREC + +-RECORDDIR = /usr/local/games/lib/xrot +-RECORDFILE = xrot_record ++RECORDDIR = /var/games ++RECORDFILE = xrot.scores + + #------ secure RECORD file ------- + +@@ -62,7 +62,6 @@ + + #--------------------------------------------------------------- + +-CC = gcc + DEPLIBS = $(DEPXLIB) + LOCAL_LIBRARIES = $(XLIB) $(XPMLIB) -lm + RECFLAGS = -DRECDIR=\"$(RECORDDIR)\" -DRECFILE=\"$(RECORDFILE)\" diff --git a/games/xrot/files/patch-record.c b/games/xrot/files/patch-record.c new file mode 100644 index 0000000..5b80fe6 --- /dev/null +++ b/games/xrot/files/patch-record.c @@ -0,0 +1,11 @@ +--- record.c.orig Fri Apr 6 18:36:55 2001 ++++ record.c Fri Apr 6 18:37:03 2001 +@@ -20,7 +20,7 @@ + extern void conv_time(); + + #ifdef SECURE_RECORDFILE +-#define PERM 0644 ++#define PERM 0664 + #else + #define PERM 0666 + #endif diff --git a/games/xrot/pkg-comment b/games/xrot/pkg-comment new file mode 100644 index 0000000..773b278 --- /dev/null +++ b/games/xrot/pkg-comment @@ -0,0 +1 @@ +A falling ball puzzle game for X diff --git a/games/xrot/pkg-descr b/games/xrot/pkg-descr new file mode 100644 index 0000000..47a6a19 --- /dev/null +++ b/games/xrot/pkg-descr @@ -0,0 +1,12 @@ +A falling ball puzzle game for X. Rotate the playfield and use gravity +to guide a ball around a maze toward the goal. + +Use right and left cursor keys to rotate the game screen. +Down for less bounce. +Up for jump. +Space for speed up. +Return to restart. +ESC to return to the title. +q to quit. + +Requires PseudoColor (256 colors). diff --git a/games/xrot/pkg-install b/games/xrot/pkg-install new file mode 100644 index 0000000..fd24c39 --- /dev/null +++ b/games/xrot/pkg-install @@ -0,0 +1,9 @@ +#!/bin/sh + +FILE="/var/games/xrot.scores" +[ "$2" != "POST-INSTALL" -o -f "$FILE" ] && exit 0 + +echo "===> Creating initial high score file $FILE" +touch $FILE +chown root.games $FILE +chmod 664 $FILE diff --git a/games/xrot/pkg-plist b/games/xrot/pkg-plist new file mode 100644 index 0000000..593719c --- /dev/null +++ b/games/xrot/pkg-plist @@ -0,0 +1 @@ +bin/xrot |