diff options
author | asami <asami@FreeBSD.org> | 1997-06-04 05:23:47 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1997-06-04 05:23:47 +0000 |
commit | 66fdee468a4d2865a1151971a9828191c04d12a9 (patch) | |
tree | d6fab762419fa34479627b651381c445cd7878b4 /games/bs | |
parent | 5b8819d826916b99f427de07db9b625aeb738aae (diff) | |
download | FreeBSD-ports-66fdee468a4d2865a1151971a9828191c04d12a9.zip FreeBSD-ports-66fdee468a4d2865a1151971a9828191c04d12a9.tar.gz |
"Battleships solitaire" game (whatever that means).
PR: 3692
Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Diffstat (limited to 'games/bs')
-rw-r--r-- | games/bs/Makefile | 22 | ||||
-rw-r--r-- | games/bs/distinfo | 1 | ||||
-rw-r--r-- | games/bs/files/patch-aa | 19 | ||||
-rw-r--r-- | games/bs/files/patch-ab | 19 | ||||
-rw-r--r-- | games/bs/pkg-comment | 1 | ||||
-rw-r--r-- | games/bs/pkg-descr | 42 | ||||
-rw-r--r-- | games/bs/pkg-plist | 2 |
7 files changed, 106 insertions, 0 deletions
diff --git a/games/bs/Makefile b/games/bs/Makefile new file mode 100644 index 0000000..31309d1 --- /dev/null +++ b/games/bs/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: bs +# Version required: 2.1 +# Date created: 11 May 1997 +# Whom: Andrey Zakhvatov +# +# $Id$ +# + +DISTNAME= bs-2.1 +CATEGORIES= games +MASTER_SITES= ftp://locke.ccil.org/pub/esr/ + +MAINTAINER= andy@icc.surw.chel.su + +ALL_TARGET= +MAN6= bs.6 + +do-install: + @ ${INSTALL_PROGRAM} ${WRKSRC}/bs ${PREFIX}/bin/bs + @ ${INSTALL_MAN} ${WRKSRC}/bs.6 ${PREFIX}/man/man6 + +.include <bsd.port.mk> diff --git a/games/bs/distinfo b/games/bs/distinfo new file mode 100644 index 0000000..45daadc --- /dev/null +++ b/games/bs/distinfo @@ -0,0 +1 @@ +MD5 (bs-2.1.tar.gz) = 6ec710ae68358894309a351a274a6eb6 diff --git a/games/bs/files/patch-aa b/games/bs/files/patch-aa new file mode 100644 index 0000000..2bd585b --- /dev/null +++ b/games/bs/files/patch-aa @@ -0,0 +1,19 @@ +*** Makefile Thu Dec 7 23:05:56 1995 +--- /home/andy/tmp/wrk/Makefile Mon May 26 17:58:13 1997 +*************** +*** 6,12 **** + V=2.1 + + # Flags for use with the Linux ncurses package (recommended) +! TERMLIB = -lncurses + CC = gcc + + # Flags for use with stock curses +--- 6,12 ---- + V=2.1 + + # Flags for use with the Linux ncurses package (recommended) +! TERMLIB = -lncurses -lmytinfo + CC = gcc + + # Flags for use with stock curses diff --git a/games/bs/files/patch-ab b/games/bs/files/patch-ab new file mode 100644 index 0000000..c52aac7 --- /dev/null +++ b/games/bs/files/patch-ab @@ -0,0 +1,19 @@ +*** bs.c Thu May 9 02:14:05 1996 +--- /home/andy/tmp/wrk/bs.c Mon May 26 17:57:07 1997 +*************** +*** 9,15 **** + */ + #define _POSIX_SOURCE + +! #include <curses.h> + #include <signal.h> + #include <ctype.h> + #include <stdlib.h> +--- 9,15 ---- + */ + #define _POSIX_SOURCE + +! #include <ncurses.h> + #include <signal.h> + #include <ctype.h> + #include <stdlib.h> diff --git a/games/bs/pkg-comment b/games/bs/pkg-comment new file mode 100644 index 0000000..b66b0d3 --- /dev/null +++ b/games/bs/pkg-comment @@ -0,0 +1 @@ +Battleships solitaire game with a color interface diff --git a/games/bs/pkg-descr b/games/bs/pkg-descr new file mode 100644 index 0000000..7387f8c --- /dev/null +++ b/games/bs/pkg-descr @@ -0,0 +1,42 @@ + +Battleships solitaire game with a color point-and-shoot +interface in the style of blue and galaxis games. + + BS 2.0 + +Battleships is an intrinsically silly game, but I couldn't resist fixing this +sucker. It now has a purely visual interface (you place ships and call for +shots by moving the cursor around the board using the standard yuhjklbn keys). + +The default game now disallows placement of ships so that they touch. A new +-c option is available to force the older behavior. + +I also removed the `seemiss' option (now always on) and `ask' (which is only +useful for cheating). And I ifdefed out the ditsy opening screen; if you want +it back, compile with -DPENGUIN. One strike against featureitis... + +The code now lints as clean as the broken SysV curses lint library will let it. + +Some #ifdefs in the code should result in the right things being done for +BSD or USG systems. They key off A_UNDERLINE. If you're using the Linux +ncurses library, tell the makefile. + +This was probably a waste of a day or so. But what the hack -- rewriting the +strategy robot as an FSM was fun, and maybe the interface will set a good +example for the next guy. + +<*** FLAME ON ***> + +People who write termcap games that require you to enter #@!!#$! coordinates +rather than doing the natural pick-and-place with cursor motions should be +stuffed in suits and condemned to write COBOL for the rest of their days... + +<*** FLAME OFF ***> + +O.K., I feel better now that I've got that off my chest... + +November 1993: I've added function key support, and ANSI/POSIXized the code. + + Eric S. Raymond + esr@snark.thyrsus.com + (WWW: http://www.ccil.org/~esr/home.html) diff --git a/games/bs/pkg-plist b/games/bs/pkg-plist new file mode 100644 index 0000000..07e5e43 --- /dev/null +++ b/games/bs/pkg-plist @@ -0,0 +1,2 @@ +bin/bs +man/man6/bs.6.gz |