summaryrefslogtreecommitdiff
path: root/games/CaribbeanStud
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>1999-03-30 14:22:44 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>1999-03-30 14:22:44 +0000
commita4f997a075e5fdf20f79bd17498cb3d756c400d5 (patch)
tree583c385730da0dfdcd3c32284ab594d5b32d0779 /games/CaribbeanStud
parentRemove a dead MASTER_SITE. (diff)
Caribbean Stud gambling game for X Window System
PR: ports/7409 Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Notes
Notes: svn path=/head/; revision=17452
Diffstat (limited to 'games/CaribbeanStud')
-rw-r--r--games/CaribbeanStud/Makefile30
-rw-r--r--games/CaribbeanStud/distinfo1
-rw-r--r--games/CaribbeanStud/files/patch-aa51
-rw-r--r--games/CaribbeanStud/files/patch-ab11
-rw-r--r--games/CaribbeanStud/files/patch-ac15
-rw-r--r--games/CaribbeanStud/pkg-comment1
-rw-r--r--games/CaribbeanStud/pkg-descr15
-rw-r--r--games/CaribbeanStud/pkg-plist5
8 files changed, 129 insertions, 0 deletions
diff --git a/games/CaribbeanStud/Makefile b/games/CaribbeanStud/Makefile
new file mode 100644
index 000000000000..e961dc3c443f
--- /dev/null
+++ b/games/CaribbeanStud/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: CaribbeanStud
+# Version required: 1.0
+# Date created: 4 July 1998
+# Whom: Andrey Zakhvatov
+#
+# $Id$
+#
+
+DISTNAME= CS
+PKGNAME= CaribbeanStud-1.0
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_XCONTRIB}
+MASTER_SITE_SUBDIR= games
+
+MAINTAINER= andy@icc.surw.chel.su
+
+MAKEFILE= Xmakefile
+REQUIRES_MOTIF= yes
+USE_X_PREFIX= yes
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/CaribbeanStud ${PREFIX}/bin
+ @ ${INSTALL_DATA} ${WRKSRC}/CaribbeanStud.res ${PREFIX}/lib/X11/app-defaults/CaribbeanStud
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${PREFIX}/share/doc/CaribbeanStud
+ @ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/CaribbeanStud
+ @ ${INSTALL_DATA} ${WRKSRC}/class.ps ${PREFIX}/share/doc/CaribbeanStud
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/CaribbeanStud/distinfo b/games/CaribbeanStud/distinfo
new file mode 100644
index 000000000000..b94af3c9367f
--- /dev/null
+++ b/games/CaribbeanStud/distinfo
@@ -0,0 +1 @@
+MD5 (CS.tar.gz) = 4d9b732165158b2c29c44825fdb105a6
diff --git a/games/CaribbeanStud/files/patch-aa b/games/CaribbeanStud/files/patch-aa
new file mode 100644
index 000000000000..600d9248a85e
--- /dev/null
+++ b/games/CaribbeanStud/files/patch-aa
@@ -0,0 +1,51 @@
+--- Xmakefile Fri Jan 31 22:47:59 1997
++++ /home/andy/tmp/wrk/Xmakefile Sat Jul 4 19:07:47 1998
+@@ -77,17 +77,27 @@
+ #UILFLAGS=-I/usr/include/uil -I/usr/include/Motif1.2/uil
+ ###
+
++## FreeBSD
++##
++XINCLUDES=-I$(X11BASE)/include
++UILFLAGS=
++CFLAGS+= -fhandle-exceptions -fno-for-scope
++CXXFLAGS+= $(XINCLUDES)
++LDFLAGS+=-L$(X11BASE)/lib
++LDLIBS=
++MOTIFLIBS=-lXm -lXmu -lXt -lX11
++
+ #LDLIBS = -lPW
+ # Program configuration
+ # ---------------------
+
+-LDFLAGS = ${XLIBS} $(MRMLIBS)
+-MOTIFLIBS = -lXm -lXmu -lXt -lX11
++#LDFLAGS = ${XLIBS} $(MRMLIBS)
++#MOTIFLIBS = -lXm -lXmu -lXt -lX11
+
+-CFLAGS= -g -I. ${XINCLUDES} $(UILFLAGS)
+-CCFLAGS=${CFLAGS}
++#CFLAGS+= ${XINCLUDES} $(UILFLAGS)
++#CCFLAGS=${CFLAGS}
+
+-UIL=uil
++#UIL=uil
+
+ #MOTIFLIBS = -lXm -lXt -lX11 -lPW
+
+@@ -122,7 +132,7 @@
+
+ CaribbeanStud: $(OBJS)
+ rm -f $@
+- $(CCC) $(CCFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) $(MOTIFLIBS)
++ $(CXX) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) $(MOTIFLIBS)
+
+ depend:: $(SRCS) $(HEADERS)
+ makedepend $(CFLAGS) $(CPPFLAGS) -- $(ALLDEFINES) -- $(SRCS)
+@@ -134,5 +144,5 @@
+
+ .SUFFIXES: .cpp $(SUFFIXES)
+ .cpp.o:
+- $(COMPILE.cc) $(OUTPUT_OPTION) $<
++ $(CXX) -c $(CXXFLAGS) $(OUTPUT_OPTION) $<
+
diff --git a/games/CaribbeanStud/files/patch-ab b/games/CaribbeanStud/files/patch-ab
new file mode 100644
index 000000000000..2a4caf05266e
--- /dev/null
+++ b/games/CaribbeanStud/files/patch-ab
@@ -0,0 +1,11 @@
+--- Hands.cpp Fri Jan 31 22:47:58 1997
++++ /home/andy/tmp/wrk/Hands.cpp Sat Jul 4 18:54:30 1998
+@@ -46,7 +46,7 @@
+ _next = 0;
+ }
+
+-Hand Hands::HandValue() const
++enum Hands::Hand Hands::HandValue() const
+ {
+ return _hand;
+ }
diff --git a/games/CaribbeanStud/files/patch-ac b/games/CaribbeanStud/files/patch-ac
new file mode 100644
index 000000000000..3f9db57ca58a
--- /dev/null
+++ b/games/CaribbeanStud/files/patch-ac
@@ -0,0 +1,15 @@
+--- Seat.cpp Fri Jan 31 22:47:58 1997
++++ /home/andy/tmp/wrk/Seat.cpp Sat Jul 4 19:48:21 1998
+@@ -151,10 +151,10 @@
+ gcv.font = XLoadFont(_dpy, "10x20");
+ gcflags = GCForeground | GCBackground | GCGraphicsExposures;
+ _redgc = XCreateGC(_dpy, RootWindow(_dpy, _screen), gcflags, &gcv);
++ // allocate drawing area background color, set areas
++ XAllocNamedColor(_dpy, cmap, "Forest Green", &color, &color);
+
+ }
+- // allocate drawing area background color, set areas
+- XAllocNamedColor(_dpy, cmap, "Forest Green", &color, &color);
+ i = 0;
+ XtSetArg(args[i], XmNbackground, color.pixel); i++;
+ XtSetArg(args[i], XmNforeground, whitepixel); i++;
diff --git a/games/CaribbeanStud/pkg-comment b/games/CaribbeanStud/pkg-comment
new file mode 100644
index 000000000000..c36b153604c5
--- /dev/null
+++ b/games/CaribbeanStud/pkg-comment
@@ -0,0 +1 @@
+Caribbean Stud gambling game for X Window System.
diff --git a/games/CaribbeanStud/pkg-descr b/games/CaribbeanStud/pkg-descr
new file mode 100644
index 000000000000..bd1e40a7b450
--- /dev/null
+++ b/games/CaribbeanStud/pkg-descr
@@ -0,0 +1,15 @@
+Caribbean Stud is a Motif based gambling game for X Window System.
+
+OPTIONS: ( All can be changed in CaribbeanStud.res )
+ Default bankroll 200
+ Table minimum 10
+ Number of Players 2 (1-6)
+ Current Jackpot 34000000
+ Minimum Jackpot 3000000
+
+The class.ps is the class diagram of this game.
+
+Please direct comments, suggestions, and patches to:
+------------------------------------------------------------------
+Qun Zhang
+qzhang@oucsace.cs.ohiou.edu
diff --git a/games/CaribbeanStud/pkg-plist b/games/CaribbeanStud/pkg-plist
new file mode 100644
index 000000000000..6a6736df1fea
--- /dev/null
+++ b/games/CaribbeanStud/pkg-plist
@@ -0,0 +1,5 @@
+bin/CaribbeanStud
+lib/X11/app-defaults/CaribbeanStud
+share/doc/CaribbeanStud/README
+share/doc/CaribbeanStud/class.ps
+@dirrm share/doc/CaribbeanStud