diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 1997-07-04 09:36:41 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 1997-07-04 09:36:41 +0000 |
commit | d8df56cea7a6a82366371d26dae0f310b692b4df (patch) | |
tree | 18309ce7e8d01cb1c461a3a774d164f133b100b9 /games/yahtzee | |
parent | c5282c564c824dffe69d3fe43eec912ea8deb20a (diff) | |
download | ports-d8df56cea7a6a82366371d26dae0f310b692b4df.tar.gz ports-d8df56cea7a6a82366371d26dae0f310b692b4df.zip |
Notes
Diffstat (limited to 'games/yahtzee')
-rw-r--r-- | games/yahtzee/Makefile | 29 | ||||
-rw-r--r-- | games/yahtzee/distinfo | 1 | ||||
-rw-r--r-- | games/yahtzee/files/patch-aa | 22 | ||||
-rw-r--r-- | games/yahtzee/files/patch-ab | 19 | ||||
-rw-r--r-- | games/yahtzee/files/patch-ac | 48 | ||||
-rw-r--r-- | games/yahtzee/pkg-comment | 1 | ||||
-rw-r--r-- | games/yahtzee/pkg-descr | 15 | ||||
-rw-r--r-- | games/yahtzee/pkg-plist | 2 |
8 files changed, 137 insertions, 0 deletions
diff --git a/games/yahtzee/Makefile b/games/yahtzee/Makefile new file mode 100644 index 000000000000..35d593763ffe --- /dev/null +++ b/games/yahtzee/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: yahtzee +# Version required: 1.0 +# Date created: Friday 4th July, 1997 +# Whom: Joel Sutton <sutton@aardvark.apana.org.au> +# FreeBSD Version: 2.2.1-RELEASE +# +# $Id$ +# + +DISTNAME= yahtzee-src +PKGNAME= yahtzee-1.0 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= games/strategy +EXTRACT_SUFX= .tar.Z + +MAINTAINER= sutton@aardvark.apana.org.au + +WRKSRC= ${WRKDIR}/yahtzee + +# Distribution does not include an install target. So here it is. +# +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/yahtzee ${PREFIX}/bin/ + ${MKDIR} -m 0777 ${PREFIX}/lib/yahtzee/ + ${INSTALL_DATA} -m 0777 /dev/null ${PREFIX}/lib/yahtzee/yahtzee.sco + +.include <bsd.port.mk> + diff --git a/games/yahtzee/distinfo b/games/yahtzee/distinfo new file mode 100644 index 000000000000..9656cd9e2745 --- /dev/null +++ b/games/yahtzee/distinfo @@ -0,0 +1 @@ +MD5 (yahtzee-src.tar.Z) = d860be149156e0c9a118e58ddf069a80 diff --git a/games/yahtzee/files/patch-aa b/games/yahtzee/files/patch-aa new file mode 100644 index 000000000000..5e85bd895ac3 --- /dev/null +++ b/games/yahtzee/files/patch-aa @@ -0,0 +1,22 @@ +*** Makefile.orig Sun Apr 13 14:17:07 1997 +--- Makefile Sun Apr 13 14:17:54 1997 +*************** +*** 1,4 **** +! CFLAGS = + + OBJ = computer.o main.o + +--- 1,4 ---- +! CFLAGS = -O -DHAS_RENAME + + OBJ = computer.o main.o + +*************** +*** 13,15 **** +--- 13,17 ---- + rm -f $(OBJ) $(BIN) + + $(OBJ): yahtzee.h config.h ++ ++ all: $(BIN) $(OBJ) +\ No newline at end of file diff --git a/games/yahtzee/files/patch-ab b/games/yahtzee/files/patch-ab new file mode 100644 index 000000000000..368cced98698 --- /dev/null +++ b/games/yahtzee/files/patch-ab @@ -0,0 +1,19 @@ +*** config.h.orig Sun Apr 13 13:48:41 1997 +--- config.h Sun Apr 13 13:48:54 1997 +*************** +*** 1,7 **** + #ifndef _config_H_ + #define _config_H_ + +! #define SCOREDIR "/usr/local/lib" + #define SCOREFNAME "yahtzee.sco" /* must allow .L extension */ + + #define NUM_TOP_PLAYERS 10 +--- 1,7 ---- + #ifndef _config_H_ + #define _config_H_ + +! #define SCOREDIR "/usr/local/lib/yahtzee" + #define SCOREFNAME "yahtzee.sco" /* must allow .L extension */ + + #define NUM_TOP_PLAYERS 10 diff --git a/games/yahtzee/files/patch-ac b/games/yahtzee/files/patch-ac new file mode 100644 index 000000000000..0b6f7679e4e5 --- /dev/null +++ b/games/yahtzee/files/patch-ac @@ -0,0 +1,48 @@ +--- main.c.orig Sat Jan 25 19:41:13 1992 ++++ main.c Fri Jul 4 13:39:01 1997 +@@ -12,7 +12,7 @@ + * (c)1992 by orest zborowski + */ + +-static char *header = "Yahtzee Version 1.00 (c)1992 by zorst"; ++static char *header = "Yahtzee Version 1.00p1 (c)1992 by zorst, FreeBSD port by Joel Sutton"; + + extern errno; + +@@ -820,6 +820,7 @@ + int i; + int topscore; + int winner; ++ char dummy[5]; + + for (;;) + { +@@ -844,7 +845,9 @@ + winner = i; + } + +- say("The winner is %s", players[winner].name); ++ say("The winner is %s. Press <enter> to continue...", players[winner].name); ++ fgets(dummy,5,stdin); ++ fflush(stdin); + } + + #define L_LOCK 0 +@@ -1117,7 +1120,8 @@ + + printf ("How many times to you wish to roll? "); + +- gets(nrollstr); ++ fflush(stdin); ++ fgets(nrollstr, 10, stdin); + nroll = atoi(nrollstr); + + printf("Generating...\n"); +@@ -1270,6 +1274,7 @@ + printf("How many computers to play (max of %d) ? ", + MAX_NUMBER_OF_PLAYERS - num_players); + fflush(stdout); ++ fpurge(stdin); + + fgets(num, sizeof(num), stdin); + diff --git a/games/yahtzee/pkg-comment b/games/yahtzee/pkg-comment new file mode 100644 index 000000000000..a4396aec403e --- /dev/null +++ b/games/yahtzee/pkg-comment @@ -0,0 +1 @@ +A curses version of the dice game for one or more players.
\ No newline at end of file diff --git a/games/yahtzee/pkg-descr b/games/yahtzee/pkg-descr new file mode 100644 index 000000000000..fb20cf65913b --- /dev/null +++ b/games/yahtzee/pkg-descr @@ -0,0 +1,15 @@ +This is a curses version of Yahtzee, that classic dice game. + +Unfortunately this game does not come with any documentation. One day, +I might find a few moments to write up a man page to solve this little +problem. But until then you'll have to use magic to find your own way +around. + +Share and enjoy, + +Joel... +--- +Joel Sutton +sutton@aardvark.apana.org.au http://aardvark.apana.org.au/~sutton/ +"This must be Thursday. I never could get the hang of Thursdays..." + diff --git a/games/yahtzee/pkg-plist b/games/yahtzee/pkg-plist new file mode 100644 index 000000000000..d5fefbdcda2a --- /dev/null +++ b/games/yahtzee/pkg-plist @@ -0,0 +1,2 @@ +bin/yahtzee +lib/yahtzee/yahtzee.sco |