From 5e04ad1f225e9ea633c6a49d064116f321cf37d7 Mon Sep 17 00:00:00 2001 From: pascal Date: Tue, 6 Dec 2011 13:10:38 +0000 Subject: [PATCH] Import games/dungeon. Dungeon, also known as Zork(tm), is a text mode adventure/role-playing game. Originally developed for the PDP-10 and later ported to Fortran and the PDP-11, this version is a translation to C. ok benoit@ --- games/dungeon/Makefile | 43 ++++++++++++++++++++++++++++ games/dungeon/distinfo | 5 ++++ games/dungeon/patches/patch-Makefile | 25 ++++++++++++++++ games/dungeon/pkg/DESCR | 3 ++ games/dungeon/pkg/PLIST | 7 +++++ 5 files changed, 83 insertions(+) create mode 100644 games/dungeon/Makefile create mode 100644 games/dungeon/distinfo create mode 100644 games/dungeon/patches/patch-Makefile create mode 100644 games/dungeon/pkg/DESCR create mode 100644 games/dungeon/pkg/PLIST diff --git a/games/dungeon/Makefile b/games/dungeon/Makefile new file mode 100644 index 00000000000..1057c8c7638 --- /dev/null +++ b/games/dungeon/Makefile @@ -0,0 +1,43 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2011/12/06 13:10:38 pascal Exp $ + +COMMENT = text adventure game + +DISTNAME = dungeon-2.7s + +CATEGORIES = games + +MAINTAINER = Pascal Stumpf + +# Commercial use prohibited. +PERMIT_PACKAGE_CDROM = no commercial use +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =no commercial use +PERMIT_DISTFILES_FTP = Yes + +WANTLIB = c termcap + +MASTER_SITES = ftp://ftp.ifarchive.org/if-archive/games/source/ \ + http://mirror.ifarchive.org/if-archive/games/source/ \ + ftp://ftp.funet.fi/pub/misc/if-archive/games/source/ \ + http://www.vaxdungeon.com/vax-dungeon/Archive/dungeon/ \ + http://ifarchive.flavorplex.com/if-archive/games/source/ +DISTFILES = dungn27s.zip + +ALL_TARGET = dungeon + +WRKDIST = ${WRKDIR} + +post-extract: + find ${WRKSRC} -type f | xargs perl -pi -e 's/\015//g; s/\032//g' + (cd ${WRKSRC}; for f in `awk '{ print $$1 }' MANIFEST | tail +3`; do \ + mv `echo $$f | tr a-z A-Z` $$f; done) + +pre-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/dungeon + +post-install: + ${INSTALL_MAN} ${WRKSRC}/dungeon.6 ${PREFIX}/man/man6 + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dungeon + ${INSTALL_DATA} ${WRKSRC}/History ${PREFIX}/share/doc/dungeon + +.include diff --git a/games/dungeon/distinfo b/games/dungeon/distinfo new file mode 100644 index 00000000000..bf203280272 --- /dev/null +++ b/games/dungeon/distinfo @@ -0,0 +1,5 @@ +MD5 (dungn27s.zip) = s4z5IT6FvOyl8ySDs30IUg== +RMD160 (dungn27s.zip) = ZLytMHoWmi6S9quwgQ11IcHUY6Y= +SHA1 (dungn27s.zip) = i2a580vV5JpThNyB7Pkt8V4zDS4= +SHA256 (dungn27s.zip) = jF6FFZbIPzSfTF+bOOhOmKjnLSn2IKLVaAnpthn6BdM= +SIZE (dungn27s.zip) = 261107 diff --git a/games/dungeon/patches/patch-Makefile b/games/dungeon/patches/patch-Makefile new file mode 100644 index 00000000000..200acd08300 --- /dev/null +++ b/games/dungeon/patches/patch-Makefile @@ -0,0 +1,25 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2011/12/06 13:10:38 pascal Exp $ +--- Makefile.orig Thu Dec 1 20:01:45 2011 ++++ Makefile Thu Dec 1 20:07:14 2011 +@@ -1,10 +1,10 @@ + # Makefile for dungeon + + # Where to install the program +-BINDIR = /usr/games ++BINDIR = ${PREFIX}/bin + + # Where to install the data file +-LIBDIR = /usr/games/lib ++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 +@@ -42,7 +42,7 @@ TERMFLAG = + # GDTFLAG = -DALLOW_GDT + + # Compilation flags +-CFLAGS = -O ++#CFLAGS = -O + # On SCO Unix Development System 3.2.2a, the const type qualifier does + # not work correctly when using cc. The following line will cause it + # to not be used and should be uncommented. diff --git a/games/dungeon/pkg/DESCR b/games/dungeon/pkg/DESCR new file mode 100644 index 00000000000..0a876755921 --- /dev/null +++ b/games/dungeon/pkg/DESCR @@ -0,0 +1,3 @@ +Dungeon, also known as Zork(tm), is a text mode adventure/role-playing +game. Originally developed for the PDP-10 and later ported to Fortran +and the PDP-11, this version is a translation to C. diff --git a/games/dungeon/pkg/PLIST b/games/dungeon/pkg/PLIST new file mode 100644 index 00000000000..9b80b5ad342 --- /dev/null +++ b/games/dungeon/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2011/12/06 13:10:38 pascal Exp $ +@bin bin/dungeon +@man man/man6/dungeon.6 +share/doc/dungeon/ +share/doc/dungeon/History +share/dungeon/ +share/dungeon/dtextc.dat