summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjakllsch <jakllsch@pkgsrc.org>2012-02-17 17:22:13 +0000
committerjakllsch <jakllsch@pkgsrc.org>2012-02-17 17:22:13 +0000
commit85cb95adec1eb06721294888e2ab0148581f6be1 (patch)
tree31a562cef14aa185758cd24627c3bdf5502d6a35 /games
parentca6ab6e43f7b9aa867d5ecfcfff301072ec174da (diff)
downloadpkgsrc-85cb95adec1eb06721294888e2ab0148581f6be1.tar.gz
Import amaze.
A 3D maze game based on a similar game I read the source to in an Australian PC magazine in the mid 1980s. Implemented using curses, so that you can play it on a VT100 should you so desire.
Diffstat (limited to 'games')
-rw-r--r--games/amaze/DESCR3
-rw-r--r--games/amaze/Makefile20
-rw-r--r--games/amaze/PLIST4
-rw-r--r--games/amaze/distinfo6
-rw-r--r--games/amaze/patches/patch-amaze.c30
5 files changed, 63 insertions, 0 deletions
diff --git a/games/amaze/DESCR b/games/amaze/DESCR
new file mode 100644
index 00000000000..2ff983f4a50
--- /dev/null
+++ b/games/amaze/DESCR
@@ -0,0 +1,3 @@
+A 3D maze game based on a similar game I read the source to in an
+Australian PC magazine in the mid 1980s. Implemented using curses,
+so that you can play it on a VT100 should you so desire.
diff --git a/games/amaze/Makefile b/games/amaze/Makefile
new file mode 100644
index 00000000000..f4655a035b7
--- /dev/null
+++ b/games/amaze/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/02/17 17:22:13 jakllsch Exp $
+#
+
+DISTNAME= amaze
+PKGNAME= amaze-0pre0
+CATEGORIES= games
+MASTER_SITES= http://adaptive-enterprises.com/~d/software/amaze/
+DIST_SUBDIR= ${PKGNAME_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://adaptive-enterprises.com/~d/software/amaze/
+COMMENT= Curses-based maze game
+LICENSE= public-domain
+
+PKG_DESTDIR_SUPPORT= user-destdir
+INSTALLATION_DIRS= bin ${PKGMANDIR}/cat6 ${PKGMANDIR}/man6
+USE_BSD_MAKEFILE= yes
+
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/amaze/PLIST b/games/amaze/PLIST
new file mode 100644
index 00000000000..87310101ed5
--- /dev/null
+++ b/games/amaze/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2012/02/17 17:22:13 jakllsch Exp $
+bin/amaze
+man/cat6/amaze.0
+man/man6/amaze.6
diff --git a/games/amaze/distinfo b/games/amaze/distinfo
new file mode 100644
index 00000000000..ad5adfd4ca9
--- /dev/null
+++ b/games/amaze/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2012/02/17 17:22:13 jakllsch Exp $
+
+SHA1 (amaze-0pre0/amaze.tar.gz) = 98e9bebdade4b2491baa39e371517fd66865cd4a
+RMD160 (amaze-0pre0/amaze.tar.gz) = 6c727ec49296e4987c87d4c0d3c69927cfeacc7c
+Size (amaze-0pre0/amaze.tar.gz) = 6941 bytes
+SHA1 (patch-amaze.c) = 6c128b209804b6b141e9b5b42dcb7db1cc4b27b7
diff --git a/games/amaze/patches/patch-amaze.c b/games/amaze/patches/patch-amaze.c
new file mode 100644
index 00000000000..5ac12fe109c
--- /dev/null
+++ b/games/amaze/patches/patch-amaze.c
@@ -0,0 +1,30 @@
+$NetBSD: patch-amaze.c,v 1.1.1.1 2012/02/17 17:22:13 jakllsch Exp $
+
+Fix function prototypes.
+
+--- amaze.c.orig 2000-05-30 04:59:48.000000000 +0000
++++ amaze.c
+@@ -336,6 +336,7 @@ static int bary[MAXDIST + 2] = { 0, 2, 5
+ /* Draw the close vertical edge of a block */
+ void
+ draw_vert_edge(dist, right)
++ int dist, right;
+ {
+ int y;
+ for (y = bary[dist]; y <= 22 - bary[dist]; y++)
+@@ -348,6 +349,7 @@ draw_vert_edge(dist, right)
+ /* Draw the horizontal edge of a block */
+ void
+ draw_horiz_front(dist, right)
++ int dist, right;
+ {
+ int x;
+
+@@ -364,6 +366,7 @@ draw_horiz_front(dist, right)
+ /* Draw the horiz edge of a wall in the way */
+ void
+ draw_horiz_wall(dist)
++ int dist;
+ {
+ int x;
+ for (x = barx[dist] + 1; x <= 43 - (barx[dist] + 1); x++) {