View | Details | Raw Unified | Return to bug 56003
Collapse All | Expand All

(-)games/blackjack/Makefile (-1 / +3 lines)
Lines 16-23 Link Here
16
COMMENT=	One of the better implementations of blackjack, based on QT
16
COMMENT=	One of the better implementations of blackjack, based on QT
17
17
18
WRKSRC=		${WRKDIR}/${PORTNAME}
18
WRKSRC=		${WRKDIR}/${PORTNAME}
19
19
USE_QT_VER=	3
20
USE_QT_VER=	3
20
MAKE_ENV=	PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
21
MAKE_ENV=	QTCPPFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
22
		QTCFGLIBS="${QTCFGLIBS} ${PTHREAD_LIBS}"
21
23
22
MAN1=		blackjack.1
24
MAN1=		blackjack.1
23
25
(-)games/blackjack/files/patch-aa (-2 / +2 lines)
Lines 9-16 Link Here
9
-LDFLAGS=-L$(QTDIR)/lib -lqt
9
-LDFLAGS=-L$(QTDIR)/lib -lqt
10
+CC?=gcc
10
+CC?=gcc
11
+CXX?=g++
11
+CXX?=g++
12
+INCLUDES=-I$(X11BASE)/include/ ${PTHREAD_CFLAGS}
12
+INCLUDES=${QTCPPFLAGS}
13
+LDFLAGS=-L$(X11BASE)/lib -lqt-mt ${PTHREAD_LIBS}
13
+LDFLAGS=${QTCFGLIBS} -lqt-mt
14
 VERSION=1.2
14
 VERSION=1.2
15
 
15
 
16
 # For systems that don't have install, use this
16
 # For systems that don't have install, use this
(-)games/blackjack/pkg-descr (-22 / +8 lines)
Lines 1-23 Link Here
1
Blackjack is an X-windows based version of the casino game. The
2
program is used to help learn the basic strategy of the game of
3
blackjack. The help level can be set from a mode that tells you
4
each correct move to make, to one that only warns you by a pop up
5
window if you make a "bad" play. Betting limits, number of decks,
6
number of splits, and shuffle point can be set. This program uses
7
the Qt toolkit.
1
8
2
   This is an X windows based game of the casino game blackjack.
9
WWW: http://members.peakinet.net/tdaley/blackjack/blackjack.html
3
The program is currently written to use the Qt toolkit from Troll Tech.
4
For more information on Qt see "http://www.trolltech.com/".
5
6
   I have always enjoyed the game of blackjack.  When I first played in
7
a casino I lost all the money I had brought.  After reading some books 
8
on blackjack and the FAQ for rec.gambling.blackjack, I now know that there
9
is a basic strategy to follow.  The strategy is based on the odds of each
10
hand and the dealers up card.  I wrote this program so I could practice
11
the basic strategy of blackjack.  The basic strategy is in the program
12
and a help level can be set to help the user learn to play by these rules.
13
My blackjack game has improved greatly.
14
15
   I first wrote this program in tcl/tk.  It was OK, but I have trouble 
16
remembering all the syntax and parsing rules.  The tcl/tk version was also
17
noticably slow on my 386 running Linux.  Qt has been very good as a C++ 
18
GUI library and is not slow at all on my 386. 
19
20
Tom Daley
21
tdaley@vsys.com
22
23
WWW: http://members.surfbest.net/daley/blackjack/blackjack.html

Return to bug 56003