diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2010-04-15 00:14:18 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2010-04-15 00:14:18 +0000 |
commit | 447ac79701ea344450a1b74cb50f4430cdbc41af (patch) | |
tree | 5012502cf4acdcd941bf0a7163be0f83abe32e34 /games | |
parent | 4c867050c9d32bd4c51bd905d17ee37e4769c4f3 (diff) | |
download | ports-447ac79701ea344450a1b74cb50f4430cdbc41af.tar.gz ports-447ac79701ea344450a1b74cb50f4430cdbc41af.zip |
Notes
Diffstat (limited to 'games')
-rw-r--r-- | games/linwarrior/Makefile | 8 | ||||
-rw-r--r-- | games/linwarrior/files/extra-patch-source-cMech.cpp | 21 |
2 files changed, 1 insertions, 28 deletions
diff --git a/games/linwarrior/Makefile b/games/linwarrior/Makefile index ea4800849f4b..53a826fd24ae 100644 --- a/games/linwarrior/Makefile +++ b/games/linwarrior/Makefile @@ -31,12 +31,6 @@ DESKTOP_ENTRIES="LinWarrior 3D" \ "Game;ActionGame;Simulation;" \ false -.include <bsd.port.pre.mk> - -.if ${OSVERSION} < 800007 -EXTRA_PATCHES= ${FILESDIR}/extra-patch-source-cMech.cpp -.endif - post-extract: @${FIND} ${WRKSRC} -type d -exec chmod a+rx {} \; @${FIND} ${WRKSRC} -type f -exec chmod a+r {} \; @@ -51,4 +45,4 @@ do-install: ${MKDIR} ${DATADIR} cd ${WRKSRC}/data && ${COPYTREE_SHARE} '*' ${DATADIR}/ -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/games/linwarrior/files/extra-patch-source-cMech.cpp b/games/linwarrior/files/extra-patch-source-cMech.cpp deleted file mode 100644 index 54f4677a9113..000000000000 --- a/games/linwarrior/files/extra-patch-source-cMech.cpp +++ /dev/null @@ -1,21 +0,0 @@ ---- source/cMech.cpp.orig 2009-11-08 16:18:05.000000000 +0300 -+++ source/cMech.cpp 2009-11-12 07:03:04.000000000 +0300 -@@ -1494,9 +1494,15 @@ - // Set XYZ to Not-A-Number (NaN) for no location. - // Note that NaN-ity can only be tested either by - // isnanf(x), !finite(x) or by x!=x as NaN always != NaN. -- mDestination[0] = nanf(""); -- mDestination[1] = nanf(""); -- mDestination[2] = nanf(""); -+ union { /* from src/lib/msun/src/s_nan.c of FreeBSD HEAD */ -+ float f; -+ uint32_t bits[1]; -+ } u; -+ u.bits[0] = 0x7fc00000; -+ mDestination[0] = u.f; -+ mDestination[1] = u.f; -+ mDestination[2] = u.f; -+ - //cout << "Destination is " << ((finitef(mDestination[0])) ? "finite" : "infinite" ) << "\n"; - } - } |