aboutsummaryrefslogtreecommitdiff
path: root/misc/bbjd
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1999-03-06 16:41:53 +0000
committerBill Fumerola <billf@FreeBSD.org>1999-03-06 16:41:53 +0000
commitbcc1b434d5a843bcd71cc8a9c1467cde123fe3c0 (patch)
tree51b56da68c39e83ba9d1f5438a475f006048bd93 /misc/bbjd
parent67fa5927364a073f0daaf2ee6fb5626635c7bb09 (diff)
downloadports-bcc1b434d5a843bcd71cc8a9c1467cde123fe3c0.tar.gz
ports-bcc1b434d5a843bcd71cc8a9c1467cde123fe3c0.zip
Bbjd is a tool to calculate the optimum strategy playing Black Jack. This
program may be used to prove that when playing Black Jack it is possible to beat the casino. Probably, Black Jack is the only game offered by casinos, where it is possible to win in the long term (and this fact is mathematically proven). PR: ports/9895 Submitted By: Dima Sivachenko <dima@Chg.RU> [committers note: this can be addicting.]
Notes
Notes: svn path=/head/; revision=17017
Diffstat (limited to 'misc/bbjd')
-rw-r--r--misc/bbjd/Makefile30
-rw-r--r--misc/bbjd/distinfo1
-rw-r--r--misc/bbjd/files/patch-aa22
-rw-r--r--misc/bbjd/pkg-comment1
-rw-r--r--misc/bbjd/pkg-descr8
-rw-r--r--misc/bbjd/pkg-message4
-rw-r--r--misc/bbjd/pkg-plist6
7 files changed, 72 insertions, 0 deletions
diff --git a/misc/bbjd/Makefile b/misc/bbjd/Makefile
new file mode 100644
index 000000000000..79aecf7a199d
--- /dev/null
+++ b/misc/bbjd/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: bbjd
+# Version required: 1.01
+# Date created: 3 February 1999
+# Whom: Dima Sivachenko
+#
+# $Id: $
+#
+
+DISTNAME= bbjd-1.01
+CATEGORIES= misc math
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
+MASTER_SITE_SUBDIR= games/strategy
+
+MAINTAINER= dima@chg.ru
+
+USE_GMAKE= yes
+WRKSRC= ${WRKDIR}/bbjd
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/bbjd ${PREFIX}/bin/
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/simbj ${PREFIX}/bin/
+ @ ${MKDIR} ${PREFIX}/share/bbjd
+ @ ${INSTALL_DATA} ${WRKSRC}/Interactive ${PREFIX}/share/bbjd/
+ @ ${INSTALL_DATA} ${WRKSRC}/Simulation ${PREFIX}/share/bbjd/
+ @ ${INSTALL_DATA} ${WRKSRC}/Theory ${PREFIX}/share/bbjd/
+
+post-install:
+ @ ${CAT} ${PKGDIR}/MESSAGE
+
+.include <bsd.port.mk>
diff --git a/misc/bbjd/distinfo b/misc/bbjd/distinfo
new file mode 100644
index 000000000000..876ee8661027
--- /dev/null
+++ b/misc/bbjd/distinfo
@@ -0,0 +1 @@
+MD5 (bbjd-1.01.tar.gz) = 674b296e9f4cf87f4fee1515b76083e7
diff --git a/misc/bbjd/files/patch-aa b/misc/bbjd/files/patch-aa
new file mode 100644
index 000000000000..fe17da45b715
--- /dev/null
+++ b/misc/bbjd/files/patch-aa
@@ -0,0 +1,22 @@
+--- Makefile.orig Mon Oct 26 05:47:44 1998
++++ Makefile Sun Feb 14 17:39:37 1999
+@@ -13,8 +13,8 @@
+ -Wmissing-declarations -Wreturn-type \
+ -Wnested-externs -Wwrite-strings -Wcast-qual
+ INCDIR = -I. -I/usr/include
+-CFLAGS = $(DEFINES) $(LANG_OPTIONS) $(WARN_OPTIONS) $(INCDIR)
+-COPTS = -O2
++CFLAGS?= -O2
++CFLAGS+= $(DEFINES) $(LANG_OPTIONS) $(WARN_OPTIONS) $(INCDIR)
+
+ ######## link options ########
+ LD = gcc
+@@ -36,7 +36,7 @@
+
+ %o: %c
+ @echo --- compiling: $< ---
+- $(CC) $(CFLAGS) $(COPTS) -c $< -o $@
++ $(CC) $(CFLAGS) -c $< -o $@
+
+ clean:
+ rm -f probability.o interactive.o display.o simulate.o core
diff --git a/misc/bbjd/pkg-comment b/misc/bbjd/pkg-comment
new file mode 100644
index 000000000000..ee7277b9c867
--- /dev/null
+++ b/misc/bbjd/pkg-comment
@@ -0,0 +1 @@
+bbjd - beat the blackjack dealer
diff --git a/misc/bbjd/pkg-descr b/misc/bbjd/pkg-descr
new file mode 100644
index 000000000000..e77d09bdfd46
--- /dev/null
+++ b/misc/bbjd/pkg-descr
@@ -0,0 +1,8 @@
+Bbjd is a tool to calculate the optimum strategy playing Black Jack. This
+program may be used to prove that when playing Black Jack it is possible to
+beat the casino. Probably, Black Jack is the only game offered by casinos,
+where it is possible to win in the long term (and this fact is mathematically
+proven).
+
+--Dima
+dima@chg.ru
diff --git a/misc/bbjd/pkg-message b/misc/bbjd/pkg-message
new file mode 100644
index 000000000000..1d3027b8c691
--- /dev/null
+++ b/misc/bbjd/pkg-message
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+This program has no man-pages. Please read documentation installed in
+share/bbjd directory.
+-------------------------------------------------------------------------------
diff --git a/misc/bbjd/pkg-plist b/misc/bbjd/pkg-plist
new file mode 100644
index 000000000000..be8622519059
--- /dev/null
+++ b/misc/bbjd/pkg-plist
@@ -0,0 +1,6 @@
+bin/bbjd
+bin/simbj
+share/bbjd/Interactive
+share/bbjd/Simulation
+share/bbjd/Theory
+@dirrm share/bbjd