diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2004-09-20 19:43:12 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2004-09-20 19:43:12 +0000 |
commit | 7d3a4b0d70076bd643558edfda29d159334dc2b1 (patch) | |
tree | 423e844e10602ceeed38945ef988b4cf648762aa /games/alephone | |
parent | aee0243cca1af42f631cad819e0dd691fd2bc6b6 (diff) |
Fix problematic C++ code, and unbreak the build with recent GCC.
Reported by: kris
Approved by: portmgr (marcus), fjoe (mentor, implicit)
Notes
Notes:
svn path=/head/; revision=118306
Diffstat (limited to 'games/alephone')
-rw-r--r-- | games/alephone/Makefile | 8 | ||||
-rw-r--r-- | games/alephone/files/patch-Source_Files::Misc::sdl_widgets.h | 20 |
2 files changed, 21 insertions, 7 deletions
diff --git a/games/alephone/Makefile b/games/alephone/Makefile index 9ea6be5a6dd3..8f677a4475c5 100644 --- a/games/alephone/Makefile +++ b/games/alephone/Makefile @@ -22,12 +22,6 @@ USE_X_PREFIX= yes GNU_CONFIGURE= yes CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - post-patch: @${PERL} -pi -e 's,^#include \"network_modem.h\".*,,' \ ${WRKSRC}/Source_Files/Network/network.cpp \ @@ -38,4 +32,4 @@ post-install: @${CAT} ${PKGMESSAGE} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/games/alephone/files/patch-Source_Files::Misc::sdl_widgets.h b/games/alephone/files/patch-Source_Files::Misc::sdl_widgets.h new file mode 100644 index 000000000000..89bc01409e5b --- /dev/null +++ b/games/alephone/files/patch-Source_Files::Misc::sdl_widgets.h @@ -0,0 +1,20 @@ +--- Source_Files/Misc/sdl_widgets.h.orig Mon Jul 16 21:37:51 2001 ++++ Source_Files/Misc/sdl_widgets.h Mon Sep 20 20:46:48 2004 +@@ -402,7 +402,7 @@ + protected: + void draw_items(SDL_Surface *s) const + { +- vector<T>::const_iterator i = items.begin() + top_item; ++ typename vector<T>::const_iterator i = items.begin() + top_item; + int x = rect.x + get_dialog_space(LIST_L_SPACE); + int y = rect.y + get_dialog_space(LIST_T_SPACE); + int width = rect.w - get_dialog_space(LIST_L_SPACE) - get_dialog_space(LIST_R_SPACE); +@@ -413,7 +413,7 @@ + const vector<T> &items; // List of items + + private: +- virtual void draw_item(vector<T>::const_iterator i, SDL_Surface *s, int x, int y, int width, bool selected) const = 0; ++ virtual void draw_item(typename vector<T>::const_iterator i, SDL_Surface *s, int x, int y, int width, bool selected) const = 0; + }; + + #endif |