summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2007-07-03 11:41:35 +0000
committerdanfe <danfe@FreeBSD.org>2007-07-03 11:41:35 +0000
commitb31c6eacf0f44dcf7ed5b847958f8c6279f6f7d5 (patch)
tree5fbe2ce3b7eeba8375a08cede1ccdf62db6f3b2b
parent947b7ea66910e3da882ea2c7a23bc865dc9de581 (diff)
downloadFreeBSD-ports-b31c6eacf0f44dcf7ed5b847958f8c6279f6f7d5.zip
FreeBSD-ports-b31c6eacf0f44dcf7ed5b847958f8c6279f6f7d5.tar.gz
- Fix the build with GCC 4.2 [1]
- Replace USE_X_PREFIX with USE_XLIB Reported by: pointyhat via pav [1]
-rw-r--r--games/yadex/Makefile2
-rw-r--r--games/yadex/files/patch-wadlist.cc12
2 files changed, 13 insertions, 1 deletions
diff --git a/games/yadex/Makefile b/games/yadex/Makefile
index ea4fb54..7273fb7 100644
--- a/games/yadex/Makefile
+++ b/games/yadex/Makefile
@@ -16,7 +16,7 @@ DIST_SUBDIR= ${PORTNAME}
MAINTAINER= danfe@FreeBSD.org
COMMENT= A WAD-file editor, for games like Doom and Hexen
-USE_X_PREFIX= yes
+USE_XLIB= yes
USE_GMAKE= yes
USE_PERL5_BUILD= yes
MAKEFILE= GNUmakefile
diff --git a/games/yadex/files/patch-wadlist.cc b/games/yadex/files/patch-wadlist.cc
new file mode 100644
index 0000000..be81dda
--- /dev/null
+++ b/games/yadex/files/patch-wadlist.cc
@@ -0,0 +1,12 @@
+--- src/wadlist.cc.orig Fri Mar 28 18:37:32 2003
++++ src/wadlist.cc Tue Jul 3 18:35:21 2007
+@@ -175,7 +175,8 @@
+ priv->iter = priv->list.erase (i);
+ if (priv->iter == priv->list.begin ())
+ {
+- priv->iter = 0; // Catch bugs
++ list_t::iterator empty;
++ priv->iter = empty; // Catch bugs
+ priv->rewound = true;
+ }
+ }
OpenPOWER on IntegriCloud