From c00a15fd548af7047799b9984402dcb92ba5bcdf Mon Sep 17 00:00:00 2001
From: Will Andrews <will@FreeBSD.org>
Date: Sat, 7 Apr 2001 05:51:42 +0000
Subject: Add xrot 1.3.2, a falling ball puzzle game for X.

PR:		26377
Submitted by:	Mark Pulford <mark@kyne.com.au>
---
 games/xrot/Makefile              | 30 ++++++++++++++++++++++++++++++
 games/xrot/distinfo              |  1 +
 games/xrot/files/patch-Imakefile | 21 +++++++++++++++++++++
 games/xrot/files/patch-record.c  | 11 +++++++++++
 games/xrot/pkg-comment           |  1 +
 games/xrot/pkg-descr             | 12 ++++++++++++
 games/xrot/pkg-install           |  9 +++++++++
 games/xrot/pkg-plist             |  1 +
 8 files changed, 86 insertions(+)
 create mode 100644 games/xrot/Makefile
 create mode 100644 games/xrot/distinfo
 create mode 100644 games/xrot/files/patch-Imakefile
 create mode 100644 games/xrot/files/patch-record.c
 create mode 100644 games/xrot/pkg-comment
 create mode 100644 games/xrot/pkg-descr
 create mode 100644 games/xrot/pkg-install
 create mode 100644 games/xrot/pkg-plist

(limited to 'games/xrot')

diff --git a/games/xrot/Makefile b/games/xrot/Makefile
new file mode 100644
index 000000000000..3a56cafc72bc
--- /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 000000000000..018e2df6c0a9
--- /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 000000000000..e1f765e79e88
--- /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 000000000000..5b80fe6a2caa
--- /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 000000000000..773b278f9e93
--- /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 000000000000..47a6a1930269
--- /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 000000000000..fd24c399636d
--- /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 000000000000..593719c749a2
--- /dev/null
+++ b/games/xrot/pkg-plist
@@ -0,0 +1 @@
+bin/xrot
-- 
cgit v1.2.3