diff options
author | mph <mph@FreeBSD.org> | 1998-04-27 12:36:16 +0800 |
---|---|---|
committer | mph <mph@FreeBSD.org> | 1998-04-27 12:36:16 +0800 |
commit | ad0949e5838d4f75636b613f7a7e04f31c5b72e7 (patch) | |
tree | 3f57d427a9c0394eb278e399cc84f6a2c5cef79f /games/xchain | |
parent | 55620e8b838a2cabed16f7d91b8ca1085d0fff3d (diff) | |
download | freebsd-ports-gnome-ad0949e5838d4f75636b613f7a7e04f31c5b72e7.tar.gz freebsd-ports-gnome-ad0949e5838d4f75636b613f7a7e04f31c5b72e7.tar.zst freebsd-ports-gnome-ad0949e5838d4f75636b613f7a7e04f31c5b72e7.zip |
Import of Chain Reaction 1.0.2, a Tk-based strategy game.
PR: 5998
Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Diffstat (limited to 'games/xchain')
-rw-r--r-- | games/xchain/Makefile | 30 | ||||
-rw-r--r-- | games/xchain/distinfo | 1 | ||||
-rw-r--r-- | games/xchain/files/patch-aa | 11 | ||||
-rw-r--r-- | games/xchain/files/patch-ab | 13 | ||||
-rw-r--r-- | games/xchain/pkg-comment | 1 | ||||
-rw-r--r-- | games/xchain/pkg-descr | 19 | ||||
-rw-r--r-- | games/xchain/pkg-plist | 5 |
7 files changed, 80 insertions, 0 deletions
diff --git a/games/xchain/Makefile b/games/xchain/Makefile new file mode 100644 index 000000000000..50b33077d7a3 --- /dev/null +++ b/games/xchain/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: xchain +# Version required: 1.0.2 +# Date created: 13 March 1998 +# Whom: Andrey Zakhvatov +# +# $Id$ +# + +DISTNAME= xchain_1.0-2 +PKGNAME= xchain-1.0.2 +CATEGORIES= games x11 +MASTER_SITES= http://thor.cam.ac.uk/~ac212/xchain/ + +MAINTAINER= andy@icc.surw.chel.su + +RUN_DEPENDS= wish8.0:${PORTSDIR}/x11/tk80 + +USE_X11= yes +WRKSRC= ${WRKDIR}/xchain-1.0 + +MAN6= xchain.6 + +do-install: + @ ${INSTALL_PROGRAM} ${WRKSRC}/xchain ${PREFIX}/bin + @ ${INSTALL_MAN} ${WRKSRC}/xchain.6 ${PREFIX}/man/man6 + @ ${MKDIR} ${PREFIX}/share/doc/xchain + @ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xchain + @ ${INSTALL_DATA} ${WRKSRC}/copyright ${PREFIX}/share/doc/xchain + +.include <bsd.port.mk> diff --git a/games/xchain/distinfo b/games/xchain/distinfo new file mode 100644 index 000000000000..38153bf0a090 --- /dev/null +++ b/games/xchain/distinfo @@ -0,0 +1 @@ +MD5 (xchain_1.0-2.tar.gz) = d212b847d05e3be5b7b0ed713a07ee64 diff --git a/games/xchain/files/patch-aa b/games/xchain/files/patch-aa new file mode 100644 index 000000000000..3e1b5892e65a --- /dev/null +++ b/games/xchain/files/patch-aa @@ -0,0 +1,11 @@ +--- xchain.c Wed Feb 25 15:10:15 1998 ++++ /home/andy/tmp/wrk/xchain.c Fri Mar 13 21:53:20 1998 +@@ -29,7 +29,7 @@ + #include <stdlib.h> + #include <time.h> + +-#define DEF_WISH_PATH "/usr/bin/wish" ++#define DEF_WISH_PATH "/usr/local/bin/wish8.0" + + void wprintf(char *, ...); + void draw_screen(void); diff --git a/games/xchain/files/patch-ab b/games/xchain/files/patch-ab new file mode 100644 index 000000000000..db30440ada24 --- /dev/null +++ b/games/xchain/files/patch-ab @@ -0,0 +1,13 @@ +--- Makefile.orig Mon Apr 27 00:32:58 1998 ++++ Makefile Mon Apr 27 00:33:22 1998 +@@ -1,8 +1,8 @@ + DESTDIR = / + # This is so dpkg-buildpackage can build in the correct dir + +-CC=gcc +-CFLAGS=-O2 -Wall ++#CC=gcc ++#CFLAGS=-O2 -Wall + + OBJS= xchain.o + diff --git a/games/xchain/pkg-comment b/games/xchain/pkg-comment new file mode 100644 index 000000000000..da80651da9e9 --- /dev/null +++ b/games/xchain/pkg-comment @@ -0,0 +1 @@ +Chain Reaction, a strategy game for 2-4 players. diff --git a/games/xchain/pkg-descr b/games/xchain/pkg-descr new file mode 100644 index 000000000000..a8d2a61a65ce --- /dev/null +++ b/games/xchain/pkg-descr @@ -0,0 +1,19 @@ + Chain Reaction is played on an 8 by 8 board. Players take turns to move. +On each move, the player may select an empty square, or one they already +own. Squares belonging to other players may not be chosen. If the square +was unowned, it becomes the property of the player, and is given a value of +1. If the square was owned by the player, the value is incremented. + + If the value of a square ever exceeds the maximum permitted of that +square, it explodes. Squares in the corner have a maximum of 1, squares +touching an edge, but not on a corner have a maximum of 2, and squares in +the interior have a maximum of 3. + + When a square explodes, it becomes unowned, and it's value is reset to +0. The 4 squares touching it become owned by the owner of the exploding +square, and their values are incremented. If any of these are above their +maximum, they explode, giving rise to the chain reaction. + + If, at the end of a move, any of the players have no squares, they are +dead, and get no more turns. When there is only one person left, they are +the winner. diff --git a/games/xchain/pkg-plist b/games/xchain/pkg-plist new file mode 100644 index 000000000000..9725d7202aff --- /dev/null +++ b/games/xchain/pkg-plist @@ -0,0 +1,5 @@ +bin/xchain +man/man6/xchain.6.gz +share/doc/xchain/README +share/doc/xchain/copyright +@dirrm share/doc/xchain |