aboutsummaryrefslogtreecommitdiff
path: root/games/dungeon
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-11-26 19:21:21 +0000
committerSteve Price <steve@FreeBSD.org>1999-11-26 19:21:21 +0000
commit04c0b3aa720118b5432113c45f4cc947ae87abef (patch)
treec10f279013ff67e824259adce2fa14744c34e745 /games/dungeon
parent275e68b717872cb2c2744b2bec69d54b413b1162 (diff)
downloadports-04c0b3aa720118b5432113c45f4cc947ae87abef.tar.gz
ports-04c0b3aa720118b5432113c45f4cc947ae87abef.zip
Initial import of dungeon version 1.0.
A text adventure game of ZORK. PR: 14645 Submitted by: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
Notes
Notes: svn path=/head/; revision=23381
Diffstat (limited to 'games/dungeon')
-rw-r--r--games/dungeon/Makefile55
-rw-r--r--games/dungeon/distinfo2
-rw-r--r--games/dungeon/files/aa.awk4
-rw-r--r--games/dungeon/files/patch-aa101
-rw-r--r--games/dungeon/pkg-comment1
-rw-r--r--games/dungeon/pkg-descr16
-rw-r--r--games/dungeon/pkg-plist7
7 files changed, 186 insertions, 0 deletions
diff --git a/games/dungeon/Makefile b/games/dungeon/Makefile
new file mode 100644
index 000000000000..ea82d4af050a
--- /dev/null
+++ b/games/dungeon/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: dungeon
+# Version required: 1.0
+# Date created: 31 October 1999
+# Whom: Ryo MIYAMOTO
+#
+# $FreeBSD$
+#
+
+DISTNAME= dungeon-1.0
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.gmd.de/if-archive/games/source/
+DISTFILES= dungn27s.zip dungn32b.zip
+
+MAINTAINER= rmiya@cc.hirosaki-u.ac.jp
+
+EXTRACT_ONLY= dungn27s.zip
+
+NO_WRKSUBDIR= yes
+USE_ZIP= yes
+#WRKSRC= ${WRKDIR}/${DISTNAME}
+MAN6= dungeon.6
+TMPFILE= ${WRKSRC}/dungeon.tmp
+
+#do-extract:
+# ${RM} -rf ${WRKSRC}
+# ${MKDIR} ${WRKSRC}
+# (cd ${WRKSRC} && unzip ${DISTDIR}/dungn27s.zip > /dev/null)
+
+post-extract:
+ (cd ${WRKSRC} && ls > ${TMPFILE}.1)
+ (cd ${WRKSRC} && ${AWK} -f ${FILESDIR}/aa.awk < ${TMPFILE}.1 \
+ > ${TMPFILE}.2)
+ (cd ${WRKSRC} && sh ${TMPFILE}.2)
+ (cd ${WRKSRC} && ${RM} ${TMPFILE}.?)
+ (cd ${WRKSRC} && ${CP} makefile Makefile)
+
+pre-install:
+ ${RM} -rf ${PREFIX}/share/dungeon
+ ${MKDIR} ${PREFIX}/share/dungeon
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/dungeon ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/dtextc.dat ${PREFIX}/share/dungeon
+ ${INSTALL_MAN} ${WRKSRC}/dungeon.6 ${PREFIX}/man/man6
+
+post-install:
+ strip ${PREFIX}/bin/dungeon
+.if !defined(NOPORTDOCS)
+ ${INSTALL_DATA} ${WRKSRC}/history ${PREFIX}/share/dungeon
+ ${INSTALL_DATA} ${WRKSRC}/manifest ${PREFIX}/share/dungeon
+ ${INSTALL_DATA} ${WRKSRC}/readme ${PREFIX}/share/dungeon
+ ${INSTALL_DATA} ${DISTDIR}/dungn32b.zip ${PREFIX}/share/dungeon
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/dungeon/distinfo b/games/dungeon/distinfo
new file mode 100644
index 000000000000..b8e7c782dad6
--- /dev/null
+++ b/games/dungeon/distinfo
@@ -0,0 +1,2 @@
+MD5 (dungn27s.zip) = cdf7e0b99e1adb863904b868f17ec3b6
+MD5 (dungn32b.zip) = 060ec630f132d5ba8b826fa0875d9745
diff --git a/games/dungeon/files/aa.awk b/games/dungeon/files/aa.awk
new file mode 100644
index 000000000000..30d2cfb5bb7c
--- /dev/null
+++ b/games/dungeon/files/aa.awk
@@ -0,0 +1,4 @@
+{
+# printf("mv %s %s\n", $1, tolower($1));
+ printf("tr -d \r < %s | tr -d \032 > %s && rm %s\n", $1, tolower($1), $1);
+}
diff --git a/games/dungeon/files/patch-aa b/games/dungeon/files/patch-aa
new file mode 100644
index 000000000000..6588a71b441b
--- /dev/null
+++ b/games/dungeon/files/patch-aa
@@ -0,0 +1,101 @@
+*** makefile Mon Nov 1 00:44:13 1999
+--- Makefile Mon Nov 1 00:47:09 1999
+***************
+*** 1,10 ****
+ # Makefile for dungeon
+
+ # Where to install the program
+! BINDIR = /usr/games
+
+ # Where to install the data file
+! LIBDIR = /usr/games/lib
+
+ # The dungeon program provides a ``more'' facility which tries to
+ # figure out how many rows the terminal has. Several mechanisms are
+--- 1,10 ----
+ # Makefile for dungeon
+
+ # Where to install the program
+! BINDIR = ${PREFIX}/bin
+
+ # Where to install the data file
+! LIBDIR = ${PREFIX}/share/dungeon
+
+ # The dungeon program provides a ``more'' facility which tries to
+ # figure out how many rows the terminal has. Several mechanisms are
+***************
+*** 62,67 ****
+--- 62,69 ----
+ dverb2.o gdt.o lightp.o local.o nobjs.o np.o np1.o np2.o np3.o\
+ nrooms.o objcts.o rooms.o sobjs.o supp.o sverbs.o verbs.o villns.o
+
++ all: dungeon dtextc.dat
++
+ dungeon: $(OBJS) dtextc.dat
+ $(CC) $(CFLAGS) -o dungeon $(OBJS) $(LIBS)
+
+***************
+*** 90,120 ****
+ supp.o: supp.c funcs.h vars.h
+ $(CC) $(CFLAGS) $(TERMFLAG) -c supp.c
+
+! actors.o: funcs.h vars.h
+! ballop.o: funcs.h vars.h
+! clockr.o: funcs.h vars.h
+! demons.o: funcs.h vars.h
+! dmain.o: funcs.h vars.h
+! dso1.o: funcs.h vars.h
+! dso2.o: funcs.h vars.h
+! dso3.o: funcs.h vars.h
+! dso4.o: funcs.h vars.h
+! dso5.o: funcs.h vars.h
+! dso6.o: funcs.h vars.h
+! dso7.o: funcs.h vars.h
+! dsub.o: funcs.h vars.h
+! dverb1.o: funcs.h vars.h
+! dverb2.o: funcs.h vars.h
+! lightp.o: funcs.h vars.h
+! nobjs.o: funcs.h vars.h
+! np.o: funcs.h vars.h
+! np1.o: funcs.h vars.h parse.h
+! np2.o: funcs.h vars.h parse.h
+! np3.o: funcs.h vars.h parse.h
+! nrooms.o: funcs.h vars.h
+! objcts.o: funcs.h vars.h
+! rooms.o: funcs.h vars.h
+! sobjs.o: funcs.h vars.h
+! sverbs.o: funcs.h vars.h
+! verbs.o: funcs.h vars.h
+! villns.o: funcs.h vars.h
+--- 92,122 ----
+ supp.o: supp.c funcs.h vars.h
+ $(CC) $(CFLAGS) $(TERMFLAG) -c supp.c
+
+! #actors.o: funcs.h vars.h
+! #ballop.o: funcs.h vars.h
+! #clockr.o: funcs.h vars.h
+! #demons.o: funcs.h vars.h
+! #dmain.o: funcs.h vars.h
+! #dso1.o: funcs.h vars.h
+! #dso2.o: funcs.h vars.h
+! #dso3.o: funcs.h vars.h
+! #dso4.o: funcs.h vars.h
+! #dso5.o: funcs.h vars.h
+! #dso6.o: funcs.h vars.h
+! #dso7.o: funcs.h vars.h
+! #dsub.o: funcs.h vars.h
+! #dverb1.o: funcs.h vars.h
+! #dverb2.o: funcs.h vars.h
+! #lightp.o: funcs.h vars.h
+! #nobjs.o: funcs.h vars.h
+! #np.o: funcs.h vars.h
+! #np1.o: funcs.h vars.h parse.h
+! #np2.o: funcs.h vars.h parse.h
+! #np3.o: funcs.h vars.h parse.h
+! #nrooms.o: funcs.h vars.h
+! #objcts.o: funcs.h vars.h
+! #rooms.o: funcs.h vars.h
+! #sobjs.o: funcs.h vars.h
+! #sverbs.o: funcs.h vars.h
+! #verbs.o: funcs.h vars.h
+! #villns.o: funcs.h vars.h
diff --git a/games/dungeon/pkg-comment b/games/dungeon/pkg-comment
new file mode 100644
index 000000000000..7930be54a5a4
--- /dev/null
+++ b/games/dungeon/pkg-comment
@@ -0,0 +1 @@
+Text adventure game of ZORK
diff --git a/games/dungeon/pkg-descr b/games/dungeon/pkg-descr
new file mode 100644
index 000000000000..7fe547c5400d
--- /dev/null
+++ b/games/dungeon/pkg-descr
@@ -0,0 +1,16 @@
+Dungeon has been the most famous text type adventure game.
+Zork I, II, III of Infocom were based on it.
+
+For more detailed information, visit:
+
+WWW: http://www.csd.uwo.ca/Infocom/dungeon.html
+
+You can also read the articles about the history of the Zork
+in ``The New Zork Times'' at there.
+
+This port requires both Fortran and C source zipped archives,
+however the program is build from the C source.
+The Fortran source archive includes useful informations
+to solve the myth, which you should not see.
+--
+rmiya
diff --git a/games/dungeon/pkg-plist b/games/dungeon/pkg-plist
new file mode 100644
index 000000000000..2a56e673f778
--- /dev/null
+++ b/games/dungeon/pkg-plist
@@ -0,0 +1,7 @@
+bin/dungeon
+share/dungeon/dtextc.dat
+share/dungeon/dungn32b.zip
+share/dungeon/history
+share/dungeon/manifest
+share/dungeon/readme
+@dirrm share/dungeon