diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2002-05-24 11:08:24 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2002-05-24 11:08:24 +0000 |
commit | 10e344b7a245da1718968f36c5d4783e7b1a13a6 (patch) | |
tree | 7ebc89cd2efb5dbd681ac61da326a56117883d41 /games/blackjack | |
parent | Add gnomemeeting.schema (diff) |
Add back the blackjack, pp and xlines ports, which were prematurely
deleted by will.
Notes
Notes:
svn path=/head/; revision=59879
Diffstat (limited to '')
-rw-r--r-- | games/blackjack/Makefile | 22 | ||||
-rw-r--r-- | games/blackjack/distinfo | 1 | ||||
-rw-r--r-- | games/blackjack/files/patch-aa | 51 | ||||
-rw-r--r-- | games/blackjack/files/patch-ab | 15 | ||||
-rw-r--r-- | games/blackjack/files/patch-ac | 29 | ||||
-rw-r--r-- | games/blackjack/files/patch-ad | 85 | ||||
-rw-r--r-- | games/blackjack/pkg-comment | 1 | ||||
-rw-r--r-- | games/blackjack/pkg-descr | 23 | ||||
-rw-r--r-- | games/blackjack/pkg-plist | 1 |
9 files changed, 228 insertions, 0 deletions
diff --git a/games/blackjack/Makefile b/games/blackjack/Makefile new file mode 100644 index 000000000000..e4f584e83dc6 --- /dev/null +++ b/games/blackjack/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: blackjack +# Date created: 23 February 1998 +# Whom: Peter Mutsaers +# +# $FreeBSD$ +# + +PORTNAME= blackjack +PORTVERSION= 1.2 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= games/strategy +EXTRACT_SUFX= .tgz + +MAINTAINER= ports@FreeBSD.org + +WRKSRC= ${WRKDIR}/${PORTNAME} +USE_QT_VER= 1 + +MAN1= blackjack.1 + +.include <bsd.port.mk> diff --git a/games/blackjack/distinfo b/games/blackjack/distinfo new file mode 100644 index 000000000000..b5eafa9b2c03 --- /dev/null +++ b/games/blackjack/distinfo @@ -0,0 +1 @@ +MD5 (blackjack-1.2.tgz) = 3b7751ee38c06ce758ab06015d57cb11 diff --git a/games/blackjack/files/patch-aa b/games/blackjack/files/patch-aa new file mode 100644 index 000000000000..06e525f47130 --- /dev/null +++ b/games/blackjack/files/patch-aa @@ -0,0 +1,51 @@ +--- Makefile.orig Wed Jun 2 19:28:44 1999 ++++ Makefile Fri May 24 03:57:01 2002 +@@ -1,9 +1,8 @@ + +-CC=gcc +-CXX=g++ +-CFLAGS= +-INCLUDES=-I$(QTDIR)/include +-LDFLAGS=-L$(QTDIR)/lib -lqt ++CC?=gcc ++CXX?=g++ ++INCLUDES=-I$(X11BASE)/include/X11/qt1 ++LDFLAGS=-L$(X11BASE)/lib -lqt1 + VERSION=1.2 + + # For systems that don't have install, use this +@@ -28,7 +27,7 @@ + INSTALL=install + INSTALL_BIN_FLAGS=-s + +-INSTALL_ROOT=/usr/local ++INSTALL_ROOT=${PREFIX} + INSTALL_BIN=$(INSTALL_ROOT)/bin + INSTALL_MAN=$(INSTALL_ROOT)/man + +@@ -39,19 +38,21 @@ + user_input.o dollar_scroll_bar.o bet_option.o table_option.o \ + insurance_window.o $(METAOBJS) + +-MOC=$(QTDIR)/bin/moc ++MOC=$(X11BASE)/bin/moc1 + + .SUFFIXES: .cpp + + .cpp.o: +- $(CXX) -c $(CFLAGS) $(INCLUDES) $< ++ $(CXX) -c $(CXXFLAGS) $(INCLUDES) $< ++ ++all: blackjack + + blackjack: main.o $(OBJS) + $(CXX) -o $@ $(LDFLAGS) main.o $(OBJS) + + install: +- $(INSTALL) $(INSTALL_BIN_FLAGS) blackjack $(INSTALL_BIN) +- $(INSTALL) blackjack.1 $(INSTALL_MAN)/man1 ++ ${BSD_INSTALL_PROGRAM} blackjack $(INSTALL_BIN) ++ ${BSD_INSTALL_MAN} blackjack.1 $(INSTALL_MAN)/man1 + + mblackjack.cpp: blackjack.h + $(MOC) -o mblackjack.cpp blackjack.h diff --git a/games/blackjack/files/patch-ab b/games/blackjack/files/patch-ab new file mode 100644 index 000000000000..9180b300e0b7 --- /dev/null +++ b/games/blackjack/files/patch-ab @@ -0,0 +1,15 @@ +--- bet_option.h.orig Sat Jan 8 23:58:22 2000 ++++ bet_option.h Sat Jan 8 23:53:45 2000 +@@ -63,9 +63,9 @@ + void setInc(float inc); + + private slots: +- minBetPressed(int id); +- maxBetPressed(int id); +- betIncPressed(int id); ++ int minBetPressed(int id); ++ int maxBetPressed(int id); ++ int betIncPressed(int id); + }; + + #endif diff --git a/games/blackjack/files/patch-ac b/games/blackjack/files/patch-ac new file mode 100644 index 000000000000..419ffc707ef8 --- /dev/null +++ b/games/blackjack/files/patch-ac @@ -0,0 +1,29 @@ +--- bet_option.cpp.orig Sat Jan 8 23:58:15 2000 ++++ bet_option.cpp Sat Jan 8 23:56:09 2000 +@@ -221,7 +221,7 @@ + + //***************************************************************************** + +-BetOption:: ++int BetOption:: + minBetPressed(int id) { + int i; + QButton *qb; +@@ -256,7 +256,7 @@ + + //***************************************************************************** + +-BetOption:: ++int BetOption:: + maxBetPressed(int id) { + QButton *rb; + +@@ -271,7 +271,7 @@ + + //***************************************************************************** + +-BetOption:: ++int BetOption:: + betIncPressed(int id) { + _bet_inc = *_bet_inc_list.at(id); + } diff --git a/games/blackjack/files/patch-ad b/games/blackjack/files/patch-ad new file mode 100644 index 000000000000..924c19d9df1d --- /dev/null +++ b/games/blackjack/files/patch-ad @@ -0,0 +1,85 @@ +--- card.cpp.orig Mon Dec 6 00:45:34 1999 ++++ card.cpp Sat Jun 3 02:47:49 2000 +@@ -201,8 +201,8 @@ + QBitmap *bitmap_p = new QBitmap(CARD_W, CARD_H, TRUE); + QBitmap *back_bitmap_p = new QBitmap(logo_width, logo_height, logo_bits, + TRUE); +- QBrush fill(Qt::white); +- QBrush pattern(Qt::CustomPattern); ++ QBrush fill(white); ++ QBrush pattern(CustomPattern); + QPainter painter; + + if ((painter.begin(bitmap_p)) == FALSE) { +@@ -210,7 +210,7 @@ + delete (bitmap_p); + bitmap_p = NULL; + } else { +- QBrush fill_ones(Qt::color1);// make a mask so we don't paint the corners ++ QBrush fill_ones(color1); // make a mask so we don't paint the corners + painter.setBrush(fill_ones); // make pixmap mask for card + painter.drawRoundRect(0, 0, CARD_W, CARD_H, x_round, y_round); + painter.end(); +@@ -221,7 +221,7 @@ + delete (pixmap_p); + pixmap_p = NULL; + } else { +- painter.setPen(Qt::black); ++ painter.setPen(black); + + if (bitmap_p) // if we made a mask bitmap + pixmap_p->setMask(*bitmap_p); // set the mask for the pixmap +@@ -229,7 +229,7 @@ + painter.setBrush(fill); + painter.drawRoundRect(0, 0, CARD_W, CARD_H, x_round, y_round); + pattern.setPixmap(*back_bitmap_p); +- pattern.setColor(Qt::red); ++ pattern.setColor(red); + painter.setBrush(pattern); // set up some painter options + painter.drawRoundRect(0, 0, CARD_W, CARD_H, x_round, y_round); + painter.end(); +@@ -255,21 +255,21 @@ + QColor color; + QPixmap *pixmap_p = new QPixmap(CARD_W, CARD_H); + QBitmap *bitmap_p = new QBitmap(CARD_W, CARD_H, TRUE); +- QBrush fill(Qt::white); // make two brushes, fill and no_fill +- QBrush no_fill(Qt::NoBrush); ++ QBrush fill(white); // make two brushes, fill and no_fill ++ QBrush no_fill(NoBrush); + QPainter painter; + + if (_suit == HEART || _suit == DIAMOND) +- color = Qt::red; ++ color = red; + else +- color = Qt::black; ++ color = black; + + if ((painter.begin(bitmap_p)) == FALSE) { + cerr << "card::makePixmap(): Can't open bitmap paint device\n"; + delete (bitmap_p); + bitmap_p = NULL; + } else { +- QBrush fill_ones(Qt::color1);// make a mask so we don't paint the corners ++ QBrush fill_ones(color1); // make a mask so we don't paint the corners + painter.setBrush(fill_ones); // make pixmap mask for card + painter.drawRoundRect(0, 0, CARD_W, CARD_H, x_round, y_round); + painter.end(); +@@ -281,7 +281,7 @@ + pixmap_p = NULL; + } else { + painter.setBrush(fill); // set up some painter options +- painter.setPen(Qt::black); ++ painter.setPen(black); + + if (bitmap_p) // if we made a mask bitmap + pixmap_p->setMask(*bitmap_p); // set the mask for the pixmap +@@ -295,7 +295,7 @@ + painter.setWorldXForm(FALSE); // disable transformation for now + + painter.setPen(color); // draw rank and suit in corners +- painter.setBackgroundColor(Qt::white); ++ painter.setBackgroundColor(white); + painter.drawPixmap(4, 6, *_rank_bitmaps[_rank]); + painter.drawPixmap(4, 23, *_small_suit_bitmaps[_suit]); + painter.setWorldXForm(TRUE); // now draw flipped rank and suit diff --git a/games/blackjack/pkg-comment b/games/blackjack/pkg-comment new file mode 100644 index 000000000000..ed22b52897ab --- /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..f57e03966b09 --- /dev/null +++ b/games/blackjack/pkg-descr @@ -0,0 +1,23 @@ + + 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 + +WWW: http://members.surfbest.net/daley/blackjack/blackjack.html diff --git a/games/blackjack/pkg-plist b/games/blackjack/pkg-plist new file mode 100644 index 000000000000..0d7e5485310d --- /dev/null +++ b/games/blackjack/pkg-plist @@ -0,0 +1 @@ +bin/blackjack |