summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-02-23 19:55:07 +0000
committerSteve Price <steve@FreeBSD.org>1998-02-23 19:55:07 +0000
commit48946110690baf03dca997ec48615bed452ebcc0 (patch)
treedb20bc0dc52b9a3f0ef9876b4b34ea095c0aaec5 /games
parentUpdate to version 0.7+PL5. (diff)
A Qt-based version of the blackjack game.
PR: 5822 Submitted by: Peter Mutsaers <plm@xs4all.nl
Notes
Notes: svn path=/head/; revision=9898
Diffstat (limited to 'games')
-rw-r--r--games/blackjack/Makefile21
-rw-r--r--games/blackjack/distinfo1
-rw-r--r--games/blackjack/files/patch-aa29
-rw-r--r--games/blackjack/pkg-comment1
-rw-r--r--games/blackjack/pkg-descr21
-rw-r--r--games/blackjack/pkg-plist2
6 files changed, 75 insertions, 0 deletions
diff --git a/games/blackjack/Makefile b/games/blackjack/Makefile
new file mode 100644
index 000000000000..2cf1d9779745
--- /dev/null
+++ b/games/blackjack/Makefile
@@ -0,0 +1,21 @@
+# New ports collection makefile for: acm
+# Version required: 1.0
+# Date created: 23 February 1998
+# Whom: Peter Mutsaers
+#
+# $Id$
+#
+
+DISTNAME= blackjack-1.0
+CATEGORIES= games x11
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
+MASTER_SITE_SUBDIR= games/strategy
+
+MAINTAINER= plm@xs4all.nl
+
+BUILD_DEPENDS= moc:${PORTSDIR}/x11/qt
+LIB_DEPENDS= qt\\.1\\.3[0-9]:${PORTSDIR}/x11/qt
+
+MAN1= blackjack.1
+
+.include <bsd.port.mk>
diff --git a/games/blackjack/distinfo b/games/blackjack/distinfo
new file mode 100644
index 000000000000..e2705d2af217
--- /dev/null
+++ b/games/blackjack/distinfo
@@ -0,0 +1 @@
+MD5 (blackjack-1.0.tar.gz) = 05c9f6fec4d59ffa524c1f440efc1f44
diff --git a/games/blackjack/files/patch-aa b/games/blackjack/files/patch-aa
new file mode 100644
index 000000000000..ee366ad59647
--- /dev/null
+++ b/games/blackjack/files/patch-aa
@@ -0,0 +1,29 @@
+--- Makefile.orig Fri Jan 24 09:16:39 1997
++++ Makefile Mon Feb 23 12:35:50 1998
+@@ -2,8 +2,8 @@
+ CC=gcc
+ CXX=g++
+ CFLAGS=
+-INCLUDES=-I$(QTDIR)/include
+-LDFLAGS=-L$(QTDIR)/lib -lqt
++INCLUDES=-I/usr/X11R6/include/X11/qt
++LDFLAGS=-L/usr/X11R6/lib -lqt
+ VERSION=1.0
+
+ # For systems that don't have install, use this
+@@ -24,12 +24,14 @@
+ user_input.o dollar_scroll_bar.o bet_option.o table_option.o \
+ insurance_window.o $(METAOBJS)
+
+-MOC=$(QTDIR)/bin/moc
++MOC=/usr/X11R6/bin/moc
+
+ .SUFFIXES: .cpp
+
+ .cpp.o:
+ $(CXX) -c $(CFLAGS) $(INCLUDES) $<
++
++all: blackjack
+
+ blackjack: main.o $(OBJS)
+ $(CXX) -o $@ $(LDFLAGS) main.o $(OBJS)
diff --git a/games/blackjack/pkg-comment b/games/blackjack/pkg-comment
new file mode 100644
index 000000000000..5caed25b552b
--- /dev/null
+++ b/games/blackjack/pkg-comment
@@ -0,0 +1 @@
+One of the better implementations of blackjack, based on QT.
diff --git a/games/blackjack/pkg-descr b/games/blackjack/pkg-descr
new file mode 100644
index 000000000000..ca39f1076c53
--- /dev/null
+++ b/games/blackjack/pkg-descr
@@ -0,0 +1,21 @@
+
+ This is an X windows based game of the casino game blackjack.
+The program is currently written to use the Qt toolkit from Troll Tech.
+For more information on Qt see "http://www.troll.no/".
+
+ I have always enjoyed the game of blackjack. When I first played in
+a casino I lost all the money I had brought. After reading some books
+on blackjack and the FAQ for rec.gambling.blackjack, I now know that there
+is a basic strategy to follow. The strategy is based on the odds of each
+hand and the dealers up card. I wrote this program so I could practice
+the basic strategy of blackjack. The basic strategy is in the program
+and a help level can be set to help the user learn to play by these rules.
+My blackjack game has improved greatly.
+
+ I first wrote this program in tcl/tk. It was OK, but I have trouble
+remembering all the syntax and parsing rules. The tcl/tk version was also
+noticably slow on my 386 running Linux. Qt has been very good as a C++
+GUI library and is not slow at all on my 386.
+
+Tom Daley
+tdaley@vsys.com
diff --git a/games/blackjack/pkg-plist b/games/blackjack/pkg-plist
new file mode 100644
index 000000000000..946060b5a6d1
--- /dev/null
+++ b/games/blackjack/pkg-plist
@@ -0,0 +1,2 @@
+bin/blackjack
+man/man1/blackjack.1.gz