summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/xmris/Makefile20
-rw-r--r--games/xmris/files/md51
-rw-r--r--games/xmris/patches/patch-aa26
-rw-r--r--games/xmris/patches/patch-ab8
-rw-r--r--games/xmris/pkg/COMMENT1
-rw-r--r--games/xmris/pkg/DESCR9
-rw-r--r--games/xmris/pkg/PLIST15
7 files changed, 80 insertions, 0 deletions
diff --git a/games/xmris/Makefile b/games/xmris/Makefile
new file mode 100644
index 00000000000..6bef5bf6b57
--- /dev/null
+++ b/games/xmris/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 1998/08/03 18:44:44 tron Exp $
+
+DISTNAME= xmris.4.04
+PKGNAME= xmris-4.04
+CATEGORIES= games x11
+MASTER_SITES= http://www.cs.bris.ac.uk/~nathan/xmris/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= root@garbled.net
+
+USE_IMAKE= yes
+ALL_TARGET= initialize xmris xmred
+NO_INSTALL_MANPAGES= yes
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/xmris.man ${PREFIX}/man/man6/xmris.6
+ ${LN} -fs xmris.6 ${PREFIX}/man/man6/xmsit.6
+ ${INSTALL_MAN} ${WRKSRC}/xmred.man ${PREFIX}/man/man6/xmred.6
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/xmris/files/md5 b/games/xmris/files/md5
new file mode 100644
index 00000000000..fbdea4f12a8
--- /dev/null
+++ b/games/xmris/files/md5
@@ -0,0 +1 @@
+MD5 (xmris.4.04.tgz) = 74c605ea9ac4284c003a398640a34a56
diff --git a/games/xmris/patches/patch-aa b/games/xmris/patches/patch-aa
new file mode 100644
index 00000000000..6d0181731d9
--- /dev/null
+++ b/games/xmris/patches/patch-aa
@@ -0,0 +1,26 @@
+--- Imakefile.orig Fri Jul 31 00:15:54 1998
++++ Imakefile Fri Jul 31 00:20:49 1998
+@@ -73,3 +73,3 @@
+ XCOMM SCORE = $(LOCAL)/lib/$(APP)
+-SCORE = $(LIBDIR)/$(APP)
++SCORE = $(X11BASE)/share/$(APP)
+ /* to install default gardens not in app_defaults/$(APP)
+@@ -86,3 +86,3 @@
+ XCOMM required for setuid, try one or the other, (the first is better)
+-XCOMM EXTRA_LOAD_FLAGS = -R$(USRLIBDIR)$${LD_RUN_PATH+\:$$LD_RUN_PATH}
++XCOMM EXTRA_LOAD_FLAGS = -Wl,-R$(USRLIBDIR)$${LD_RUN_PATH+\:$$LD_RUN_PATH}
+ XCOMM EXTRA_LOAD_FLAGS = -static
+@@ -95,3 +95,3 @@
+ XCOMM open access on the score file, 'cos transputers can't do setuid
+-INSTSCOREFLAGS = -m 777
++INSTSCOREFLAGS = -m 664
+ #else
+@@ -99,5 +99,5 @@
+ XCOMM these are set for a setuid xmris
+-OWNER = -o games
+-INSTSCOREFLAGS = $(OWNER) -m 755
+-INSTMRISFLAGS = $(OWNER) $(INSTUIDFLAGS)
++OWNER = -o bin -g games
++INSTSCOREFLAGS = $(OWNER) -m 775
++INSTMRISFLAGS = $(OWNER) -m 2755
+ XCOMM normal install locations
diff --git a/games/xmris/patches/patch-ab b/games/xmris/patches/patch-ab
new file mode 100644
index 00000000000..c9006629828
--- /dev/null
+++ b/games/xmris/patches/patch-ab
@@ -0,0 +1,8 @@
+--- all.c.orig Fri Jul 31 00:22:37 1998
++++ all.c Fri Jul 31 00:23:07 1998
+@@ -640,3 +640,5 @@
+ extern int sys_nerr;
++#ifndef __NetBSD__
+ extern char *sys_errlist[];
++#endif
+
diff --git a/games/xmris/pkg/COMMENT b/games/xmris/pkg/COMMENT
new file mode 100644
index 00000000000..cfd40627e10
--- /dev/null
+++ b/games/xmris/pkg/COMMENT
@@ -0,0 +1 @@
+a version of the Mr Do video arcade game for X.
diff --git a/games/xmris/pkg/DESCR b/games/xmris/pkg/DESCR
new file mode 100644
index 00000000000..05d6fa02ae5
--- /dev/null
+++ b/games/xmris/pkg/DESCR
@@ -0,0 +1,9 @@
+Mr Is is a version of the Mr Do video arcade game for the X Window System.
+
+You control a gnome, who can walk around a garden, along paths already
+marked, or create new paths wherever you wish. You also have a ball, which
+can be thrown in the direction you're facing, towards the gnome's feet.
+Points are scored for collecting cherries (if you collect eight cherries
+without stopping or pushing an apple, you get a bonus), killing monsters
+(by squashing them, or throwing the ball at them), and collecting the
+prize left when all the monsters have come out of their den.
diff --git a/games/xmris/pkg/PLIST b/games/xmris/pkg/PLIST
new file mode 100644
index 00000000000..8e9557b80c8
--- /dev/null
+++ b/games/xmris/pkg/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1 1998/08/03 18:44:46 tron Exp $
+bin/xmred
+bin/xmris
+bin/xmsit
+lib/X11/app-defaults/Xmris
+lib/X11/app-defaults/xmris/alphabet.gdn
+lib/X11/app-defaults/xmris/digits.gdn
+lib/X11/app-defaults/xmris/puzzle.gdn
+lib/X11/app-defaults/xmris/xmred.gdn
+man/man6/xmsit.6
+man/man6/xmred.6
+man/man6/xmris.6
+@dirrm lib/X11/app-defaults/xmris
+@exec mkdir %D/share/xmris
+@unexec rm -rf %D/share/xmris