From f19e43d86f829825695e5ed97c4f4c220ace651a Mon Sep 17 00:00:00 2001 From: pav Date: Sun, 16 Nov 2003 00:38:24 +0000 Subject: - Unbreak on -CURRENT - Remove Sourceforge mastersite. This release seems to never get there. - Use USE_SDL - Convert perl patching to sed inplace Approved by: marcus (backup mentor) --- games/nil/Makefile | 23 ++++++++--------------- games/nil/files/patch-nil-anim_helpers.cpp | 11 +++++++++++ games/nil/files/patch-nil-animation.h | 11 +++++++++++ games/nil/files/patch-nil-world.h | 15 +++++++++++++++ 4 files changed, 45 insertions(+), 15 deletions(-) create mode 100644 games/nil/files/patch-nil-anim_helpers.cpp create mode 100644 games/nil/files/patch-nil-animation.h create mode 100644 games/nil/files/patch-nil-world.h diff --git a/games/nil/Makefile b/games/nil/Makefile index c6cfde6..c424d72 100644 --- a/games/nil/Makefile +++ b/games/nil/Makefile @@ -8,9 +8,8 @@ PORTNAME= nil PORTVERSION= 000928 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ - ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= ${PORTNAME} sobomax +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= sobomax MAINTAINER= ports@FreeBSD.org COMMENT= A multiplayer game that can be described as Quake in 2D or Worms done right @@ -19,25 +18,19 @@ LIB_DEPENDS= SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer WRKSRC= ${WRKDIR}/${PORTNAME}/${PORTNAME} -SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config - USE_GMAKE= yes GNU_CONFIGURE= yes -MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}" - -.include - -.if ${OSVERSION} >= 500113 -BROKEN= "Does not compile (bad C++ code)" -.endif +USE_REINPLACE= yes +USE_SDL= yes pre-patch: @${FIND} ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \ - ${XARGS} ${PERL} -pi -e 's|"SDL/|"|g ; s| +.include diff --git a/games/nil/files/patch-nil-anim_helpers.cpp b/games/nil/files/patch-nil-anim_helpers.cpp new file mode 100644 index 0000000..66b7dee --- /dev/null +++ b/games/nil/files/patch-nil-anim_helpers.cpp @@ -0,0 +1,11 @@ +--- nil/anim_helpers.cpp.orig Sat Nov 15 16:43:08 2003 ++++ nil/anim_helpers.cpp Sat Nov 15 16:57:35 2003 +@@ -210,7 +210,7 @@ + } + + if (hit != end()) +- return hit; ++ return &(*hit); + else { + logmsg(lt_debug,"Unable to find a suitable aim_id for elevation: %.2f (%i angles were tried)",elevation,size()); + return NULL; diff --git a/games/nil/files/patch-nil-animation.h b/games/nil/files/patch-nil-animation.h new file mode 100644 index 0000000..72fe655 --- /dev/null +++ b/games/nil/files/patch-nil-animation.h @@ -0,0 +1,11 @@ +--- nil/animation.h.orig Sat Nov 15 16:18:52 2003 ++++ nil/animation.h Sat Nov 15 16:26:19 2003 +@@ -25,7 +25,7 @@ + class Animator; + class Animation { + public: +- friend Animator; ++ friend class Animator; + + Animation(); + ~Animation(); diff --git a/games/nil/files/patch-nil-world.h b/games/nil/files/patch-nil-world.h new file mode 100644 index 0000000..52ae1a6 --- /dev/null +++ b/games/nil/files/patch-nil-world.h @@ -0,0 +1,15 @@ +--- nil/world.h.orig Sat Nov 15 16:28:04 2003 ++++ nil/world.h Sat Nov 15 16:34:01 2003 +@@ -34,10 +34,8 @@ + int flags; + union { + int object_id; +- struct abspos { +- float x_pos; +- float y_pos; +- }; ++ float x_pos; ++ float y_pos; + }; + }; + -- cgit v1.1