diff --git a/games/xblackjack/Makefile b/games/xblackjack/Makefile index 954c58cada37..4019257ca390 100644 --- a/games/xblackjack/Makefile +++ b/games/xblackjack/Makefile @@ -7,6 +7,7 @@ PORTNAME= xblackjack PORTVERSION= 2.2 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_XCONTRIB} MASTER_SITE_SUBDIR= games @@ -15,10 +16,8 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= ports@FreeBSD.org COMMENT= An X11/Motif blackjack game -BROKEN= "Broken by open-motif upgrade" - -USE_MOTIF= yes USE_IMAKE= yes +LIB_DEPENDS+= Xm.1:${PORTSDIR}/x11-toolkits/lesstif MAN1= xblackjack.1 .include diff --git a/games/xblackjack/files/patch-Draw.c b/games/xblackjack/files/patch-Draw.c new file mode 100644 index 000000000000..bdc52462783c --- /dev/null +++ b/games/xblackjack/files/patch-Draw.c @@ -0,0 +1,11 @@ +--- Draw.c.orig Wed Oct 30 22:16:05 2002 ++++ Draw.c Wed Oct 30 22:34:05 2002 +@@ -84,7 +84,7 @@ + #include + #else + #include +-#include ++#include + #endif + #include "Assert.h" + #include "Bitmaps.h" diff --git a/games/xblackjack/files/patch-Imakefile.c b/games/xblackjack/files/patch-Imakefile.c new file mode 100644 index 000000000000..9ef5c03e4c95 --- /dev/null +++ b/games/xblackjack/files/patch-Imakefile.c @@ -0,0 +1,11 @@ +--- Imakefile.orig Wed Oct 30 22:39:10 2002 ++++ Imakefile Wed Oct 30 22:39:40 2002 +@@ -54,7 +54,7 @@ + /* + * You may need to remove -lbsd. + */ +- EXTRA_LIBRARIES = -lXm $(DEPLIBS) -lbsd ++ EXTRA_LIBRARIES = ${MOTIFLIB} -lXt -lXmu -lXext -lX11 + #endif + + /* diff --git a/games/xblackjack/files/patch-Strategy.c b/games/xblackjack/files/patch-Strategy.c new file mode 100644 index 000000000000..4e06fa59220f --- /dev/null +++ b/games/xblackjack/files/patch-Strategy.c @@ -0,0 +1,13 @@ +--- Strategy.c.orig Wed Oct 30 22:23:48 2002 ++++ Strategy.c Wed Oct 30 22:24:07 2002 +@@ -95,8 +95,8 @@ + #include + #include + #else +-#include +-#include ++#include ++#include + #include "Table.h" + #endif + #include "Assert.h" diff --git a/games/xblackjack/files/patch-Table.c b/games/xblackjack/files/patch-Table.c new file mode 100644 index 000000000000..dd251f78f46a --- /dev/null +++ b/games/xblackjack/files/patch-Table.c @@ -0,0 +1,29 @@ +--- Table.c.orig Wed Oct 30 22:35:52 2002 ++++ Table.c Wed Oct 30 23:11:30 2002 +@@ -229,7 +229,7 @@ + /* always_install_accelerators */ False, + #if XmVersion > 1000 + /* geo_matrix_create */ NULL, +- /* focus_moved_proc */ XtInheritFocusMovedProc, ++ /* focus_moved_proc */ /*XtInheritFocusMovedProc,*/ + #endif + /* extension */ NULL, + }, +@@ -967,7 +967,7 @@ + + /* XtMoveWidget(w, rx, ry);*/ + #if 1 +- _XmMoveObject((RectObj) w, rx, ry); ++ _XmMoveObject( w, rx, ry); + #else + _XmMoveObject( w, rx, ry); + #endif +@@ -1020,7 +1020,7 @@ + w, nw, nh, + w->core.border_width); + #endif +- _XmResizeObject((RectObj) managed->locs[i].w, nw, nh, ++ _XmResizeObject( managed->locs[i].w, nw, nh, + managed->locs[i].w->core.border_width); + } + diff --git a/games/xblackjack/files/patch-aa b/games/xblackjack/files/patch-aa deleted file mode 100644 index 66d3d24179a5..000000000000 --- a/games/xblackjack/files/patch-aa +++ /dev/null @@ -1,59 +0,0 @@ ---- Imakefile~ Thu Aug 1 21:41:28 1996 -+++ Imakefile Thu Aug 1 21:41:43 1996 -@@ -54,7 +54,7 @@ - /* - * You may need to remove -lbsd. - */ -- EXTRA_LIBRARIES = -lXm $(DEPLIBS) -lbsd -+ EXTRA_LIBRARIES = ${MOTIFLIB} -lXt -lXmu -lXext -lX11 - #endif - - /* ---- Table.c~ Thu Aug 1 21:39:10 1996 -+++ Table.c Thu Aug 1 21:40:50 1996 -@@ -229,7 +229,8 @@ - /* always_install_accelerators */ False, - #if XmVersion > 1000 - /* geo_matrix_create */ NULL, -- /* focus_moved_proc */ XtInheritFocusMovedProc, -+ /* focus_moved_proc */ /*XtInheritFocusMovedProc,*/ -+ XtCallAcceptFocus, - #endif - /* extension */ NULL, - }, ---- TableP.h~ Thu Aug 1 21:36:01 1996 -+++ TableP.h Thu Aug 1 21:38:03 1996 -@@ -15,6 +15,9 @@ - - #include "Table.h" - #include -+#include -+#include -+#include - #include - - /* ---- ./Draw.c.org Fri Jun 18 10:17:44 1993 -+++ ./Draw.c Mon Aug 19 03:45:59 1996 -@@ -84,7 +84,7 @@ - #include - #else - #include --#include -+#include - #endif - #include "Assert.h" - #include "Bitmaps.h" ---- ./Strategy.c.org Fri Jun 18 10:17:44 1993 -+++ ./Strategy.c Mon Aug 19 03:48:21 1996 -@@ -95,8 +95,8 @@ - #include - #include - #else --#include --#include -+#include -+#include - #include "Table.h" - #endif - #include "Assert.h"