Import games/bluemoon. Blue Moon is a console-based 52-card solitaire game.
ok benoit@
This commit is contained in:
parent
ee3cec017d
commit
9e2868e3f6
28
games/bluemoon/Makefile
Normal file
28
games/bluemoon/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2013/11/12 20:13:21 bcallah Exp $
|
||||
|
||||
COMMENT = console-based 52-card solitare game
|
||||
DISTNAME = bluemoon-2.11
|
||||
CATEGORIES = games
|
||||
|
||||
HOMEPAGE = http://www.catb.org/~esr/bluemoon/
|
||||
|
||||
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
WANTLIB += c ncurses
|
||||
|
||||
MASTER_SITES = http://www.catb.org/~esr/bluemoon/
|
||||
|
||||
MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS}"
|
||||
|
||||
ALL_TARGET = bluemoon
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bluemoon ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/bluemoon.6 ${PREFIX}/man/man6
|
||||
|
||||
.include <bsd.port.mk>
|
2
games/bluemoon/distinfo
Normal file
2
games/bluemoon/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (bluemoon-2.11.tar.gz) = Gc5bXwIgvZkGttoKJbimG34gNyg6DtmAS0XtcA+lWhQ=
|
||||
SIZE (bluemoon-2.11.tar.gz) = 12308
|
12
games/bluemoon/patches/patch-bluemoon_c
Normal file
12
games/bluemoon/patches/patch-bluemoon_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-bluemoon_c,v 1.1.1.1 2013/11/12 20:13:21 bcallah Exp $
|
||||
--- bluemoon.c.orig Mon Oct 7 21:45:08 2013
|
||||
+++ bluemoon.c Mon Oct 7 21:45:23 2013
|
||||
@@ -399,7 +399,7 @@ main(int argc, char *argv[])
|
||||
if (argc == 2)
|
||||
srand(seed = atoi(argv[1]));
|
||||
else
|
||||
- srand(seed = (int)time((long *)0));
|
||||
+ srand(seed = (int)time((long long *)0));
|
||||
|
||||
init_vars();
|
||||
|
15
games/bluemoon/pkg/DESCR
Normal file
15
games/bluemoon/pkg/DESCR
Normal file
@ -0,0 +1,15 @@
|
||||
Blue Moon solitaire is a 52-card solitaire that starts with the entire
|
||||
deck shuffled and dealt out in four rows. The aces are then moved to the
|
||||
left end of the layout, making 4 initial free spaces. You may move to a
|
||||
space only the card that matches the left neighbor in suit, and is one
|
||||
greater in rank. Kings are high, so no cards may be placed to their
|
||||
right (they create dead spaces).
|
||||
|
||||
When no moves can be made, cards still out of sequence are reshuffled
|
||||
and dealt face up after the ends of the partial sequences, leaving a
|
||||
card space after each sequence, so that each row looks like a partial
|
||||
sequence followed by a space, followed by enough cards to make a row of
|
||||
14.
|
||||
|
||||
A moment's reflection will show that this game cannot take more than 13
|
||||
deals. A good score is 1-3 deals, 4-7 is average, 8 or more is poor.
|
3
games/bluemoon/pkg/PLIST
Normal file
3
games/bluemoon/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/11/12 20:13:21 bcallah Exp $
|
||||
@bin bin/bluemoon
|
||||
@man man/man6/bluemoon.6
|
Loading…
Reference in New Issue
Block a user