summaryrefslogtreecommitdiff
path: root/games/simgear/patches
diff options
context:
space:
mode:
authordrochner <drochner>2007-07-12 19:56:14 +0000
committerdrochner <drochner>2007-07-12 19:56:14 +0000
commit4f70dcb47ab416117609aeafe7709a927b0f097c (patch)
tree1d62d4ab0fdfbbc5aeb02c799f9ad903f9c8ef45 /games/simgear/patches
parentc5cce94dcb5bccc23b47ed3e26bf96aa2ca74d76 (diff)
downloadpkgsrc-4f70dcb47ab416117609aeafe7709a927b0f097c.tar.gz
import simgear-0.3.10, prepared by Juan Romero Pardines in pkgsrc-wip
This is a library fon 3d simulations, used by the flightgear flight simulator.
Diffstat (limited to 'games/simgear/patches')
-rw-r--r--games/simgear/patches/patch-aa13
-rw-r--r--games/simgear/patches/patch-ab22
-rw-r--r--games/simgear/patches/patch-ac21
-rw-r--r--games/simgear/patches/patch-ad31
4 files changed, 87 insertions, 0 deletions
diff --git a/games/simgear/patches/patch-aa b/games/simgear/patches/patch-aa
new file mode 100644
index 00000000000..cb978ddd738
--- /dev/null
+++ b/games/simgear/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
+
+--- configure.orig 2007-03-22 21:36:06.000000000 +0100
++++ configure
+@@ -8634,7 +8634,7 @@ fi
+
+ esac
+
+-if test "$OPENAL_OK" == "no"; then
++if test "$OPENAL_OK" = "no"; then
+ echo
+ echo "You *must* have the openal library installed on your system to build"
+ echo "SimGear!"
diff --git a/games/simgear/patches/patch-ab b/games/simgear/patches/patch-ab
new file mode 100644
index 00000000000..93ed875304e
--- /dev/null
+++ b/games/simgear/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
+
+--- simgear/scene/sky/cloud.cxx.orig 2007-07-12 19:52:40.000000000 +0200
++++ simgear/scene/sky/cloud.cxx
+@@ -27,7 +27,7 @@
+ #include <simgear/compiler.h>
+
+ // #include <stdio.h>
+-#include <math.h>
++#include <cmath>
+
+ #include <plib/sg.h>
+ #include <plib/ssg.h>
+@@ -724,7 +724,7 @@ bool SGCloudLayer::reposition( sgVec3 p,
+ // this happens, lets just use the last known good course.
+ // This is a hack, and it would probably be better to make
+ // calc_gc_course_dist() more robust.
+- if ( isnan(course) ) {
++ if ( std::isnan(course) ) {
+ course = last_course;
+ } else {
+ last_course = course;
diff --git a/games/simgear/patches/patch-ac b/games/simgear/patches/patch-ac
new file mode 100644
index 00000000000..323d864a380
--- /dev/null
+++ b/games/simgear/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
+
+--- simgear/scene/sky/cloudfield.cxx.orig 2007-07-12 19:58:48.000000000 +0200
++++ simgear/scene/sky/cloudfield.cxx
+@@ -34,6 +34,7 @@
+
+ #include STL_ALGORITHM
+ #include <vector>
++#include <cmath>
+
+ SG_USING_STD(vector);
+
+@@ -175,7 +176,7 @@ void SGCloudField::reposition( sgVec3 p,
+ // this happens, lets just use the last known good course.
+ // This is a hack, and it would probably be better to make
+ // calc_gc_course_dist() more robust.
+- if ( isnan(course) ) {
++ if ( std::isnan(course) ) {
+ course = last_course;
+ } else {
+ last_course = course;
diff --git a/games/simgear/patches/patch-ad b/games/simgear/patches/patch-ad
new file mode 100644
index 00000000000..4974282bb5f
--- /dev/null
+++ b/games/simgear/patches/patch-ad
@@ -0,0 +1,31 @@
+$NetBSD: patch-ad,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
+
+--- simgear/sound/soundmgr_openal.cxx.orig 2007-07-12 20:01:48.000000000 +0200
++++ simgear/sound/soundmgr_openal.cxx
+@@ -37,6 +37,8 @@
+ # include <AL/alc.h>
+ #endif
+
++#include <cmath>
++
+ #if defined (__APPLE__)
+ # ifdef __GNUC__
+ # if ( __GNUC__ >= 3 ) && ( __GNUC_MINOR__ >= 3 )
+@@ -310,7 +312,7 @@ bool SGSoundMgr::stop( const string& ref
+
+ // set source position of all managed sounds
+ void SGSoundMgr::set_source_pos_all( ALfloat *pos ) {
+- if ( isnan(pos[0]) || isnan(pos[1]) || isnan(pos[2]) ) {
++ if ( std::isnan(pos[0]) || std::isnan(pos[1]) || std::isnan(pos[2]) ) {
+ // bail if a bad position is passed in
+ return;
+ }
+@@ -326,7 +328,7 @@ void SGSoundMgr::set_source_pos_all( ALf
+
+ // set source velocity of all managed sounds
+ void SGSoundMgr::set_source_vel_all( ALfloat *vel ) {
+- if ( isnan(vel[0]) || isnan(vel[1]) || isnan(vel[2]) ) {
++ if ( std::isnan(vel[0]) || std::isnan(vel[1]) || std::isnan(vel[2]) ) {
+ // bail if a bad velocity is passed in
+ return;
+ }