aboutsummaryrefslogtreecommitdiffstats
path: root/games/nil/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/nil/Makefile')
-rw-r--r--games/nil/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/games/nil/Makefile b/games/nil/Makefile
index 849a5f171d00..c61655d6e146 100644
--- a/games/nil/Makefile
+++ b/games/nil/Makefile
@@ -17,12 +17,6 @@ COMMENT= A multiplayer game that can be described as Quake in 2D or Worms done r
LIB_DEPENDS= SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not compile (bad C++ code)"
-.endif
-
WRKSRC= ${WRKDIR}/${PORTNAME}/${PORTNAME}
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
@@ -31,6 +25,12 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}"
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500113
+BROKEN= "Does not compile (bad C++ code)"
+.endif
+
pre-patch:
@find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \
xargs ${PERL} -pi -e 's|"SDL/|"|g ; s|<SDL/|<|g'