Index: head/games/seabattle/Makefile =================================================================== --- head/games/seabattle/Makefile (nonexistent) +++ head/games/seabattle/Makefile (revision 10329) @@ -0,0 +1,25 @@ +# New ports collection makefile for: seabattle +# Version required: 1.0 +# Date created: 6 June 1997 +# Whom: Andrey Zakhvatov +# +# $Id$ +# + +DISTNAME= seabattle-1.0 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= games/strategy + +MAINTAINER= andy@icc.surw.chel.su + +do-install: + @ ${INSTALL_PROGRAM} ${WRKSRC}/seabattle ${PREFIX}/bin/seabattle + @ ${MKDIR} ${PREFIX}/share/seabattle +.for file in hit1 hit2 miss1 miss2 opening sunkit + @ ${INSTALL_DATA} ${WRKSRC}/${file}.au ${PREFIX}/share/seabattle/${file}.au +.endfor + @ ${MKDIR} ${PREFIX}/share/doc/seabattle + @ ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/seabattle/readme.txt + +.include Property changes on: head/games/seabattle/Makefile ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: head/games/seabattle/distinfo =================================================================== --- head/games/seabattle/distinfo (nonexistent) +++ head/games/seabattle/distinfo (revision 10329) @@ -0,0 +1 @@ +MD5 (seabattle-1.0.tar.gz) = 83bb01f5494de99ef712f7e283217c45 Property changes on: head/games/seabattle/distinfo ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/games/seabattle/files/patch-aa =================================================================== --- head/games/seabattle/files/patch-aa (nonexistent) +++ head/games/seabattle/files/patch-aa (revision 10329) @@ -0,0 +1,28 @@ +*** Makefile Tue May 13 17:53:34 1997 +--- /home/andy/tmp/wrk/Makefile Mon Jun 30 14:43:45 1997 +*************** +*** 17,28 **** + #C_OPTS = + #L_OPTS = -lcurses + +! #On Linux, uncomment the following + # +! PLATFORM = Linux +! C_OPTS = -O2 -Wall + L_OPTS = -lncurses +- + + #For Dos/Windows DJGPP (you need the curses lib) + #PLATFORM = DOS_DJGPP +--- 17,27 ---- + #C_OPTS = + #L_OPTS = -lcurses + +! #On FreeBSD/Linux, uncomment the following + # +! PLATFORM = FreeBSD/Linux +! C_OPTS = ${CFLAGS} -DPREFIX=\"${PREFIX}\" + L_OPTS = -lncurses + + #For Dos/Windows DJGPP (you need the curses lib) + #PLATFORM = DOS_DJGPP Property changes on: head/games/seabattle/files/patch-aa ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/games/seabattle/files/patch-ab =================================================================== --- head/games/seabattle/files/patch-ab (nonexistent) +++ head/games/seabattle/files/patch-ab (revision 10329) @@ -0,0 +1,19 @@ +*** batt.h Tue May 13 19:58:17 1997 +--- /home/andy/tmp/wrk/batt.h Mon Jun 30 14:41:02 1997 +*************** +*** 2,8 **** + * batt.h Part of the SEABATTLE game by Vince Weaver * + ************************************************************************/ + +! #include /* Slang support is good for rxvt in linux */ + #include + #include + #include +--- 2,8 ---- + * batt.h Part of the SEABATTLE game by Vince Weaver * + ************************************************************************/ + +! #include /* Slang support is good for rxvt in linux */ + #include + #include + #include Property changes on: head/games/seabattle/files/patch-ab ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/games/seabattle/files/patch-ac =================================================================== --- head/games/seabattle/files/patch-ac (nonexistent) +++ head/games/seabattle/files/patch-ac (revision 10329) @@ -0,0 +1,55 @@ +*** bdb.c Tue May 13 19:49:59 1997 +--- /home/andy/tmp/wrk/bdb.c Mon Jun 30 14:41:23 1997 +*************** +*** 325,332 **** + char names[10][100],text[100]; + int ch,scores[10],i; + /* If not there, create one */ +! if( (fff=fopen("hiscore.sea","r+"))==NULL ){ +! if ( (fff=fopen("hiscore.sea","a+"))!=NULL) { + fprintf(fff,"Vince\n50\nMarie\n55\nJohn\n56\n"); + fprintf(fff,"Gus\n57\nLizann\n58\nKevin\n59\n"); + fprintf(fff,"Hal\n60\nHairold\n61\nChipper\n62\nBob\n63\n"); +--- 325,332 ---- + char names[10][100],text[100]; + int ch,scores[10],i; + /* If not there, create one */ +! if( (fff=fopen(PREFIX "/share/seabattle/hiscore.sea","r+"))==NULL ){ +! if ( (fff=fopen(PREFIX "/share/seabattle/hiscore.sea","a+"))!=NULL) { + fprintf(fff,"Vince\n50\nMarie\n55\nJohn\n56\n"); + fprintf(fff,"Gus\n57\nLizann\n58\nKevin\n59\n"); + fprintf(fff,"Hal\n60\nHairold\n61\nChipper\n62\nBob\n63\n"); +*************** +*** 335,341 **** + } + else fclose(fff); + +! if ( (fff=fopen("hiscore.sea","r"))!=NULL) { + for(i=0;i<10;i++) + fscanf(fff,"%s%i",names[i],&scores[i]); + fclose(fff); +--- 335,341 ---- + } + else fclose(fff); + +! if ( (fff=fopen(PREFIX "/share/seabattle/hiscore.sea","r"))!=NULL) { + for(i=0;i<10;i++) + fscanf(fff,"%s%i",names[i],&scores[i]); + fclose(fff); +*************** +*** 355,361 **** + set_color(C_WHITE,C_BOLD); + sprintf(text,"%s got a new High Score, #%i",name,i+1); + printxy(20,1,text); +! if ( (fff=fopen("hiscore.sea","w+"))!=NULL) { + for(i=0;i<10;i++) fprintf(fff,"%s\n%i",names[i],scores[i]); + fclose(fff); + } +--- 355,361 ---- + set_color(C_WHITE,C_BOLD); + sprintf(text,"%s got a new High Score, #%i",name,i+1); + printxy(20,1,text); +! if ( (fff=fopen(PREFIX "/share/seabattle/hiscore.sea","w+"))!=NULL) { + for(i=0;i<10;i++) fprintf(fff,"%s\n%i",names[i],scores[i]); + fclose(fff); + } Property changes on: head/games/seabattle/files/patch-ac ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/games/seabattle/files/patch-ad =================================================================== --- head/games/seabattle/files/patch-ad (nonexistent) +++ head/games/seabattle/files/patch-ad (revision 10329) @@ -0,0 +1,35 @@ +*** binp.c Tue May 13 17:51:00 1997 +--- /home/andy/tmp/wrk/binp.c Mon Jun 30 14:41:38 1997 +*************** +*** 129,143 **** + /* Incomplete as of yet */ + if (which_one==1) + if (sound_device) +! if(rand()%2) system("cat hit1.au > /dev/audio "); +! else system("cat hit2.au > /dev/audio "); + else beep(); + if (which_one==2) + if (sound_device) +! if(rand()%2) system("cat miss1.au > /dev/audio "); +! else system("cat miss2.au > /dev/audio "); + if (which_one==3) +! if (sound_device) system("cat sunkit.au > /dev/audio "); + else beep(); + } + +--- 129,143 ---- + /* Incomplete as of yet */ + if (which_one==1) + if (sound_device) +! if(rand()%2) system("cat " PREFIX "/share/seabattle/hit1.au > /dev/audio "); +! else system("cat " PREFIX "/share/seabattle/hit2.au > /dev/audio "); + else beep(); + if (which_one==2) + if (sound_device) +! if(rand()%2) system("cat " PREFIX "/share/seabattle/miss1.au > /dev/audio "); +! else system("cat " PREFIX "/share/seabattle/miss2.au > /dev/audio "); + if (which_one==3) +! if (sound_device) system("cat " PREFIX "/share/seabattle/sunkit.au > /dev/audio "); + else beep(); + } + Property changes on: head/games/seabattle/files/patch-ad ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/games/seabattle/pkg-comment =================================================================== --- head/games/seabattle/pkg-comment (nonexistent) +++ head/games/seabattle/pkg-comment (revision 10329) @@ -0,0 +1 @@ +A curses based battleship type game Property changes on: head/games/seabattle/pkg-comment ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/games/seabattle/pkg-descr =================================================================== --- head/games/seabattle/pkg-descr (nonexistent) +++ head/games/seabattle/pkg-descr (revision 10329) @@ -0,0 +1,20 @@ + + .|'''| '||'''|, || || '||` + || || || || || || + `|'''|, .|''|, '''|. ||;;;; '''|. ''||'' ''||'' || .|''|, + . || ||..|| .|''|| || || .|''|| || || || ||..|| + |...|' `|... `|..||. .||...|' `|..||. `|..' `|..' .||. `|... + + version 1.0 -- 14 May 1997 + + A Game By Vince Weaver -- Who cannot draw ASCII ships + weave@eng.umd.edu http://www.glue.umd.edu/~weave + Another Amazing Project for ENEE114 + + Send any bug reports, comments, or anything else to + Vince Weaver, weave@eng.umd.edu + + Check out other VMW Software productions at + http://www.glue.umd.edu/~weave/vmwprod + + Sea Battle -- A VMW Software Production ---------------------------- Property changes on: head/games/seabattle/pkg-descr ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/games/seabattle/pkg-plist =================================================================== --- head/games/seabattle/pkg-plist (nonexistent) +++ head/games/seabattle/pkg-plist (revision 10329) @@ -0,0 +1,10 @@ +bin/seabattle +share/seabattle/hit1.au +share/seabattle/hit2.au +share/seabattle/miss1.au +share/seabattle/miss2.au +share/seabattle/opening.au +share/seabattle/sunkit.au +share/doc/seabattle/readme.txt +@dirrm share/seabattle +@dirrm share/doc/seabattle Property changes on: head/games/seabattle/pkg-plist ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1.1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property