diff options
author | jperkin <jperkin@pkgsrc.org> | 2014-09-23 22:21:43 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2014-09-23 22:21:43 +0000 |
commit | 206144c9bdfab17bab9d3a69d0c00728b2e26a9e (patch) | |
tree | 280bfbd6dfa8db71afe9e0621127ed0d278234f3 | |
parent | d5271ce81531fb6334c07bb84dc2f6dd81e28f0a (diff) | |
download | pkgsrc-206144c9bdfab17bab9d3a69d0c00728b2e26a9e.tar.gz |
Don't include termcap.h on SunOS.
-rw-r--r-- | editors/ve/distinfo | 4 | ||||
-rw-r--r-- | editors/ve/patches/patch-term.c | 8 | ||||
-rw-r--r-- | games/greed/distinfo | 4 | ||||
-rw-r--r-- | games/greed/patches/patch-ab | 34 |
4 files changed, 27 insertions, 23 deletions
diff --git a/editors/ve/distinfo b/editors/ve/distinfo index 82e1e10c209..df05d10ae65 100644 --- a/editors/ve/distinfo +++ b/editors/ve/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2013/07/18 12:07:24 joerg Exp $ +$NetBSD: distinfo,v 1.7 2014/09/23 22:24:38 jperkin Exp $ SHA1 (ve-1.0.tgz) = 0faac299b697ff6dfc28d234ee47089ad4d148ff RMD160 (ve-1.0.tgz) = ae9bede0e3e068c4221a541b66261154d9ab84d5 @@ -8,4 +8,4 @@ SHA1 (patch-ab) = 084074ed379a3133aceb04c8b36efc5cbf11c99e SHA1 (patch-ac) = 6b6c6e2d79076994a133001ba44495760d3b8930 SHA1 (patch-ad) = dd1901fe8412f87a88fd7768493c6780acbb01ba SHA1 (patch-ae) = 5f6d0b634cb803ca48cd8528c8b2f64767fe73f4 -SHA1 (patch-term.c) = 87c37e41b2deb38ed27210661219c7208f6ab2c4 +SHA1 (patch-term.c) = adbb247cff2517ee3de354584452aa61041b8d8e diff --git a/editors/ve/patches/patch-term.c b/editors/ve/patches/patch-term.c index a30d8a0f3ef..ed93b093ecf 100644 --- a/editors/ve/patches/patch-term.c +++ b/editors/ve/patches/patch-term.c @@ -1,13 +1,15 @@ -$NetBSD: patch-term.c,v 1.1 2013/07/18 12:07:24 joerg Exp $ +$NetBSD: patch-term.c,v 1.2 2014/09/23 22:24:38 jperkin Exp $ ---- term.c.orig 2013-07-18 10:12:24.000000000 +0000 +--- term.c.orig 1997-01-24 16:36:57.000000000 +0000 +++ term.c -@@ -9,6 +9,9 @@ +@@ -9,6 +9,11 @@ #include "bbs.h" #include <sys/ioctl.h> +#include <stdlib.h> ++#ifndef __sun +#include <termcap.h> ++#endif +#include <termios.h> #ifdef HP_UX diff --git a/games/greed/distinfo b/games/greed/distinfo index f2b6ac17931..5ced42b5db5 100644 --- a/games/greed/distinfo +++ b/games/greed/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.7 2013/10/11 14:33:47 roy Exp $ +$NetBSD: distinfo,v 1.8 2014/09/23 22:21:43 jperkin Exp $ SHA1 (greed-3.4.tar.gz) = d70bd592378531d6726dfe00d3627e13b9dd9cce RMD160 (greed-3.4.tar.gz) = 13c432c030d333d0b6722263067dfab2fb2cf26e Size (greed-3.4.tar.gz) = 11463 bytes SHA1 (patch-aa) = a3af5d13e44c760a8c28371588339c22fdf82ac0 -SHA1 (patch-ab) = a3a7720f3f48743fbd00c15a21a3e37368b9c5f1 +SHA1 (patch-ab) = 1b68df9d66948ed3eeae6c8fd7badea61b1fcd62 diff --git a/games/greed/patches/patch-ab b/games/greed/patches/patch-ab index 97a8d224f06..7b4ddafd031 100644 --- a/games/greed/patches/patch-ab +++ b/games/greed/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ +$NetBSD: patch-ab,v 1.4 2014/09/23 22:21:43 jperkin Exp $ - use standard headers - don't declare own strchr, getenv, time, tgetent @@ -11,7 +11,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ --- greed.c.orig 2002-07-30 22:03:43.000000000 +0000 +++ greed.c -@@ -47,38 +47,36 @@ +@@ -47,38 +47,38 @@ static char *version = "Greed v" RELEASE; @@ -36,7 +36,9 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ #else -#include <sys/file.h> +#include <pwd.h> ++#ifndef __sun +#include <termcap.h> ++#endif +#include <unistd.h> #endif + @@ -65,7 +67,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ #define random rand #define srandom srand #define ESC 27 -@@ -105,22 +103,21 @@ struct score { /* changing stuff in t +@@ -105,22 +105,21 @@ struct score { /* changing stuff in t int allmoves = 0, score = 1, grid[22][79], y, x, havebotmsg = 0; char *cmdname; WINDOW *helpwin = NULL; @@ -92,7 +94,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ { mvaddstr(23, 40, msg); clrtoeol(); -@@ -134,7 +131,7 @@ register backcur; +@@ -134,7 +133,7 @@ register backcur; * current score) and quits; otherwise, simply returns to the game. */ void quit() { @@ -101,7 +103,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ #ifdef NOTBSD void (*osig)() = signal(SIGINT, SIG_IGN); /* save old signal */ #else -@@ -195,16 +192,14 @@ void showscore() { +@@ -195,16 +194,14 @@ void showscore() { void showmoves(); @@ -120,7 +122,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ #endif cmdname = argv[0]; /* save the command name */ -@@ -274,10 +269,10 @@ char *argv[]; +@@ -274,10 +271,10 @@ char *argv[]; if (strchr(cnames, *cp) != (char *) NULL) if (*cp != ' ') { init_pair(cp-colors+1, @@ -134,7 +136,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ attribs[cp-colors] |= A_BOLD; } if (*cp == ':') -@@ -292,7 +287,7 @@ char *argv[]; +@@ -292,7 +289,7 @@ char *argv[]; for (x=0; x < 79; x++) /* print numbers out */ #ifdef A_COLOR if (has_colors()) { @@ -143,7 +145,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ attron(attribs[newval - 1]); mvaddch(y, x, (grid[y][x] = newval) + '0'); -@@ -331,11 +326,11 @@ char *argv[]; +@@ -331,11 +328,11 @@ char *argv[]; /* tunnel() does the main game work. Returns 1 if everything's okay, 0 if * * user "died", and -1 if user specified and confirmed 'q' (fast quit). */ @@ -157,7 +159,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ void help(); switch (cmd) { /* process user command */ -@@ -396,7 +391,7 @@ int * attribs; +@@ -396,7 +393,7 @@ int * attribs; grid[y+dy][x+dx] : 0; { @@ -166,7 +168,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ do { /* process move for validity */ j += dy; -@@ -450,10 +445,10 @@ int * attribs; +@@ -450,10 +447,10 @@ int * attribs; * direction variables that tell othermove() they are already no good, and to * * not process them. I don't know if this is efficient, but it works! */ @@ -180,7 +182,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ for (; dy <= 1; dy++) for (dx = -1; dx <= 1; dx++) -@@ -462,7 +457,7 @@ register bady, badx; +@@ -462,7 +459,7 @@ register bady, badx; /* don't do 0,0 or bad coordinates */ continue; else { @@ -189,7 +191,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ if (!d) continue; do { /* "walk" the path, checking */ -@@ -481,15 +476,15 @@ register bady, badx; +@@ -481,15 +478,15 @@ register bady, badx; /* moves instead. "on" tells showmoves() whether to add or remove moves. */ void showmoves(on, attribs) @@ -208,7 +210,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ if (!d) continue; do { -@@ -499,7 +494,7 @@ int * attribs; +@@ -499,7 +496,7 @@ int * attribs; || i >= 79 || !grid[j][i]) break; } while (--d); if (!d) { @@ -217,7 +219,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ /* The next section chooses inverse-video * * or not, and then "walks" chosen valid * -@@ -529,8 +524,8 @@ int * attribs; +@@ -529,8 +526,8 @@ int * attribs; /* doputc() simply prints out a character to stdout, used by tputs() */ @@ -228,7 +230,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ { return(fputc(c, stdout)); } -@@ -542,18 +537,19 @@ register char c; +@@ -542,18 +539,19 @@ register char c; void topscores(newscore) register int newscore; { @@ -250,7 +252,7 @@ $NetBSD: patch-ab,v 1.3 2012/05/23 05:58:17 dholland Exp $ (void) signal(SIGINT, SIG_IGN); /* Catch all signals, so high */ #ifndef MSDOS (void) signal(SIGQUIT, SIG_IGN); /* score file doesn't get */ -@@ -665,9 +661,9 @@ register int newscore; +@@ -665,9 +663,9 @@ register int newscore; #ifndef MSDOS void lockit(on) |