summaryrefslogtreecommitdiff
path: root/games/xmastermind
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>1998-05-18 14:18:41 +0000
committerThomas Gellekum <tg@FreeBSD.org>1998-05-18 14:18:41 +0000
commita903a70813ecef4b5625ab7409cf1adb38ed3843 (patch)
tree6a23887ebed401a3aff9b2becd507c7d626a6a0e /games/xmastermind
parentActivate xisola. (diff)
New port xmastermind. Guess a letter combination in 10 tries.
PR: 6119 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Notes
Notes: svn path=/head/; revision=11048
Diffstat (limited to 'games/xmastermind')
-rw-r--r--games/xmastermind/Makefile27
-rw-r--r--games/xmastermind/distinfo1
-rw-r--r--games/xmastermind/files/patch-aa15
-rw-r--r--games/xmastermind/pkg-comment1
-rw-r--r--games/xmastermind/pkg-descr16
-rw-r--r--games/xmastermind/pkg-plist5
6 files changed, 65 insertions, 0 deletions
diff --git a/games/xmastermind/Makefile b/games/xmastermind/Makefile
new file mode 100644
index 000000000000..3e259fc81482
--- /dev/null
+++ b/games/xmastermind/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: xmastermind
+# Version required: 0.1
+# Date created: 23 March 1998
+# Whom: Andrey Zakhvatov
+#
+# $Id$
+#
+
+DISTNAME= xmastermind-0.1
+CATEGORIES= games x11
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
+MASTER_SITE_SUBDIR= games/strategy
+
+MAINTAINER= andy@icc.surw.chel.su
+
+LIB_DEPENDS= xforms\\.0\\.:${PORTSDIR}/x11/xforms
+
+USE_X11= yes
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/xmastermind ${PREFIX}/bin
+ @ ${MKDIR} ${PREFIX}/share/doc/xmastermind
+.for file in BUGS README.for.developers README.for.users
+ @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/xmastermind
+.endfor
+
+.include <bsd.port.mk>
diff --git a/games/xmastermind/distinfo b/games/xmastermind/distinfo
new file mode 100644
index 000000000000..e743a6918297
--- /dev/null
+++ b/games/xmastermind/distinfo
@@ -0,0 +1 @@
+MD5 (xmastermind-0.1.tar.gz) = 086e8b8d4ee0cb77c00060a354bbfe6a
diff --git a/games/xmastermind/files/patch-aa b/games/xmastermind/files/patch-aa
new file mode 100644
index 000000000000..88be9e3e4b86
--- /dev/null
+++ b/games/xmastermind/files/patch-aa
@@ -0,0 +1,15 @@
+--- Makefile Tue Dec 30 10:30:25 1997
++++ /home/andy/tmp/wrk/Makefile Mon Mar 23 23:20:18 1998
+@@ -1,10 +1,10 @@
+ OBJS = main.o mymath.o mastermind.o guiglobal.o apptogui.o guitoapp.o mainwindowdesign.o
+
+ CC = gcc
+-CFLAGS = -O2 -Wall -Wpointer-arith -Wstrict-prototypes -pedantic -ansi
++CFLAGS+= -Wall -Wpointer-arith -Wstrict-prototypes -pedantic -ansi -I${X11BASE}/include
+ CLIBS = -lm
+ #GRAPHLIBS = -lforms -L/usr/X11R6/lib/ -lX11 -static
+-GRAPHLIBS = -lforms -L/usr/X11R6/lib/ -lX11
++GRAPHLIBS = -lxforms -L${X11BASE}/lib -lX11
+ MF = Makefile
+
+ ALLLIBS = $(GRAPHLIBS) $(CLIBS)
diff --git a/games/xmastermind/pkg-comment b/games/xmastermind/pkg-comment
new file mode 100644
index 000000000000..20638ffab747
--- /dev/null
+++ b/games/xmastermind/pkg-comment
@@ -0,0 +1 @@
+mastermind game for X Window System.
diff --git a/games/xmastermind/pkg-descr b/games/xmastermind/pkg-descr
new file mode 100644
index 000000000000..d8e21e31f48e
--- /dev/null
+++ b/games/xmastermind/pkg-descr
@@ -0,0 +1,16 @@
+The computer calculates a combination of five characters (each between
+A and J) and you have to try to find out the combination the computer
+has calculated. Your questions to the computer are also combinations
+of five characters (each between A and J).
+
+You get sets of black and/or white blocks as answers to your
+questions.
+
+If you get a black block as answer it means that there is one
+character in your try at the correct position (but you don't know
+which one it is).
+
+If you get a white block as answer it means that there is a character
+in your guess that also occurs in the solution, but at another
+position (but you don't know which one it is and at which position it
+would be correct).
diff --git a/games/xmastermind/pkg-plist b/games/xmastermind/pkg-plist
new file mode 100644
index 000000000000..9252f3cc087a
--- /dev/null
+++ b/games/xmastermind/pkg-plist
@@ -0,0 +1,5 @@
+bin/xmastermind
+share/doc/xmastermind/BUGS
+share/doc/xmastermind/README.for.developers
+share/doc/xmastermind/README.for.users
+@dirrm share/doc/xmastermind