diff options
author | rillig <rillig@pkgsrc.org> | 2006-09-14 13:55:10 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-09-14 13:55:10 +0000 |
commit | d4d771a2a60c3bdf2166b167c5e927f0729570ce (patch) | |
tree | 92cc6de2624aa353fa9d8b7e2c45097a9df7cdf7 /games/bastet | |
parent | cac14e8458625f7afff4fe963d4c36941cfb4486 (diff) | |
download | pkgsrc-d4d771a2a60c3bdf2166b167c5e927f0729570ce.tar.gz |
Imported bastet.
"For people who enjoy swearing at their computer, Bastet (short for
Bastard Tetris) is an attractive alternative to Microsoft Word."
(taken from http://hublog.hubmed.org/)
Have you ever thought Tetris(R) was evil because it wouldn't send you
that straight "I" brick you needed in order to clear four rows at the
same time? Well Tetris(R) probably isn't evil, but Bastet certainly is.
>:-)
Bastet stands for "bastard tetris", and is a simple ncurses-based
Tetris(R) clone. Unlike normal Tetris(R), however, Bastet does not
choose your next brick at random. Instead, Bastet uses a special
algorithm designed to choose the worst brick possible. As you can
imagine, playing Bastet can be a very frustrating experience!
Diffstat (limited to 'games/bastet')
-rw-r--r-- | games/bastet/DESCR | 15 | ||||
-rw-r--r-- | games/bastet/Makefile | 25 | ||||
-rw-r--r-- | games/bastet/PLIST | 3 | ||||
-rw-r--r-- | games/bastet/distinfo | 7 | ||||
-rw-r--r-- | games/bastet/patches/patch-aa | 16 | ||||
-rw-r--r-- | games/bastet/patches/patch-ab | 13 |
6 files changed, 79 insertions, 0 deletions
diff --git a/games/bastet/DESCR b/games/bastet/DESCR new file mode 100644 index 00000000000..985d3f129b8 --- /dev/null +++ b/games/bastet/DESCR @@ -0,0 +1,15 @@ + "For people who enjoy swearing at their computer, Bastet (short for + Bastard Tetris) is an attractive alternative to Microsoft Word." + + (taken from http://hublog.hubmed.org/) + +Have you ever thought Tetris(R) was evil because it wouldn't send you +that straight "I" brick you needed in order to clear four rows at the +same time? Well Tetris(R) probably isn't evil, but Bastet certainly is. +>:-) + +Bastet stands for "bastard tetris", and is a simple ncurses-based +Tetris(R) clone. Unlike normal Tetris(R), however, Bastet does not +choose your next brick at random. Instead, Bastet uses a special +algorithm designed to choose the worst brick possible. As you can +imagine, playing Bastet can be a very frustrating experience! diff --git a/games/bastet/Makefile b/games/bastet/Makefile new file mode 100644 index 00000000000..a8e19a42a50 --- /dev/null +++ b/games/bastet/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/09/14 13:55:10 rillig Exp $ +# + +DISTNAME= bastet-0.41 +CATEGORIES= games +MASTER_SITES= http://fph.altervista.org/prog/ +EXTRACT_SUFX= .tgz + +MAINTAINER= rillig@NetBSD.org +HOMEPAGE= http://fph.altervista.org/prog/ +COMMENT= Bastard Tetris + +USE_TOOLS+= gmake +MAKE_FLAGS+= BIN_PREFIX=${PREFIX}/bin/ +MAKE_FLAGS+= DATA_PREFIX=${VARBASE}/games/ +BUILD_DEFS+= VARBASE + +INSTALLATION_DIRS= bin ${PKGMANDIR}/man6 + +do-install: + ${INSTALL_GAME} ${WRKSRC}/bastet ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/bastet.6 ${PREFIX}/${PKGMANDIR}/man6/ + +.include "../../devel/ncurses/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/games/bastet/PLIST b/games/bastet/PLIST new file mode 100644 index 00000000000..eee72eab2af --- /dev/null +++ b/games/bastet/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/09/14 13:55:10 rillig Exp $ +bin/bastet +man/man6/bastet.6 diff --git a/games/bastet/distinfo b/games/bastet/distinfo new file mode 100644 index 00000000000..92d4ac8c18b --- /dev/null +++ b/games/bastet/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/09/14 13:55:10 rillig Exp $ + +SHA1 (bastet-0.41.tgz) = 644a0f76adedef84946159520c1639ff0c6c47ec +RMD160 (bastet-0.41.tgz) = 00801881e8ee5d42f91fe5f231d3151606032851 +Size (bastet-0.41.tgz) = 24195 bytes +SHA1 (patch-aa) = 70896f37c9a05af877ab0f5f31a17a51f0bfe2f1 +SHA1 (patch-ab) = 8d388877f15291c3e0e071b36d88c50558cbc559 diff --git a/games/bastet/patches/patch-aa b/games/bastet/patches/patch-aa new file mode 100644 index 00000000000..29c70b2ed03 --- /dev/null +++ b/games/bastet/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1.1.1 2006/09/14 13:55:10 rillig Exp $ + +--- bast.c.orig 2004-10-15 23:58:52.000000000 +0200 ++++ bast.c 2006-09-14 15:46:12.000000000 +0200 +@@ -1,7 +1,11 @@ + #include <stdlib.h> + #include <stdio.h> + #include <ncurses.h> ++#if defined(__linux) + #include <termio.h> ++#else ++#include <termios.h> ++#endif + #include <assert.h> + #include <unistd.h> + #include <string.h> diff --git a/games/bastet/patches/patch-ab b/games/bastet/patches/patch-ab new file mode 100644 index 00000000000..c79d04fa2ad --- /dev/null +++ b/games/bastet/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2006/09/14 13:55:10 rillig Exp $ + +--- game.c.orig 2004-10-15 23:58:52.000000000 +0200 ++++ game.c 2006-09-14 15:46:25.000000000 +0200 +@@ -66,7 +66,7 @@ unsigned char *well_data; + + /* Delay before block drop one step down (usec). + We start at one sec. and then decreases the delay by 23% at each level. */ +-const int delay[NO_LEVELS] = {1000000, 770000, 593000, 457000, 352000, 271000, 208000, 160000, 124000, 95000}; ++const int delay[NO_LEVELS] = {999999, 770000, 593000, 457000, 352000, 271000, 208000, 160000, 124000, 95000}; + + /* Window in which the action takes place. */ + WINDOW *well_win; |