aboutsummaryrefslogtreecommitdiff
path: root/games/xrobots
diff options
context:
space:
mode:
authorSteven Wallace <swallace@FreeBSD.org>1995-01-03 08:47:59 +0000
committerSteven Wallace <swallace@FreeBSD.org>1995-01-03 08:47:59 +0000
commit3003ec6553ad180e4192262e00429f19396f15a1 (patch)
treebcb2d3f46134fa5123a2cddac03726562b292863 /games/xrobots
parent89c4367f5c4f23c84863b1a7be5d436da61fd9d0 (diff)
downloadports-3003ec6553ad180e4192262e00429f19396f15a1.tar.gz
ports-3003ec6553ad180e4192262e00429f19396f15a1.zip
Notes
Diffstat (limited to 'games/xrobots')
-rw-r--r--games/xrobots/Makefile16
-rw-r--r--games/xrobots/files/patch-aa91
-rw-r--r--games/xrobots/files/patch-ab14
-rw-r--r--games/xrobots/files/patch-ac15
-rw-r--r--games/xrobots/files/xrobotscores20
-rw-r--r--games/xrobots/pkg-comment1
-rw-r--r--games/xrobots/pkg-descr4
-rw-r--r--games/xrobots/pkg-plist7
-rw-r--r--games/xrobots/scripts/pre-configure7
9 files changed, 175 insertions, 0 deletions
diff --git a/games/xrobots/Makefile b/games/xrobots/Makefile
new file mode 100644
index 000000000000..295e4a9d8ba5
--- /dev/null
+++ b/games/xrobots/Makefile
@@ -0,0 +1,16 @@
+# New ports collection makefile for: xrobots
+# Date created: 2 Jan 1995
+# Whom: swallace
+#
+# $Id: Makefile,v 1.3 1994/12/31 04:17:52 swallace Exp $
+#
+
+DISTNAME= xrobots
+MASTER_SITES= ftp://ftp.cs.orst.edu/pub/src/X11R4/contrib/games/
+USE_IMAKE= yes
+INSTALL_MANPAGES= yes
+
+.include <bsd.port.mk>
+
+install:
+ install -c -g games -m 664 ${.CURDIR}/files/xrobotscores /usr/X11R6/lib/X11
diff --git a/games/xrobots/files/patch-aa b/games/xrobots/files/patch-aa
new file mode 100644
index 000000000000..afffedfb2a37
--- /dev/null
+++ b/games/xrobots/files/patch-aa
@@ -0,0 +1,91 @@
+*** score.c.orig Fri Nov 17 14:37:36 1989
+--- score.c Mon Jan 2 23:09:32 1995
+***************
+*** 56,61 ****
+--- 56,62 ----
+
+ #include <X11/Xos.h> /* brings in <sys/file.h> */
+ #include <stdio.h>
++ #include <stdlib.h>
+ #include "xrobots.h"
+
+ /*----------------------------------------------------------------------*/
+***************
+*** 67,73 ****
+
+ static SCORE scores[MAXSCORES];
+
+! void show_scores(),
+ new_high_score(),
+ load_scores(),
+ write_out_scores();
+--- 68,74 ----
+
+ static SCORE scores[MAXSCORES];
+
+! static void show_scores(),
+ new_high_score(),
+ load_scores(),
+ write_out_scores();
+***************
+*** 110,121 ****
+ #ifndef SYSV
+ flock(scorefile->_file, LOCK_EX);
+ #endif
+! while( fgets(scores[i].score,6,scorefile) /* get score */
+! && fgets(scores[i].name,26,scorefile) /* get name */
+! && fgetc(scorefile)) /* and newline */
+! {
+! i++;
+! if( i > MAXSCORES ) break;
+ }
+ }
+
+--- 111,123 ----
+ #ifndef SYSV
+ flock(scorefile->_file, LOCK_EX);
+ #endif
+! for(i = 0; i < MAXSCORES; i++) {
+! if(!fgets(scores[i].score, 6, scorefile)) /* get score */
+! break;
+! if(!fgets(scores[i].name, 26, scorefile)) /* get name */
+! break;
+! if(!fgetc(scorefile)) /* and newline */
+! break;
+ }
+ }
+
+***************
+*** 194,200 ****
+
+
+ /*ARGSUSED*/
+! static XtCallbackProc
+ popdown_callback(w, closure, call_data)
+ Widget w;
+ caddr_t closure;
+--- 196,202 ----
+
+
+ /*ARGSUSED*/
+! static void
+ popdown_callback(w, closure, call_data)
+ Widget w;
+ caddr_t closure;
+***************
+*** 253,259 ****
+ show_scores()
+ {
+ int i;
+! char tmp_str[31];
+ Arg tmp_arg;
+
+ for(i = 0;i<MAXSCORES;i++) {
+--- 255,261 ----
+ show_scores()
+ {
+ int i;
+! char tmp_str[64];
+ Arg tmp_arg;
+
+ for(i = 0;i<MAXSCORES;i++) {
diff --git a/games/xrobots/files/patch-ab b/games/xrobots/files/patch-ab
new file mode 100644
index 000000000000..7061fa8835c2
--- /dev/null
+++ b/games/xrobots/files/patch-ab
@@ -0,0 +1,14 @@
+*** xrobots.h.orig Fri Nov 17 14:37:40 1989
+--- xrobots.h Mon Jan 2 22:47:56 1995
+***************
+*** 146,154 ****
+ game_active,
+ sonic_used;
+
+- #define MIN(a,b) ((a<b)?a:b)
+- #define MAX(a,b) ((a>b)?a:b)
+-
+ #define INXRANGE( _x_ ) (((_x_) >=0) && ((_x_)<MAXX))
+ #define INYRANGE( _y_ ) (((_y_) >=0) && ((_y_)<MAXY))
+
+--- 146,151 ----
diff --git a/games/xrobots/files/patch-ac b/games/xrobots/files/patch-ac
new file mode 100644
index 000000000000..ebdcf5a025aa
--- /dev/null
+++ b/games/xrobots/files/patch-ac
@@ -0,0 +1,15 @@
+*** Imakefile.orig Fri Nov 17 14:37:36 1989
+--- Imakefile Mon Jan 2 23:28:47 1995
+***************
+*** 1,5 ****
+
+! SCORE_FILE = -DSCORE_FILE=\"./xrobotscores\"
+ MAXSCORES = -DMAXSCORES=20
+ MAXX = -DMAXX=35
+ MAXY = -DMAXY=20
+--- 1,5 ----
+
+! SCORE_FILE = -DSCORE_FILE=\"/usr/X11R6/lib/X11/xrobotscores\"
+ MAXSCORES = -DMAXSCORES=20
+ MAXX = -DMAXX=35
+ MAXY = -DMAXY=20
diff --git a/games/xrobots/files/xrobotscores b/games/xrobots/files/xrobotscores
new file mode 100644
index 000000000000..0912f9c942e5
--- /dev/null
+++ b/games/xrobots/files/xrobotscores
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/games/xrobots/pkg-comment b/games/xrobots/pkg-comment
new file mode 100644
index 000000000000..acc211804993
--- /dev/null
+++ b/games/xrobots/pkg-comment
@@ -0,0 +1 @@
+xrobots - fight off villainous robots (X Windows)
diff --git a/games/xrobots/pkg-descr b/games/xrobots/pkg-descr
new file mode 100644
index 000000000000..3728e639c18e
--- /dev/null
+++ b/games/xrobots/pkg-descr
@@ -0,0 +1,4 @@
+Xrobots puts you into a world of evil robots (but in an X window, of course).
+It's your intellect against the robots, who have numbers on their side.
+Fortunately for you, these robots have a bad habit of crashing into each other,
+destroying themselves and temporarily improving your chances of survival.
diff --git a/games/xrobots/pkg-plist b/games/xrobots/pkg-plist
new file mode 100644
index 000000000000..e56afc8ebc6e
--- /dev/null
+++ b/games/xrobots/pkg-plist
@@ -0,0 +1,7 @@
+@cwd /usr/X11R6
+man/man6/xrobots.6.gz
+@group games
+@mode 02755
+bin/xrobots
+@mode 0664
+lib/X11/xrobotscores
diff --git a/games/xrobots/scripts/pre-configure b/games/xrobots/scripts/pre-configure
new file mode 100644
index 000000000000..0221c321bd3c
--- /dev/null
+++ b/games/xrobots/scripts/pre-configure
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+#echo "LOCAL=$PREFIX" >${WRKSRC}/Imakefile || exit 1;
+echo "MANSUFFIX=6" >>${WRKSRC}/Imakefile || exit 1
+echo "INSTPGMFLAGS = -s -g games -m 2755" >>${WRKSRC}/Imakefile || exit 1
+
+exit 0