diff options
author | steve <steve@FreeBSD.org> | 1998-02-24 03:55:07 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-02-24 03:55:07 +0800 |
commit | a0b143c2b75ee1fc932a5e4f6e59de1ce9449cb7 (patch) | |
tree | cb67be089778f30cd10166686a65799b3473d96e /games/blackjack | |
parent | a637a92f639d680b3e4d6c6feae64937ff5297b0 (diff) | |
download | freebsd-ports-gnome-a0b143c2b75ee1fc932a5e4f6e59de1ce9449cb7.tar.gz freebsd-ports-gnome-a0b143c2b75ee1fc932a5e4f6e59de1ce9449cb7.tar.zst freebsd-ports-gnome-a0b143c2b75ee1fc932a5e4f6e59de1ce9449cb7.zip |
A Qt-based version of the blackjack game.
PR: 5822
Submitted by: Peter Mutsaers <plm@xs4all.nl
Diffstat (limited to 'games/blackjack')
-rw-r--r-- | games/blackjack/Makefile | 21 | ||||
-rw-r--r-- | games/blackjack/distinfo | 1 | ||||
-rw-r--r-- | games/blackjack/files/patch-aa | 29 | ||||
-rw-r--r-- | games/blackjack/pkg-comment | 1 | ||||
-rw-r--r-- | games/blackjack/pkg-descr | 21 | ||||
-rw-r--r-- | games/blackjack/pkg-plist | 2 |
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 |