From b31c6eacf0f44dcf7ed5b847958f8c6279f6f7d5 Mon Sep 17 00:00:00 2001 From: danfe Date: Tue, 3 Jul 2007 11:41:35 +0000 Subject: - Fix the build with GCC 4.2 [1] - Replace USE_X_PREFIX with USE_XLIB Reported by: pointyhat via pav [1] --- games/yadex/Makefile | 2 +- games/yadex/files/patch-wadlist.cc | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 games/yadex/files/patch-wadlist.cc 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; + } + } -- cgit v1.1