diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/xpipeman/Makefile | 7 | ||||
-rw-r--r-- | games/xpipeman/distinfo | 2 | ||||
-rw-r--r-- | games/xpipeman/files/patch-aa | 72 | ||||
-rw-r--r-- | games/xpipeman/files/patch-ab | 10 |
4 files changed, 27 insertions, 64 deletions
diff --git a/games/xpipeman/Makefile b/games/xpipeman/Makefile index b869f3043f42..9236f141acf6 100644 --- a/games/xpipeman/Makefile +++ b/games/xpipeman/Makefile @@ -3,16 +3,17 @@ # Date created: 2 Jan 1995 # Whom: swallace # -# $Id: Makefile,v 1.8 1997/01/03 09:37:38 obrien Exp $ +# $Id: Makefile,v 1.9 1997/07/21 19:36:27 max Exp $ # DISTNAME= xpipeman PKGNAME= xpipeman-1.0 CATEGORIES= games -MASTER_SITES= ftp://iraun1.ira.uka.de/pub/x11/ +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= games/strategy EXTRACT_SUFX= .tar.Z -MAINTAINER= swallace@FreeBSD.org +MAINTAINER= jseger@FreeBSD.org USE_IMAKE= yes diff --git a/games/xpipeman/distinfo b/games/xpipeman/distinfo index d7a261ee8892..14d16ce74d47 100644 --- a/games/xpipeman/distinfo +++ b/games/xpipeman/distinfo @@ -1 +1 @@ -MD5 (xpipeman.tar.Z) = f4a0559668016042664a40258a7fc1ba +MD5 (xpipeman.tar.Z) = e14febe8d74d5a20158cfe4f4cc351f0 diff --git a/games/xpipeman/files/patch-aa b/games/xpipeman/files/patch-aa index 00e13a694bee..0965482aea94 100644 --- a/games/xpipeman/files/patch-aa +++ b/games/xpipeman/files/patch-aa @@ -1,17 +1,24 @@ -*** score.c.orig Fri Oct 11 11:35:59 1991 ---- score.c Mon Jan 2 23:46:28 1995 +*** score.c.orig Fri Sep 13 16:32:12 1991 +--- score.c Sun Apr 12 12:33:16 1998 *************** -*** 52,57 **** ---- 52,58 ---- +*** 50,56 **** + #include <X11/Xaw/Label.h> + #endif - #include <X11/Xos.h> /* brings in <sys/file.h> */ +! #include <X11/Xos.h> /* brings in <sys/file.h> */ + #include <stdio.h> + #include "xpipeman.h" + +--- 50,56 ---- + #include <X11/Xaw/Label.h> + #endif + +! #include <sys/file.h> #include <stdio.h> -+ #include <stdlib.h> #include "xpipeman.h" - /*----------------------------------------------------------------------*/ *************** -*** 63,69 **** +*** 64,70 **** static SCORE scores[MAXSCORES]; @@ -28,35 +35,7 @@ load_scores(), write_out_scores(); *************** -*** 106,117 **** - #ifndef SYSV - flock(scorefile->_file, LOCK_EX); - #endif -! while( fgets(scores[i].score,6,scorefile) /* get score */ -! && fgets(scores[i].name,26,scorefile) /* get name */ -! && fgetc(scorefile)) /* and newline */ -! { -! i++; -! if( i > MAXSCORES ) break; - } - } - ---- 107,119 ---- - #ifndef SYSV - flock(scorefile->_file, LOCK_EX); - #endif -! for(i = 0; i < MAXSCORES; i++) { -! if(!fgets(scores[i].score, 6, scorefile)) /* get score */ -! break; -! if(!fgets(scores[i].name, 26, scorefile)) /* get name */ -! break; -! if(!fgetc(scorefile)) /* and newline */ -! break; - } - } - -*************** -*** 190,196 **** +*** 198,204 **** /*ARGSUSED*/ @@ -64,7 +43,7 @@ popdown_callback(w, closure, call_data) Widget w; caddr_t closure; ---- 192,198 ---- +--- 198,204 ---- /*ARGSUSED*/ @@ -72,20 +51,3 @@ popdown_callback(w, closure, call_data) Widget w; caddr_t closure; -*************** -*** 249,255 **** - show_scores() - { - int i; -! char tmp_str[31]; - Arg tmp_arg; - - for(i = 0;i<MAXSCORES;i++) { ---- 251,257 ---- - show_scores() - { - int i; -! char tmp_str[64]; - Arg tmp_arg; - - for(i = 0;i<MAXSCORES;i++) { diff --git a/games/xpipeman/files/patch-ab b/games/xpipeman/files/patch-ab index f8d9ec60f899..46438307d1b6 100644 --- a/games/xpipeman/files/patch-ab +++ b/games/xpipeman/files/patch-ab @@ -1,15 +1,15 @@ -*** Imakefile.orig Fri Sep 13 13:32:10 1991 ---- Imakefile Mon Jan 2 23:49:42 1995 +*** Imakefile.orig Tue Jul 28 19:56:27 1992 +--- Imakefile Sun Apr 12 12:09:36 1998 *************** *** 1,5 **** -! SCORE_FILE = -DSCORE_FILE=\"./xpipescores\" +! SCORE_FILE = -DSCORE_FILE=\"/usr/games/lib/xpipescores\" MAXSCORES = -DMAXSCORES=20 - DEFINES = $(SCORE_FILE) $(MAXSCORES) + DEFINES = $(SCORE_FILE) $(MAXSCORES) -DSYSV --- 1,5 ---- ! SCORE_FILE = -DSCORE_FILE=\"/usr/X11R6/lib/X11/xpipescores\" MAXSCORES = -DMAXSCORES=20 - DEFINES = $(SCORE_FILE) $(MAXSCORES) + DEFINES = $(SCORE_FILE) $(MAXSCORES) -DSYSV |