summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ea4fb5437010..7273fb7f008c 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 000000000000..be81ddacb3ba
--- /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;
+ }
+ }