diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1997-05-21 03:34:47 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1997-05-21 03:34:47 +0000 |
commit | 8ef3ea08560e978f2a8fdf08e5a631bf994dc8f4 (patch) | |
tree | 218e88c06cae0cb0775761d671fc468ca07b0baa /games/block | |
parent | Spread info dir entries into all relevant files. The previous version (diff) |
A small text-based maze game.
PR: 3603
Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Notes
Notes:
svn path=/head/; revision=6515
Diffstat (limited to '')
-rw-r--r-- | games/block/Makefile | 35 | ||||
-rw-r--r-- | games/block/distinfo | 1 | ||||
-rw-r--r-- | games/block/files/patch-aa | 19 | ||||
-rw-r--r-- | games/block/files/patch-ab | 53 | ||||
-rw-r--r-- | games/block/pkg-comment | 1 | ||||
-rw-r--r-- | games/block/pkg-descr | 27 | ||||
-rw-r--r-- | games/block/pkg-plist | 8 |
7 files changed, 144 insertions, 0 deletions
diff --git a/games/block/Makefile b/games/block/Makefile new file mode 100644 index 000000000000..25c531e824ed --- /dev/null +++ b/games/block/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: block +# Version required: 0.5 +# Date created: 10 May 1997 +# Whom: Andrey Zakhvatov +# +# $Id$ +# + +DISTNAME= block-0.5 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= games/strategy + +MAINTAINER= andy@icc.surw.chel.su + +WRKSRC= ${WRKDIR}/blocks +MAKEFILE= makefile +ALL_TARGET= block bed +MAN6= block.6 bed.6 + +pre-build: + @${RM} ${WRKSRC}/block + @${RM} ${WRKSRC}/bed + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/block ${PREFIX}/bin/block + ${INSTALL_PROGRAM} ${WRKSRC}/bed ${PREFIX}/bin/bed + ${INSTALL_MAN} ${WRKSRC}/block.6 ${PREFIX}/man/man6 + ${INSTALL_MAN} ${WRKSRC}/bed.6 ${PREFIX}/man/man6 + ${MKDIR} ${PREFIX}/share/block +.for file in another complex default pyramid + ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/block/${file}.block +.endfor + +.include <bsd.port.mk> diff --git a/games/block/distinfo b/games/block/distinfo new file mode 100644 index 000000000000..8fa96414f74b --- /dev/null +++ b/games/block/distinfo @@ -0,0 +1 @@ +MD5 (block-0.5.tar.gz) = c7a1e75e0f00d2cc5909460e6fb574ff diff --git a/games/block/files/patch-aa b/games/block/files/patch-aa new file mode 100644 index 000000000000..22c48551dd81 --- /dev/null +++ b/games/block/files/patch-aa @@ -0,0 +1,19 @@ +*** makefile Tue Nov 28 03:47:05 1995 +--- /home/andy/tmp/wrk/Makefile Sat May 10 20:47:07 1997 +*************** +*** 13,19 **** + + #makes the game - this is default (has colors and keyboard flushing) + block : block.c +! $(CC) $(INCLUDE) -DUCOL -DNEW -s -o block block.c $(LL) + + #make the editor + bed : bed.c +--- 13,19 ---- + + #makes the game - this is default (has colors and keyboard flushing) + block : block.c +! $(CC) $(INCLUDE) -DUCOL -DNEW -DPREFIX=\"$(PREFIX)\" -s -o block block.c $(LL) + + #make the editor + bed : bed.c diff --git a/games/block/files/patch-ab b/games/block/files/patch-ab new file mode 100644 index 000000000000..2496d7e70910 --- /dev/null +++ b/games/block/files/patch-ab @@ -0,0 +1,53 @@ +*** block.c Mon Nov 20 19:02:24 1995 +--- /home/andy/tmp/wrk/block.c Sat May 10 22:57:08 1997 +*************** +*** 31,37 **** + #define FF_HOME 4 + #define FF_OVEN 5 + +! #define DEFGAME "/usr/games/lib/default.block" + + /* uncomment if you like lots of diagnostic garbage */ + /* #define DEBUG 1 */ +--- 31,37 ---- + #define FF_HOME 4 + #define FF_OVEN 5 + +! #define DEFGAME PREFIX "/share/block/default.block" + + /* uncomment if you like lots of diagnostic garbage */ + /* #define DEBUG 1 */ +*************** +*** 140,146 **** + break; + case 1 : + case 2 : printf("Hmmm... trouble reading file %s\n",lname); +! sprintf(tmp,"/usr/games/lib/%s.block",lname); + if(loadnext(&cw,tmp)){ + printf("Could not read %s either\n",tmp); + if(loadnext(&cw,"default")){ +--- 140,146 ---- + break; + case 1 : + case 2 : printf("Hmmm... trouble reading file %s\n",lname); +! sprintf(tmp, PREFIX "/share/block/%s.block",lname); + if(loadnext(&cw,tmp)){ + printf("Could not read %s either\n",tmp); + if(loadnext(&cw,"default")){ +*************** +*** 495,501 **** + } + /*Hope they come back again*/ + +! sprintf(lname,"/usr/games/lib/%s.block",cw.fname); + /* yuck - a messy kludge - the fname stores the name of the next game*/ + moves=0; + if(looper)looper=2; +--- 495,501 ---- + } + /*Hope they come back again*/ + +! sprintf(lname,"/share/block/%s.block",cw.fname); + /* yuck - a messy kludge - the fname stores the name of the next game*/ + moves=0; + if(looper)looper=2; diff --git a/games/block/pkg-comment b/games/block/pkg-comment new file mode 100644 index 000000000000..909cd2ec13db --- /dev/null +++ b/games/block/pkg-comment @@ -0,0 +1 @@ +Small text based maze game diff --git a/games/block/pkg-descr b/games/block/pkg-descr new file mode 100644 index 000000000000..8c97c62e811f --- /dev/null +++ b/games/block/pkg-descr @@ -0,0 +1,27 @@ +Blocks - a small tty based games using ncurses +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ + + Written by marc welz (rather : kluged by marc welz) - Redistribution is + subject to the GNU public license. + + +Notes +----- + + Good idea to restrict file names to 20 chars. + + The editor tries to fill the entire screen - so if you write a level on + a big screen, you will not be able to play it on a small one. And + remember to save the game you are editing before exiting. + + Probably contains bugs - but if I knew what they were they would not be + there ... + +Thanks +------ + + A big THANK YOU goes to Joey Hess (jeh22@conell.edu) who contributed + the pyramid level, wrote the man pages for the game and pointed out a + couple of minor bugs. + +marc (marc@mbs.bch.uct.ac.za) diff --git a/games/block/pkg-plist b/games/block/pkg-plist new file mode 100644 index 000000000000..ca64756e331c --- /dev/null +++ b/games/block/pkg-plist @@ -0,0 +1,8 @@ +bin/block +bin/bed +man/man6/block.6.gz +man/man6/bed.6.gz +share/block/another.block +share/block/complex.block +share/block/default.block +share/block/pyramid.block |