summaryrefslogtreecommitdiff
path: root/games/yamsweeper
diff options
context:
space:
mode:
authorMasafumi Max NAKANE <max@FreeBSD.org>1996-09-21 16:56:47 +0000
committerMasafumi Max NAKANE <max@FreeBSD.org>1996-09-21 16:56:47 +0000
commit25b55e7f93128278842a944d83ca481a80b6773d (patch)
tree15e7cae606c69376a2c1e5fa1bc6e25728d088fa /games/yamsweeper
parentUpgrade to +26 (diff)
Yet another mine sweeper Ver. 1.9
Submitted by: Hidekazu Kuroki <hidekazu@cs.titech.ac.jp>
Notes
Notes: svn path=/head/; revision=3834
Diffstat (limited to 'games/yamsweeper')
-rw-r--r--games/yamsweeper/Makefile31
-rw-r--r--games/yamsweeper/distinfo1
-rw-r--r--games/yamsweeper/files/Imakefile70
-rw-r--r--games/yamsweeper/files/patch-aa20
-rw-r--r--games/yamsweeper/pkg-comment1
-rw-r--r--games/yamsweeper/pkg-descr51
-rw-r--r--games/yamsweeper/pkg-plist13
7 files changed, 187 insertions, 0 deletions
diff --git a/games/yamsweeper/Makefile b/games/yamsweeper/Makefile
new file mode 100644
index 000000000000..4f142dd6bba5
--- /dev/null
+++ b/games/yamsweeper/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: yamsweeper
+# Version required: 1.9
+# Date created: 14 Sep 1996
+# Whom: Hidekazu Kuroki <hidekazu@cs.titech.ac.jp>
+#
+# $Id$
+#
+
+DISTNAME= yamsweeper-1.9
+CATEGORIES+= games
+MASTER_SITES= ftp://ftp.tut.ac.jp/X11/Contrib/Games/
+
+MAINTAINER= hidekazu@cs.titech.ac.jp
+
+USE_IMAKE= yes
+
+
+pre-configure:
+ @mv ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.old
+ @cp ${FILESDIR}/Imakefile ${WRKSRC}
+
+post-install:
+ @chmod 4755 ${PREFIX}/bin/yamsweeper
+ @chown games.bin ${PREFIX}/bin/yamsweeper
+ @chown bin.bin ${PREFIX}/man/man1/yamsweeper.1.gz
+ @chmod 755 ${PREFIX}/lib/X11/yamsweeper
+ @chown games.bin ${PREFIX}/lib/X11/yamsweeper
+ @chown games.bin ${PREFIX}/lib/X11/yamsweeper/yams.log
+ @chown games.bin ${X11BASE}/lib/X11/app-defaults/Yamsweeper
+
+.include <bsd.port.mk>
diff --git a/games/yamsweeper/distinfo b/games/yamsweeper/distinfo
new file mode 100644
index 000000000000..29846803c0f8
--- /dev/null
+++ b/games/yamsweeper/distinfo
@@ -0,0 +1 @@
+MD5 (yamsweeper-1.9.tar.gz) = 46f0e4d4f80cece2d7b4f853c9a54480
diff --git a/games/yamsweeper/files/Imakefile b/games/yamsweeper/files/Imakefile
new file mode 100644
index 000000000000..4579f1493a7b
--- /dev/null
+++ b/games/yamsweeper/files/Imakefile
@@ -0,0 +1,70 @@
+#ifndef XCOMM
+#define XCOMM #
+#endif
+
+XCOMM Imakefile src for Yamsweeper, created by hirofumi
+XCOMM
+XCOMM $Id: Imakefile,v 1.2 1994/11/03 00:18:42 hirofumi Exp hirofumi $
+XCOMM
+
+#include "REVISION"
+
+ DEPLIBS = XawClientDepLibs
+LOCAL_LIBRARIES = XawClientLibs
+ HEADERS = bmps.h gentype.h struct.h funcs.h highscore.h
+ SRCS = version.c main.c win.c bmps.c highscore.c
+OBJS = $(SRCS:.c=.o)
+
+#define cppLogUser 1
+#define cppHighScore 1
+
+YAMSDIR = $(LIBDIR)/yamsweeper
+LOGFILE = $(YAMSDIR)/yams.log
+
+
+DEFINES = '-DLOGFILE="$(LOGFILE)"' -DLOG_USER=cppLogUser \ @@\
+ -DHAS_RANDOM=1 -DNO_FD_SET=0 \ @@\
+ -DHIGH_SCORE=cppHighScore '-DHIGH_SCORE_FILE="$(YAMSDIR)/yams.hi"'
+
+INSTALLDIR= $(BINDIR)
+
+#if cppLogUser || cppHighScore
+
+all: yamsweeper
+
+#ifdef SetUIDProgramTarget
+ /* X11R[56] */
+SetUIDProgramTarget(yamsweeper,$(OBJS),$(DEPLIB),XawClientLibs,)
+#else
+ /* X11R4 */
+NormalProgramTarget(yamsweeper,$(OBJS),$(DEPLIB),XawClientLibs,)
+#endif
+
+InstallProgramWithFlags(yamsweeper,$(INSTALLDIR),$(INSTUIDFLAGS))
+InstallManPage(yamsweeper,$(MANDIR))
+
+#if cppLogUser
+install::
+ MakeDir($(YAMSDIR))
+ touch $(LOGFILE)
+#endif /* cppLogUser */
+
+#if cppHighScore
+install::
+ MakeDir($(YAMSDIR))
+#endif
+
+#else /* cppLogUser || cppHighScore */
+
+ComplexProgramTarget(yamsweeper)
+
+#endif
+
+
+InstallAppDefaults(Yamsweeper)
+
+
+
+#include "PACK"
+
+DependTarget()
diff --git a/games/yamsweeper/files/patch-aa b/games/yamsweeper/files/patch-aa
new file mode 100644
index 000000000000..81f80f02c140
--- /dev/null
+++ b/games/yamsweeper/files/patch-aa
@@ -0,0 +1,20 @@
+diff -arcN ../yamsweeper-1.9.org/main.c ./main.c
+*** ../yamsweeper-1.9.org/main.c Thu Nov 3 09:20:41 1994
+--- ./main.c Sat Sep 21 09:50:53 1996
+***************
+*** 118,124 ****
+ #endif
+ {
+ #if LOG_USER
+! char* user = getenv(appData.identifier);
+ time_t tt = time(NULL);
+ char* ct = ctime(&tt);
+ FILE* fp = fopen(LOGFILE, "a");
+--- 118,124 ----
+ #endif
+ {
+ #if LOG_USER
+! char* user = (char *)getenv(appData.identifier);
+ time_t tt = time(NULL);
+ char* ct = ctime(&tt);
+ FILE* fp = fopen(LOGFILE, "a");
diff --git a/games/yamsweeper/pkg-comment b/games/yamsweeper/pkg-comment
new file mode 100644
index 000000000000..e576a6cbdcbd
--- /dev/null
+++ b/games/yamsweeper/pkg-comment
@@ -0,0 +1 @@
+Yet Another Mine Sweeper Ver. 1.9
diff --git a/games/yamsweeper/pkg-descr b/games/yamsweeper/pkg-descr
new file mode 100644
index 000000000000..435cd1c15608
--- /dev/null
+++ b/games/yamsweeper/pkg-descr
@@ -0,0 +1,51 @@
+Yamsweeper is a game to clear the field filled with bombs (mines).
+
+On the left top corner of the main window,
+the number of mines left is displayed.
+You can mark hidden mines underneath the panels, then
+the number is decreased.
+The number can be minus, but that means you have over-marked.
+
+On the right top corner, the time passed is displayed.
+The time counts up to 999 seconds.
+
+On center top, there's the symbol of yamsweeper.
+You can start a new game by clicking this symbol.
+
+A panel is opened with the left mouse button.
+If panels not opened are around the panel, and
+if they don't have mines underneith and around them,
+panels are also opened.
+This can be happened like chain reaction.
+But be carefull; the game is over when you open a mine.
+
+If the panel opened has mines around,
+you will see a number varies from 1 to 8, which means
+the number of mines.
+For example, `1' tells you one of the panels around
+has a mine. `2' says that two mines are hidden next to.
+
+You can mark suspicious panels by the right button.
+The right button changes the state of the panel, as:
+
+ Normal -> "Bomb" -> "?" -> Back to Normal -> ...
+
+Once you mark a panel (as "Bomb" or "?"), it cannot be opened.
+You have to click the panel until it becomes to Normal state.
+
+The middle button is assigned a special functionality.
+You can use the middle button to open the unmarked panels around,
+under a certain condition.
+
+1. The panel you clicked is opened.
+
+2. The panel is not null, a number is displayed.
+
+3. the number of marked panels is equal to the number displayed on
+ clicked panel.
+
+Click the middle button on a opened panel.
+
+-------------------------------------------------------------------
+
+This port was created by Hidekazu Kuroki <hidekazu@cs.titech.ac.jp>.
diff --git a/games/yamsweeper/pkg-plist b/games/yamsweeper/pkg-plist
new file mode 100644
index 000000000000..914ad0a401bf
--- /dev/null
+++ b/games/yamsweeper/pkg-plist
@@ -0,0 +1,13 @@
+@owner games
+@mode 4755
+bin/yamsweeper
+@exec mkdir %D/lib/X11/yamsweeper && chmod 755 %D/lib/X11/yamsweeper && chown games.bin %D/lib/X11/yamsweeper
+lib/X11/yamsweeper/yams.log
+@unexec rm -rf %D/lib/X11/yamsweeper
+@mode 444
+@owner bin
+man/man1/yamsweeper.1.gz
+@cwd /usr/X11R6
+@mode 444
+@owner games
+lib/X11/app-defaults/Yamsweeper