diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2003-11-03 18:59:15 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2003-11-03 18:59:15 +0000 |
commit | b87ad4546b2f3bcdc7375999ad6a1d4cd073ef28 (patch) | |
tree | 99872a533aa131dbcd453c8747431d3288e3bc37 /games/xevil | |
parent | 96a6a859cbc77e30425df050b12b5077e7668966 (diff) |
Notes
Diffstat (limited to 'games/xevil')
26 files changed, 317 insertions, 26 deletions
diff --git a/games/xevil/Makefile b/games/xevil/Makefile index 3b51a50bf7a8..06ea81e9d359 100644 --- a/games/xevil/Makefile +++ b/games/xevil/Makefile @@ -17,6 +17,9 @@ COMMENT= A fast-action, networked, anti-social, kill-everything game USE_X_PREFIX= yes USE_ZIP= yes USE_XPM= yes +USE_REINPLACE= yes +MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" +MAKEFILE= makefile ALL_TARGET= freebsd .include <bsd.port.pre.mk> @@ -26,26 +29,19 @@ ALL_TARGET= freebsd CFLAGS+="-DXEVIL_KEYSET=UIalpha" .endif -.if ${OSVERSION} >= 501000 -BROKEN= "Does not compile on FreeBSD ${OSVERSION}" -.endif - pre-extract: @${MKDIR} ${WRKDIR}/${DISTNAME} do-extract: @unzip -aqo ${DISTDIR}/${DISTFILES} -d ${WRKSRC} -post-extract: - @${MV} -f ${WRKDIR}/${DISTNAME}/makefile ${WRKDIR}/${DISTNAME}/Makefile - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/x11/FREEBSD/xevil ${PREFIX}/bin/xevil .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/xevil/instructions - ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/xevil - ${INSTALL_DATA} ${WRKSRC}/instructions/* \ - ${PREFIX}/share/doc/xevil/instructions + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR} + @${MKDIR} ${DOCSDIR}/instructions + ${INSTALL_DATA} ${WRKSRC}/instructions/* ${DOCSDIR}/instructions .endif .include <bsd.port.post.mk> diff --git a/games/xevil/files/patch-aa b/games/xevil/files/patch-aa index 32472679189a..00979328c3da 100644 --- a/games/xevil/files/patch-aa +++ b/games/xevil/files/patch-aa @@ -1,5 +1,5 @@ --- config.mk.orig Sun Mar 23 00:08:58 2003 -+++ config.mk Sun May 18 12:02:44 2003 ++++ config.mk Sat Oct 25 21:05:31 2003 @@ -34,7 +34,7 @@ # You can add -DNDEBUG to speed up a release build by removing the assert() # calls. But, on a really obscure Linux machine, this caused Xlib to blow up @@ -20,12 +20,14 @@ archit=$$HOSTTYPE ; \ elif [ $${hosttype-bob} != bob ] ; then \ archit=$$hosttype ; \ -@@ -162,7 +164,7 @@ +@@ -161,8 +163,8 @@ + # The -DMSEC_PER_CLOCK=8 is kind of a hack, take it out if the game speed of # XEvil is all screwed up. freebsd: - @$(MAKE) CC="c++" \ +- @$(MAKE) CC="c++" \ -CFLAGS="-DUSE_RANDOM -DPROTECTED_IS_PUBLIC -DMSEC_PER_CLOCK=8 -DUNAME_USR_BIN" \ -+CFLAGS="-DUSE_RANDOM -DUSE_UINT_NET_LENGTH -DUNAME_USR_BIN ${CFLAGS}" \ ++ @$(MAKE) CC="${CXX}" \ ++CFLAGS="-DUSE_RANDOM -DUSE_UINT_NET_LENGTH -DUNAME_USR_BIN ${CXXFLAGS}" \ INCL_DIRS="-I/usr/X11R6/include" LIBS_DIRS="-L/usr/X11R6/lib" \ OBJ_DIR=$(DEPTH)/x11/FREEBSD PCKG_NAME="freebsd" \ LIBS="-lXpm -lX11 -lm" $(TARGETS) diff --git a/games/xevil/files/patch-ad b/games/xevil/files/patch-ad index d9b25e4b7972..003de2c995b0 100644 --- a/games/xevil/files/patch-ad +++ b/games/xevil/files/patch-ad @@ -1,5 +1,5 @@ ---- Makefile.orig Sun Mar 23 00:09:08 2003 -+++ Makefile Sun May 18 12:05:08 2003 +--- makefile.orig Sun Mar 23 00:09:08 2003 ++++ makefile Sun May 18 12:05:08 2003 @@ -63,11 +63,6 @@ # Could also include serverping in the distribution diff --git a/games/xevil/files/patch-cmn::actual.cpp b/games/xevil/files/patch-cmn::actual.cpp new file mode 100644 index 000000000000..2f765a0ec092 --- /dev/null +++ b/games/xevil/files/patch-cmn::actual.cpp @@ -0,0 +1,12 @@ +--- cmn/actual.cpp.orig Wed Jan 19 12:54:36 2000 ++++ cmn/actual.cpp Sat Oct 25 21:39:07 2003 +@@ -32,7 +32,8 @@ + + // Include Files + #if X11 +-#include <strstream.h> ++#include <strstream> ++using namespace std; + #endif + #if WIN32 + #include <strstrea.h> diff --git a/games/xevil/files/patch-cmn::area.cpp b/games/xevil/files/patch-cmn::area.cpp new file mode 100644 index 000000000000..15133f5610f2 --- /dev/null +++ b/games/xevil/files/patch-cmn::area.cpp @@ -0,0 +1,12 @@ +--- cmn/area.cpp.orig Wed Mar 19 10:04:22 2003 ++++ cmn/area.cpp Sat Oct 25 21:39:50 2003 +@@ -34,7 +34,8 @@ + extern "C" { + #include <limits.h> // For INT_MAX + } +-#include <iostream.h> ++#include <iostream> ++using namespace std; + #include "utils.h" + #include "coord.h" + #include "area.h" diff --git a/games/xevil/files/patch-cmn::game.cpp b/games/xevil/files/patch-cmn::game.cpp new file mode 100644 index 000000000000..0ce375a3ced2 --- /dev/null +++ b/games/xevil/files/patch-cmn::game.cpp @@ -0,0 +1,12 @@ +--- cmn/game.cpp.orig Sat Mar 22 22:20:00 2003 ++++ cmn/game.cpp Sat Oct 25 21:40:23 2003 +@@ -34,7 +34,8 @@ + } + + #if X11 +-#include <strstream.h> ++#include <strstream> ++using namespace std; + #endif + #if WIN32 + #include <strstrea.h> diff --git a/games/xevil/files/patch-cmn::game.h b/games/xevil/files/patch-cmn::game.h new file mode 100644 index 000000000000..ec1b32704c95 --- /dev/null +++ b/games/xevil/files/patch-cmn::game.h @@ -0,0 +1,12 @@ +--- cmn/game.h.dist Sat Mar 22 20:44:32 2003 ++++ cmn/game.h Sat Oct 25 21:40:54 2003 +@@ -35,7 +35,8 @@ + extern "C" { + #include <time.h> + } +-#include <iostream.h> ++#include <iostream> ++using namespace std; + #include "utils.h" + #include "ui.h" + #include "world.h" diff --git a/games/xevil/files/patch-cmn::game_style.cpp b/games/xevil/files/patch-cmn::game_style.cpp new file mode 100644 index 000000000000..6d147c7eb7ea --- /dev/null +++ b/games/xevil/files/patch-cmn::game_style.cpp @@ -0,0 +1,12 @@ +--- cmn/game_style.cpp.orig Sat Mar 22 20:47:42 2003 ++++ cmn/game_style.cpp Sat Oct 25 21:41:21 2003 +@@ -34,7 +34,8 @@ + } + + #if X11 +-#include <strstream.h> ++#include <strstream> ++using namespace std; + #endif + + #if WIN32 diff --git a/games/xevil/files/patch-cmn::game_style.h b/games/xevil/files/patch-cmn::game_style.h new file mode 100644 index 000000000000..eb7968439d64 --- /dev/null +++ b/games/xevil/files/patch-cmn::game_style.h @@ -0,0 +1,12 @@ +--- cmn/game_style.h.dist Sat Mar 22 20:22:30 2003 ++++ cmn/game_style.h Sat Oct 25 21:41:50 2003 +@@ -31,7 +31,8 @@ + #endif + + #if X11 +-#include <strstream.h> ++#include <strstream> ++using namespace std; + #endif + #if WIN32 + #include <strstrea.h> diff --git a/games/xevil/files/patch-cmn::intel.cpp b/games/xevil/files/patch-cmn::intel.cpp new file mode 100644 index 000000000000..41b4c0c6886d --- /dev/null +++ b/games/xevil/files/patch-cmn::intel.cpp @@ -0,0 +1,12 @@ +--- cmn/intel.cpp.orig Wed Mar 19 09:49:22 2003 ++++ cmn/intel.cpp Sat Oct 25 21:42:14 2003 +@@ -35,7 +35,8 @@ + #include <string.h> + } + #if X11 +-#include <strstream.h> ++#include <strstream> ++using namespace std; + #endif + #if WIN32 + #include <strstrea.h> diff --git a/games/xevil/files/patch-cmn::locator.h b/games/xevil/files/patch-cmn::locator.h new file mode 100644 index 000000000000..1905c1f9824f --- /dev/null +++ b/games/xevil/files/patch-cmn::locator.h @@ -0,0 +1,12 @@ +--- cmn/locator.h.dist Sat Mar 22 20:35:30 2003 ++++ cmn/locator.h Sat Oct 25 21:42:46 2003 +@@ -47,7 +47,8 @@ + + + // Include Files +-#include <iostream.h> ++#include <iostream> ++using namespace std; + + #include "utils.h" + #include "coord.h" diff --git a/games/xevil/files/patch-cmn::physical.cpp b/games/xevil/files/patch-cmn::physical.cpp new file mode 100644 index 000000000000..5fac9455b1ac --- /dev/null +++ b/games/xevil/files/patch-cmn::physical.cpp @@ -0,0 +1,16 @@ +--- cmn/physical.cpp.orig Wed Jan 19 20:38:14 2000 ++++ cmn/physical.cpp Sat Oct 25 21:43:15 2003 +@@ -33,10 +33,11 @@ + // Include Files + #include "xdata.h" + #include "physical.h" +-#include <iostream.h> ++#include <iostream> ++using namespace std; + + #if X11 +-#include <strstream.h> ++#include <strstream> + #endif + #if WIN32 + #include <strstrea.h> diff --git a/games/xevil/files/patch-cmn::physical.h b/games/xevil/files/patch-cmn::physical.h new file mode 100644 index 000000000000..5f668d4dbe36 --- /dev/null +++ b/games/xevil/files/patch-cmn::physical.h @@ -0,0 +1,11 @@ +--- cmn/physical.h.orig Wed Jan 19 12:54:08 2000 ++++ cmn/physical.h Mon Nov 3 21:36:14 2003 +@@ -93,7 +93,7 @@ + CLASSNAME::CLASSNAME(InStreamP in,const CLASSNAME ## Context &cx, \ + CLASSNAME ## Xdata &x_data, \ + WorldP w,LocatorP l) \ +- : PARENT(in,cx. ## parent ## Context,x_data,w,l) ++ : PARENT(in,cx. parent ## Context,x_data,w,l) + + // Used by internal nodes and leaves. + #define DEFINE_UPDATE_FROM_STREAM(CLASSNAME,PARENT) \ diff --git a/games/xevil/files/patch-cmn::role.cpp b/games/xevil/files/patch-cmn::role.cpp new file mode 100644 index 000000000000..7f5ecfc4a643 --- /dev/null +++ b/games/xevil/files/patch-cmn::role.cpp @@ -0,0 +1,15 @@ +--- cmn/role.cpp.orig Wed Jan 19 12:54:34 2000 ++++ cmn/role.cpp Sat Oct 25 21:43:43 2003 +@@ -29,9 +29,10 @@ + + #include "stdafx.h" + +-#include <iostream.h> ++#include <iostream> ++using namespace std; + #if X11 +-#include <strstream.h> ++#include <strstream> + #include <time.h> + #endif + #if WIN32 diff --git a/games/xevil/files/patch-cmn::streams.cpp b/games/xevil/files/patch-cmn::streams.cpp new file mode 100644 index 000000000000..7d0ff670e436 --- /dev/null +++ b/games/xevil/files/patch-cmn::streams.cpp @@ -0,0 +1,12 @@ +--- cmn/streams.cpp.orig Wed Jan 19 12:54:32 2000 ++++ cmn/streams.cpp Sat Oct 25 21:44:08 2003 +@@ -31,7 +31,8 @@ + #include "utils.h" + #include "neth.h" // needed for recv, send, recvfrom, sendto + +-#include <iostream.h> ++#include <iostream> ++using namespace std; + + #include "streams.h" + #include "xetp.h" // yuck, need this for XETP::versionStr diff --git a/games/xevil/files/patch-cmn::utils.cpp b/games/xevil/files/patch-cmn::utils.cpp new file mode 100644 index 000000000000..f151787b9e53 --- /dev/null +++ b/games/xevil/files/patch-cmn::utils.cpp @@ -0,0 +1,26 @@ +--- cmn/utils.cpp.orig Wed Mar 19 10:05:12 2003 ++++ cmn/utils.cpp Sat Oct 25 21:45:15 2003 +@@ -30,16 +30,17 @@ + + // Include Files + #include "stdafx.h" +-#include <iostream.h> +-#include <limits.h> +-#include <string.h> +-#include <ctype.h> +-#include <fstream.h> ++#include <iostream> ++#include <climits> ++#include <cstring> ++#include <cctype> ++#include <fstream> ++using namespace std; + #if WIN32 + #include <strstrea.h> + #endif + #if X11 +-#include <strstream.h> ++#include <strstream> + #endif + + #ifdef WIN32 diff --git a/games/xevil/files/patch-cmn::world.cpp b/games/xevil/files/patch-cmn::world.cpp new file mode 100644 index 000000000000..aaae27303679 --- /dev/null +++ b/games/xevil/files/patch-cmn::world.cpp @@ -0,0 +1,12 @@ +--- cmn/world.cpp.orig Wed Jan 19 21:15:08 2000 ++++ cmn/world.cpp Sat Oct 25 21:45:40 2003 +@@ -35,7 +35,8 @@ + #endif + + // Include Files. +-#include <iostream.h> ++#include <iostream> ++using namespace std; + + #include "utils.h" + #include "coord.h" diff --git a/games/xevil/files/patch-cmn::xetp.cpp b/games/xevil/files/patch-cmn::xetp.cpp new file mode 100644 index 000000000000..75db0573f811 --- /dev/null +++ b/games/xevil/files/patch-cmn::xetp.cpp @@ -0,0 +1,15 @@ +--- cmn/xetp.cpp.orig Wed Jan 19 12:54:30 2000 ++++ cmn/xetp.cpp Sat Oct 25 21:46:02 2003 +@@ -29,9 +29,10 @@ + + #include "stdafx.h" + +-#include <iostream.h> ++#include <iostream> ++using namespace std; + #if X11 +-#include <strstream.h> ++#include <strstream> + #endif + #if WIN32 + #include <strstrea.h> diff --git a/games/xevil/files/patch-x11::l_agreement_dlg.cpp b/games/xevil/files/patch-x11::l_agreement_dlg.cpp new file mode 100644 index 000000000000..7d454fc70562 --- /dev/null +++ b/games/xevil/files/patch-x11::l_agreement_dlg.cpp @@ -0,0 +1,12 @@ +--- x11/l_agreement_dlg.cpp.orig Wed Jan 19 12:55:04 2000 ++++ x11/l_agreement_dlg.cpp Sat Oct 25 21:46:33 2003 +@@ -31,7 +31,8 @@ + #include <X11/Xatom.h> + } + +-#include <strstream.h> ++#include <strstream> ++using namespace std; + + #include "xdata.h" + #include "panel.h" diff --git a/games/xevil/files/patch-x11::main.cpp b/games/xevil/files/patch-x11::main.cpp new file mode 100644 index 000000000000..7bbf52f13fc6 --- /dev/null +++ b/games/xevil/files/patch-x11::main.cpp @@ -0,0 +1,12 @@ +--- x11/main.cpp.orig Sat Mar 22 20:52:14 2003 ++++ x11/main.cpp Sat Oct 25 21:47:04 2003 +@@ -33,7 +33,8 @@ + #include <X11/Xos.h> + } + +-#include <iostream.h> ++#include <iostream> ++using namespace std; + + #include "utils.h" + #include "neth.h" diff --git a/games/xevil/files/patch-x11::panel.cpp b/games/xevil/files/patch-x11::panel.cpp new file mode 100644 index 000000000000..fb0cd883ffcf --- /dev/null +++ b/games/xevil/files/patch-x11::panel.cpp @@ -0,0 +1,14 @@ +--- x11/panel.cpp.orig Sat Mar 22 20:50:44 2003 ++++ x11/panel.cpp Sat Oct 25 21:47:34 2003 +@@ -31,8 +31,9 @@ + #include <X11/Xutil.h> + #include <X11/keysym.h> + } +-#include <iostream.h> +-#include <strstream.h> ++#include <iostream> ++#include <strstream> ++using namespace std; + + #include "utils.h" + #include "xdata.h" diff --git a/games/xevil/files/patch-x11::serverping.cpp b/games/xevil/files/patch-x11::serverping.cpp new file mode 100644 index 000000000000..35808396f183 --- /dev/null +++ b/games/xevil/files/patch-x11::serverping.cpp @@ -0,0 +1,14 @@ +--- x11/serverping.cpp.orig Sat Mar 22 21:55:12 2003 ++++ x11/serverping.cpp Sat Oct 25 21:48:03 2003 +@@ -25,8 +25,9 @@ + // code and should be reasonably easy to compile on Windows. + + +-#include <iostream.h> +-#include <strstream.h> ++#include <iostream> ++#include <strstream> ++using namespace std; + #include "utils.h" + #include "streams.h" + #include "xetp_basic.h" diff --git a/games/xevil/files/patch-x11::ui.cpp b/games/xevil/files/patch-x11::ui.cpp new file mode 100644 index 000000000000..93a98af2e5ec --- /dev/null +++ b/games/xevil/files/patch-x11::ui.cpp @@ -0,0 +1,14 @@ +--- x11/ui.cpp.orig Wed Mar 19 10:05:38 2003 ++++ x11/ui.cpp Sat Oct 25 21:48:32 2003 +@@ -40,8 +40,9 @@ + #include <X11/Xatom.h> + } + +-#include <iostream.h> +-#include <strstream.h> ++#include <iostream> ++#include <strstream> ++using namespace std; + + #include "coord.h" + #include "area.h" diff --git a/games/xevil/files/patch-x11::viewport.cpp b/games/xevil/files/patch-x11::viewport.cpp new file mode 100644 index 000000000000..8e6c18d80306 --- /dev/null +++ b/games/xevil/files/patch-x11::viewport.cpp @@ -0,0 +1,12 @@ +--- x11/viewport.cpp.orig Wed Jan 19 12:54:14 2000 ++++ x11/viewport.cpp Sat Oct 25 21:49:00 2003 +@@ -44,7 +44,8 @@ + #include <X11/Xos.h> + #include <X11/keysym.h> + } +-#include <strstream.h> ++#include <strstream> ++using namespace std; + + + #define TICK_BORDER_WIDTH 5 // border width big enough for a tick mark. diff --git a/games/xevil/files/patch-x11::xdata.cpp b/games/xevil/files/patch-x11::xdata.cpp new file mode 100644 index 000000000000..71a6cf73e5b3 --- /dev/null +++ b/games/xevil/files/patch-x11::xdata.cpp @@ -0,0 +1,12 @@ +--- x11/xdata.cpp.orig Wed Jan 19 12:54:14 2000 ++++ x11/xdata.cpp Sat Oct 25 21:49:26 2003 +@@ -30,7 +30,8 @@ + #include "xdata.h" + #include "area.h" + +-#include <iostream.h> ++#include <iostream> ++using namespace std; + #include <X11/Xutil.h> + #include <X11/xpm.h> + #include <X11/Xatom.h> diff --git a/games/xevil/pkg-plist b/games/xevil/pkg-plist index 37c46d82e5d4..9793171f97d2 100644 --- a/games/xevil/pkg-plist +++ b/games/xevil/pkg-plist @@ -1,10 +1,10 @@ bin/xevil -share/doc/xevil/instructions/UNIXSetControls.gif -share/doc/xevil/instructions/UNIXShowControls.gif -share/doc/xevil/instructions/UNIXmenu.gif -share/doc/xevil/instructions/instructions.html -share/doc/xevil/instructions/keysdlg.gif -share/doc/xevil/instructions/optionsdlg.gif -share/doc/xevil/readme.txt -@dirrm share/doc/xevil/instructions -@dirrm share/doc/xevil +%%PORTDOCS%%%%DOCSDIR%%/instructions/UNIXSetControls.gif +%%PORTDOCS%%%%DOCSDIR%%/instructions/UNIXShowControls.gif +%%PORTDOCS%%%%DOCSDIR%%/instructions/UNIXmenu.gif +%%PORTDOCS%%%%DOCSDIR%%/instructions/instructions.html +%%PORTDOCS%%%%DOCSDIR%%/instructions/keysdlg.gif +%%PORTDOCS%%%%DOCSDIR%%/instructions/optionsdlg.gif +%%PORTDOCS%%%%DOCSDIR%%/readme.txt +%%PORTDOCS%%@dirrm %%DOCSDIR%%/instructions +%%PORTDOCS%%@dirrm %%DOCSDIR%% |