summaryrefslogtreecommitdiffstats
path: root/games/alephone
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-12-04 14:41:46 +0000
committerdes <des@FreeBSD.org>2003-12-04 14:41:46 +0000
commitc297fc36a9b6fc942df05c0f8bb97ac1da75ec3b (patch)
tree38476b19974a10059d65b6ac971951e898633193 /games/alephone
parentffe8216003127d4d928723d5b69f9116443abb90 (diff)
downloadFreeBSD-ports-c297fc36a9b6fc942df05c0f8bb97ac1da75ec3b.zip
FreeBSD-ports-c297fc36a9b6fc942df05c0f8bb97ac1da75ec3b.tar.gz
Unbreak in -CURRENT (by adding 'using namespace std' in strategic spots)
Approved by: maintainer silence
Diffstat (limited to 'games/alephone')
-rw-r--r--games/alephone/Makefile14
-rw-r--r--games/alephone/files/patch-ac32
2 files changed, 37 insertions, 9 deletions
diff --git a/games/alephone/Makefile b/games/alephone/Makefile
index 5ab09b4..100c218 100644
--- a/games/alephone/Makefile
+++ b/games/alephone/Makefile
@@ -7,6 +7,7 @@
PORTNAME= alephone
PORTVERSION= 0.12.0
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= marathon
@@ -15,8 +16,9 @@ DISTNAME= AlephOne-${PORTVERSION}
MAINTAINER= malyn@strangeGizmo.com
COMMENT= The open source version of Bungie's Marathon game
-LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12:install \
- SDL_image.10:${PORTSDIR}/graphics/sdl_image:install
+LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
+ SDL_image.10:${PORTSDIR}/graphics/sdl_image \
+ SDL_net.0:${PORTSDIR}/net/sdl_net
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
@@ -25,12 +27,6 @@ USE_X_PREFIX= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}"
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not compile (bad C++ code)"
-.endif
-
post-patch:
@${PERL} -pi -e 's,^#include \"network_modem.h\".*,,' \
${WRKSRC}/Source_Files/Network/network.cpp \
@@ -41,4 +37,4 @@ post-install:
@${CAT} ${PKGMESSAGE}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/games/alephone/files/patch-ac b/games/alephone/files/patch-ac
new file mode 100644
index 0000000..e1fee5a
--- /dev/null
+++ b/games/alephone/files/patch-ac
@@ -0,0 +1,32 @@
+--- Source_Files/Misc/FileHandler.h.orig Fri Aug 8 15:00:21 2003
++++ Source_Files/Misc/FileHandler.h Fri Aug 8 15:01:07 2003
+@@ -46,6 +46,7 @@
+ #endif
+ #endif
+
++using namespace std;
+
+ // Symbolic constant for a closed file's reference number (refnum) (MacOS only)
+ const short RefNum_Closed = -1;
+--- Source_Files/Misc/resource_manager.h.orig Fri Aug 8 15:00:22 2003
++++ Source_Files/Misc/resource_manager.h Fri Aug 8 15:04:02 2003
+@@ -10,6 +10,8 @@
+ #include <stdio.h>
+ #include <vector>
+
++using namespace std;
++
+ class FileSpecifier;
+ class LoadedResource;
+
+--- Source_Files/Misc/sdl_dialogs.h.orig Fri Aug 8 15:00:22 2003
++++ Source_Files/Misc/sdl_dialogs.h Fri Aug 8 15:01:43 2003
+@@ -9,6 +9,8 @@
+
+ #include <vector>
+
++using namespace std;
++
+ class widget;
+ struct SDL_Surface;
+ class sdl_font_info;
OpenPOWER on IntegriCloud