summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-06-04 05:23:47 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-06-04 05:23:47 +0000
commit863582a685d4c1f231f4be3070fb8126ab33ba0f (patch)
tree346419a56ddd7f124ccc7796e05c8a0f42ae26e5 /games
parentAdd nmh. (diff)
"Battleships solitaire" game (whatever that means).
PR: 3692 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Notes
Notes: svn path=/head/; revision=6739
Diffstat (limited to 'games')
-rw-r--r--games/bs/Makefile22
-rw-r--r--games/bs/distinfo1
-rw-r--r--games/bs/files/patch-aa19
-rw-r--r--games/bs/files/patch-ab19
-rw-r--r--games/bs/pkg-comment1
-rw-r--r--games/bs/pkg-descr42
-rw-r--r--games/bs/pkg-plist2
7 files changed, 106 insertions, 0 deletions
diff --git a/games/bs/Makefile b/games/bs/Makefile
new file mode 100644
index 000000000000..31309d12ec80
--- /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 000000000000..45daadcdf253
--- /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 000000000000..2bd585b7c968
--- /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 000000000000..c52aac7e503a
--- /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 000000000000..b66b0d3453a8
--- /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 000000000000..7387f8c068c9
--- /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 000000000000..07e5e43f83b0
--- /dev/null
+++ b/games/bs/pkg-plist
@@ -0,0 +1,2 @@
+bin/bs
+man/man6/bs.6.gz