From 6638749deb06a3c2313ef7a67dce445d1eb9fde1 Mon Sep 17 00:00:00 2001 From: erich Date: Fri, 16 Aug 1996 13:28:47 +0000 Subject: New port for `xblackjack' --- games/xblackjack/Makefile | 17 +++++++++++++++++ games/xblackjack/distinfo | 1 + games/xblackjack/files/patch-aa | 35 +++++++++++++++++++++++++++++++++++ games/xblackjack/pkg-comment | 1 + games/xblackjack/pkg-descr | 21 +++++++++++++++++++++ games/xblackjack/pkg-plist | 3 +++ 6 files changed, 78 insertions(+) create mode 100644 games/xblackjack/Makefile create mode 100644 games/xblackjack/distinfo create mode 100644 games/xblackjack/files/patch-aa create mode 100644 games/xblackjack/pkg-comment create mode 100644 games/xblackjack/pkg-descr create mode 100644 games/xblackjack/pkg-plist (limited to 'games') diff --git a/games/xblackjack/Makefile b/games/xblackjack/Makefile new file mode 100644 index 000000000000..01f2b58bbe37 --- /dev/null +++ b/games/xblackjack/Makefile @@ -0,0 +1,17 @@ +# New ports collection makefile for: xblackjack +# Version required: 2.2 +# Date created: +# Whom: erich@FreeBSD.org +# +# $Id$ +# + +DISTNAME= xblackjack-2.2 +CATEGORIES+= games +MASTER_SITES= ftp://ftp.x.org/contrib/games/ +REQUIRES_MOTIF= yes +USE_IMAKE= yes + +MAINTAINER= erich@FreeBSD.org + +.include diff --git a/games/xblackjack/distinfo b/games/xblackjack/distinfo new file mode 100644 index 000000000000..2016aa6fb282 --- /dev/null +++ b/games/xblackjack/distinfo @@ -0,0 +1 @@ +MD5 (xblackjack-2.2.tar.gz) = d8e2114e0d8ee4caece7fbbb53479872 diff --git a/games/xblackjack/files/patch-aa b/games/xblackjack/files/patch-aa new file mode 100644 index 000000000000..f0bf6a4edf4a --- /dev/null +++ b/games/xblackjack/files/patch-aa @@ -0,0 +1,35 @@ +--- Imakefile~ Thu Aug 1 21:41:28 1996 ++++ Imakefile Thu Aug 1 21:41:43 1996 +@@ -54,7 +54,7 @@ + /* + * You may need to remove -lbsd. + */ +- EXTRA_LIBRARIES = -lXm $(DEPLIBS) -lbsd ++ EXTRA_LIBRARIES = -lXm -lXt -lXmu -lXext -lX11 + #endif + + /* +--- Table.c~ Thu Aug 1 21:39:10 1996 ++++ Table.c Thu Aug 1 21:40:50 1996 +@@ -229,7 +229,8 @@ + /* always_install_accelerators */ False, + #if XmVersion > 1000 + /* geo_matrix_create */ NULL, +- /* focus_moved_proc */ XtInheritFocusMovedProc, ++ /* focus_moved_proc */ /*XtInheritFocusMovedProc,*/ ++ XtCallAcceptFocus, + #endif + /* extension */ NULL, + }, +--- TableP.h~ Thu Aug 1 21:36:01 1996 ++++ TableP.h Thu Aug 1 21:38:03 1996 +@@ -15,6 +15,9 @@ + + #include "Table.h" + #include ++#include ++#include ++#include + #include + + /* diff --git a/games/xblackjack/pkg-comment b/games/xblackjack/pkg-comment new file mode 100644 index 000000000000..5da42f4c3a3f --- /dev/null +++ b/games/xblackjack/pkg-comment @@ -0,0 +1 @@ +an X11/Motif blackjack game diff --git a/games/xblackjack/pkg-descr b/games/xblackjack/pkg-descr new file mode 100644 index 000000000000..81425edca16c --- /dev/null +++ b/games/xblackjack/pkg-descr @@ -0,0 +1,21 @@ +From The README: + + Xblackjack is a MOTIF/OLIT based tool constructed to get you ready for the + casino. It was inspired by a book called "Beat the Dealer" by Edward O. + Thorp, Ph.D. of UCLA. A number of important statistics are maintained for + display, and used by the program to implement Thorp's "Complete Point System" + (high-low system). + + Beginners can learn a basic strategy which doesn't require counting. The + best strategy employs a simple card counting technique which can be used to + distinguish favorable situations. Avid players can learn to compute Thorp's + high-low index, which takes the number of unseen cards into account. + + The index is used by the program to suggest a bet, indicate when you should + buy insurance, and whether you should stand or hit, etc. You can test the + strategy using a slider to control "autoplay mode". Pressing the message + button below the playing area provides hints; the current count, index + and strategy table are revealed. + +eric. +erich@FreeBSD.org diff --git a/games/xblackjack/pkg-plist b/games/xblackjack/pkg-plist new file mode 100644 index 000000000000..6df86878d94a --- /dev/null +++ b/games/xblackjack/pkg-plist @@ -0,0 +1,3 @@ +bin/xblackjack +man/man1/xblackjack.1.gz +lib/X11/app-defaults/XBlackjack -- cgit