diff options
author | wiz <wiz@pkgsrc.org> | 2001-10-02 13:15:56 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-10-02 13:15:56 +0000 |
commit | e113c1fb15fec99486725089b8af9f880c9a09f3 (patch) | |
tree | 3acff3dd476b59cc07656aaa5dab2d1fcaa93dd4 /games/dipmap | |
parent | 10569aa018781ff5302cdcd4085edf3cea2f98cb (diff) | |
download | pkgsrc-e113c1fb15fec99486725089b8af9f880c9a09f3.tar.gz |
Initial import of dipmap-1.16, a tool to draw postscript diplomacy maps
from judge output.
Based on a package by Nate Johnston on netbsd-users, heavily modified
by me.
Diffstat (limited to 'games/dipmap')
-rw-r--r-- | games/dipmap/Makefile | 31 | ||||
-rw-r--r-- | games/dipmap/distinfo | 7 | ||||
-rw-r--r-- | games/dipmap/patches/patch-aa | 17 | ||||
-rw-r--r-- | games/dipmap/patches/patch-ab | 22 | ||||
-rw-r--r-- | games/dipmap/patches/patch-ac | 32 | ||||
-rw-r--r-- | games/dipmap/pkg/DESCR | 21 | ||||
-rw-r--r-- | games/dipmap/pkg/PLIST | 43 |
7 files changed, 173 insertions, 0 deletions
diff --git a/games/dipmap/Makefile b/games/dipmap/Makefile new file mode 100644 index 00000000000..79ecd3e26de --- /dev/null +++ b/games/dipmap/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/10/02 13:15:56 wiz Exp $ + +DISTNAME= mapit.v1-16 +PKGNAME= dipmap-1.16 +WRKSRC= ${WRKDIR}/mapit +CATEGORIES= games +MASTER_SITES= ftp://ftp.ugcs.caltech.edu/pub/diplomacy/Sources/ +EXTRACT_SUFX= .tar.Z + +MAINTAINER= njohnston@globaltetrahedron.com +HOMEPAGE= http://www.diplom.org/Online/mapsoftware.html +COMMENT= Generate postscript maps from results of play-by-email Diplomacy games + +MAKEFILE= makefile +NO_CONFIGURE= yes + +post-patch: + ${SED} "s,@PREFIX@,${PREFIX},g" ${WRKSRC}/dipmap > ${WRKSRC}/dipmap.new + ${MV} ${WRKSRC}/dipmap.new ${WRKSRC}/dipmap + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/dipmap ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${PREFIX}/share/mapit + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mapit + ${INSTALL_PROGRAM} ${WRKSRC}/mapit ${PREFIX}/libexec + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mapit + ${INSTALL_DATA} ${WRKSRC}/README.maps ${PREFIX}/share/doc/mapit + ${INSTALL_DATA} ${WRKSRC}/*.ps ${PREFIX}/share/mapit + ${INSTALL_DATA} ${WRKSRC}/*.info ${PREFIX}/share/mapit + +.include "../../mk/bsd.pkg.mk" diff --git a/games/dipmap/distinfo b/games/dipmap/distinfo new file mode 100644 index 00000000000..ab49989b502 --- /dev/null +++ b/games/dipmap/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/10/02 13:15:56 wiz Exp $ + +SHA1 (mapit.v1-16.tar.Z) = 0715439353072e8ea08e8271c911f73939868842 +Size (mapit.v1-16.tar.Z) = 579397 bytes +SHA1 (patch-aa) = 7be14124ac761dd838815baedad662f62c74d3a8 +SHA1 (patch-ab) = 220757a8553b611e99ecfb53303aea3b29474ba1 +SHA1 (patch-ac) = ffb3d97021608ef10c6a6e8eaf2667b790f6e201 diff --git a/games/dipmap/patches/patch-aa b/games/dipmap/patches/patch-aa new file mode 100644 index 00000000000..4a4145a9838 --- /dev/null +++ b/games/dipmap/patches/patch-aa @@ -0,0 +1,17 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/10/02 13:15:56 wiz Exp $ + +--- dipmap.orig Wed Jan 14 20:20:05 1998 ++++ dipmap +@@ -2,10 +2,10 @@ + # front end to mapit program + + # where the mapit program and data files live +-set MAPDIR = "/home/kovar/mapit" ++set MAPDIR = "@PREFIX@/share/mapit" + + # the mapit command line... +-set MAPIT = "$MAPDIR/mapit" ++set MAPIT = "@PREFIX@/libexec/mapit" + setenv ARGS "" + set OUTPUT = "diplomacy.map.$$" + set EXIT = 0 diff --git a/games/dipmap/patches/patch-ab b/games/dipmap/patches/patch-ab new file mode 100644 index 00000000000..63ef20a05bd --- /dev/null +++ b/games/dipmap/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/10/02 13:15:56 wiz Exp $ + +--- makefile.orig Thu Jul 21 19:50:44 1994 ++++ makefile +@@ -5,7 +5,7 @@ + # Non-test options. Comment (#) out if testing with GDB. + # + +-CFLAGS= -O -DSTRDUP_MISSING -DSTRRSTR_MISSING -DSTRSTR_MISSING ++CFLAGS= -O -DSTRRSTR_MISSING + LDFLAGS= + + # +@@ -28,6 +28,8 @@ + SRCS= mapit.c strdup.c getopt.c strrstr.c strstr.c + + OBJS= mapit.o strdup.o getopt.o strrstr.o strstr.o ++ ++all: ${PRG} + + ${PRG}: ${OBJS} + ${CC} ${LDFLAGS} -o ${PRG} ${OBJS} ${LIBS} diff --git a/games/dipmap/patches/patch-ac b/games/dipmap/patches/patch-ac new file mode 100644 index 00000000000..0f6b9b1ea94 --- /dev/null +++ b/games/dipmap/patches/patch-ac @@ -0,0 +1,32 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/10/02 13:15:56 wiz Exp $ + +--- mapit.c.orig Fri Mar 13 20:38:03 1998 ++++ mapit.c +@@ -229,6 +229,7 @@ + char *p0,*p1; /* and character pointers */ + int started; /* is a map already started? */ + int report; /* type of report */ ++ int fd; /* file descriptor for output file */ + + extern char *optarg; /* used by getopt() */ + extern int optind; +@@ -318,8 +319,8 @@ + } + + if (new_borders) { /* We'll need a temporary file */ +- tmpnam(tempfilename); +- if(!(nstdout = fopen(tempfilename, "w"))) ++ fd=mkstemp(tempfilename); ++ if(fd == -1 || !(nstdout = fdopen(fd, "w"))) + fprintf(stderr, "Unable to open file..\n"); + } + +@@ -511,7 +512,7 @@ + else + ownerlist[i+1] = ownerlist[i]; + +- if(!(nstdout = fopen(tempfilename, "r"))) ++ if(!(nstdout = fdopen(fd, "r"))) + fprintf(stderr,"Unable to reopen file.\n"); + else { + while(fgets(line, BUFSIZ, nstdout)) diff --git a/games/dipmap/pkg/DESCR b/games/dipmap/pkg/DESCR new file mode 100644 index 00000000000..d34707cda5b --- /dev/null +++ b/games/dipmap/pkg/DESCR @@ -0,0 +1,21 @@ +Diplomacy starts in 1901: pre-World War One Europe with seven players +negotiating with each other so that they can dominate the +gameboard. Orders for fleets and armies are secretly sent to the Judge +(a computer), which then calculates the results and forwards what has +happened to the players. Then the players go back to organising things +for the next turn. Simple, right? The system is, but the game is not. +Will the Austrian help my French army to conquer Munich? Will the +German army in Kiel assist the Munich army? Can I get Russia to +attack Berlin from the east? Can I convince the German that I am +planning peaceful moves (preparing to attack Italy) and thus have the +element of surprise? + +Mapit takes the results of a Judge adjudicated move and outputs a +color or monochrome postscript map of the status of the board. For +more information, please see the homepage of the Diplomacy hobby at: + +http://www.diplom.org/ + +Additional variant maps can be found at: + +http://www.ellought.demon.co.uk/variants.htm diff --git a/games/dipmap/pkg/PLIST b/games/dipmap/pkg/PLIST new file mode 100644 index 00000000000..6e515911cc8 --- /dev/null +++ b/games/dipmap/pkg/PLIST @@ -0,0 +1,43 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/10/02 13:15:56 wiz Exp $ +bin/dipmap +libexec/mapit +share/doc/mapit/README +share/doc/mapit/README.maps +share/mapit/aberration.cmap.ps +share/mapit/aberration.info +share/mapit/aberration.map.ps +share/mapit/britain.cmap.ps +share/mapit/britain.info +share/mapit/britain.map.ps +share/mapit/chaos.info +share/mapit/chaos.map.ps +share/mapit/chromatic.cmap.ps +share/mapit/chromatic.info +share/mapit/chromatic.map.ps +share/mapit/crowded.cmap.ps +share/mapit/crowded.info +share/mapit/crowded.map.ps +share/mapit/hundred.info +share/mapit/hundred.map.ps +share/mapit/loeb9.cmap.ps +share/mapit/loeb9.info +share/mapit/loeb9.map.ps +share/mapit/mapit.info +share/mapit/mapit.ps +share/mapit/milan.cmap.ps +share/mapit/milan.info +share/mapit/milan.map.ps +share/mapit/modern.cmap.ps +share/mapit/modern.info +share/mapit/modern.map.ps +share/mapit/pure.cmap.ps +share/mapit/pure.info +share/mapit/pure.map.ps +share/mapit/regular.cmap.ps +share/mapit/regular.info +share/mapit/regular.map.ps +share/mapit/youngstown.cmap.ps +share/mapit/youngstown.info +share/mapit/youngstown.map.ps +@dirrm share/mapit +@dirrm share/doc/mapit |