aboutsummaryrefslogtreecommitdiffstats
path: root/games/xlife
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1995-03-16 17:19:18 +0800
committerasami <asami@FreeBSD.org>1995-03-16 17:19:18 +0800
commit917d065558e2a59cc229b0e58f63913ee511deab (patch)
treed1038ac0d2f26f18bf71a78b36390f4072b1aff9 /games/xlife
parentfd9ffa26d64f1d65e7496fd9a958e66142492f59 (diff)
downloadfreebsd-ports-gnome-917d065558e2a59cc229b0e58f63913ee511deab.tar.gz
freebsd-ports-gnome-917d065558e2a59cc229b0e58f63913ee511deab.tar.zst
freebsd-ports-gnome-917d065558e2a59cc229b0e58f63913ee511deab.zip
John Horton Conway's Game of Life, taken from R5-contrib archives.
Diffstat (limited to 'games/xlife')
-rw-r--r--games/xlife/Makefile18
-rw-r--r--games/xlife/distinfo1
-rw-r--r--games/xlife/files/patch-aa85
-rw-r--r--games/xlife/pkg-comment1
-rw-r--r--games/xlife/pkg-descr5
-rw-r--r--games/xlife/pkg-plist7
6 files changed, 117 insertions, 0 deletions
diff --git a/games/xlife/Makefile b/games/xlife/Makefile
new file mode 100644
index 000000000000..e39cef310615
--- /dev/null
+++ b/games/xlife/Makefile
@@ -0,0 +1,18 @@
+# New ports collection makefile for: xlife
+# Version required: 3.0
+# Date created: 15 March 1995
+# Whom: asami
+#
+# $Id: Makefile,v 1.1.1.1 1995/01/03 08:46:26 swallace Exp $
+#
+
+DISTNAME= xlife
+MASTER_SITES= ftp://gatekeeper.dec.com/pub/X11/R5-contrib/
+EXTRACT_SUFX= .tar.Z
+USE_IMAKE= yes
+PKGNAME= xlife-3.0
+
+pre-install:
+ @(cd ${WRKSRC}; make install.patterns)
+
+.include <bsd.port.mk>
diff --git a/games/xlife/distinfo b/games/xlife/distinfo
new file mode 100644
index 000000000000..3bd636a4385a
--- /dev/null
+++ b/games/xlife/distinfo
@@ -0,0 +1 @@
+MD5 (xlife.tar.Z) = b5dd23591200aab3468af2efcf6a04e3
diff --git a/games/xlife/files/patch-aa b/games/xlife/files/patch-aa
new file mode 100644
index 000000000000..f81e1821e8e4
--- /dev/null
+++ b/games/xlife/files/patch-aa
@@ -0,0 +1,85 @@
+--- ./data.h.org Thu Mar 21 13:47:04 1991
++++ ./data.h Wed Mar 15 22:09:46 1995
+@@ -21,7 +21,7 @@
+ */
+
+ extern int sys_nerr, errno;
+-extern char *sys_errlist[];
++/* extern char *sys_errlist[]; */
+ #define SYSERR sys_errlist[(errno > sys_nerr? 0 : errno)]
+
+ GLOBAL Display *disp;
+--- ./cellbox.h.org Thu Mar 21 13:46:28 1991
++++ ./cellbox.h Wed Mar 15 22:09:46 1995
+@@ -32,6 +32,8 @@
+ #define MAXOFF 8192 /* max # cells we can change to off per move */
+ #define BOXSIZE 8
+
++/* to avoid conflict with system function in unistd.h */
++#define link xlife_link
+ extern cellbox *link();
+ extern cellbox *head;
+ extern cellbox *freep;
+--- ./defs.h.org Thu Mar 21 14:21:18 1991
++++ ./defs.h Wed Mar 15 22:09:45 1995
+@@ -29,7 +29,8 @@
+ #include <X11/keysym.h>
+ #include <X11/keysymdef.h>
+
+-#define DIR "/afs/andrew/usr0/games/lib/xlife/"
++/* Defined in Imakefile */
++/* #define DIR "/afs/andrew/usr0/games/lib/xlife/" */
+ #define NORMALFONT "8x13"
+ #define BOLDFONT "8x13bold"
+ #define FONTHEIGHT 13
+--- ./Imakefile.org Thu Mar 28 07:58:48 1991
++++ ./Imakefile Wed Mar 15 22:13:08 1995
+@@ -2,9 +2,10 @@
+
+ /* #define ManSuffix n /* For sites where administrators have messed with this */
+
+-PROGRAMS = xlife oldpconv collect
++PROGRAMS = xlife lifeconv oldpconv collect
+
+-XLIFEPATSDIR = /afs/andrew.cmu.edu/usr0/games/lib/xlife
++XLIFEPATSDIR = $(LIBDIR)/xlife
++EXTRA_DEFINES = -DDIR=\"$(XLIFEPATSDIR)\"
+
+ SRCS1 = \
+ button.c\
+@@ -42,26 +43,21 @@
+ resize.o\
+ utils.o
+
+-SRCS2 = \
+- lifeconv.c
+-
+-OBJS2 = \
+- lifeconv.o
+-
+-SRCS3 = \
+- collect.c
+-
+-OBJS3 = \
+- collect.o
+-
+ AllTarget($(PROGRAMS))
+
+ ComplexProgramTarget_1(xlife, $(XLIB),)
+-ComplexProgramTarget_2(lifeconv,,)
+-ComplexProgramTarget_3(collect,,)
++NormalProgramTarget(lifeconv,oldpconv.o,,,)
++InstallProgram(lifeconv,$(BINDIR))
++NormalProgramTarget(collect,collect.o,,,)
++InstallProgram(collect,$(BINDIR))
+ NormalProgramTarget(oldpconv,oldpconv.o,,,)
++InstallProgram(oldpconv,$(BINDIR))
+
+ install.patterns:
++ if [ -d $(XLIFEPATSDIR) ]; then \
++ set +x; \
++ else (set -x; mkdirhier $(XLIFEPATSDIR)); \
++ fi
+ @case '${MFLAGS}' in *[i]*) set +e;; esac; \
+ for i in patterns//**/* ; do \
+ (set -x; $(INSTALL) -c $(INSTDATFLAGS) $$i $(XLIFEPATSDIR)); \
diff --git a/games/xlife/pkg-comment b/games/xlife/pkg-comment
new file mode 100644
index 000000000000..5781069bef0d
--- /dev/null
+++ b/games/xlife/pkg-comment
@@ -0,0 +1 @@
+xlife-3.0, John Horton Conway's Game of Life.
diff --git a/games/xlife/pkg-descr b/games/xlife/pkg-descr
new file mode 100644
index 000000000000..9ab120c46ec6
--- /dev/null
+++ b/games/xlife/pkg-descr
@@ -0,0 +1,5 @@
+xlife is an X implementation of John Horton Conway's Game of Life.
+This is version 3.0.
+
+- Satoshi
+asami@cs.berkeley.edu
diff --git a/games/xlife/pkg-plist b/games/xlife/pkg-plist
new file mode 100644
index 000000000000..959c1e275234
--- /dev/null
+++ b/games/xlife/pkg-plist
@@ -0,0 +1,7 @@
+@cwd /usr/X11R6
+bin/xlife
+bin/lifeconv
+bin/collect
+bin/oldpconv
+lib/X11/xlife
+man/man1/xlife.1.gz