diff options
author | wiz <wiz> | 2001-10-02 13:15:56 +0000 |
---|---|---|
committer | wiz <wiz> | 2001-10-02 13:15:56 +0000 |
commit | bdb5212efe71f4d391855e255086268098404458 (patch) | |
tree | 3acff3dd476b59cc07656aaa5dab2d1fcaa93dd4 /games/dipmap/patches | |
parent | 9c4701fe367100d638dc7b40296b4902bbc19b95 (diff) | |
download | pkgsrc-bdb5212efe71f4d391855e255086268098404458.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/patches')
-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 |
3 files changed, 71 insertions, 0 deletions
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)) |