summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2007-07-12 19:56:14 +0000
committerdrochner <drochner@pkgsrc.org>2007-07-12 19:56:14 +0000
commita348a084e4bbc718869db72cfd4a6ed4d3bbf7e8 (patch)
tree1d62d4ab0fdfbbc5aeb02c799f9ad903f9c8ef45 /games
parent030af09061440614bfb70fd7cef5288b4afaebe1 (diff)
downloadpkgsrc-a348a084e4bbc718869db72cfd4a6ed4d3bbf7e8.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')
-rw-r--r--games/simgear/DESCR3
-rw-r--r--games/simgear/Makefile23
-rw-r--r--games/simgear/PLIST168
-rw-r--r--games/simgear/buildlink3.mk23
-rw-r--r--games/simgear/distinfo9
-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
9 files changed, 313 insertions, 0 deletions
diff --git a/games/simgear/DESCR b/games/simgear/DESCR
new file mode 100644
index 00000000000..f5664619a72
--- /dev/null
+++ b/games/simgear/DESCR
@@ -0,0 +1,3 @@
+SimGear is a set of open-source libraries designed to be used as building
+blocks for quickly assembling 3d simulations, games, and visualization
+applications.
diff --git a/games/simgear/Makefile b/games/simgear/Makefile
new file mode 100644
index 00000000000..156a369af8e
--- /dev/null
+++ b/games/simgear/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
+#
+
+DISTNAME= SimGear-0.3.10
+PKGNAME= ${DISTNAME:S/SimGear/simgear/}
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.simgear.org/pub/simgear/Source/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= ftp://ftp.simgear.org/pub/simgear/Source/
+COMMENT= Simulator Construction Tools
+
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+USE_LANGUAGES= c c++
+
+.include "../../audio/openal/buildlink3.mk"
+.include "../../audio/freealut/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../games/plib/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/simgear/PLIST b/games/simgear/PLIST
new file mode 100644
index 00000000000..a20e20350ad
--- /dev/null
+++ b/games/simgear/PLIST
@@ -0,0 +1,168 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
+include/simgear/bucket/newbucket.hxx
+include/simgear/compiler.h
+include/simgear/constants.h
+include/simgear/debug/debug_types.h
+include/simgear/debug/logstream.hxx
+include/simgear/environment/metar.hxx
+include/simgear/environment/visual_enviro.hxx
+include/simgear/ephemeris/celestialBody.hxx
+include/simgear/ephemeris/ephemeris.hxx
+include/simgear/ephemeris/jupiter.hxx
+include/simgear/ephemeris/mars.hxx
+include/simgear/ephemeris/mercury.hxx
+include/simgear/ephemeris/moonpos.hxx
+include/simgear/ephemeris/neptune.hxx
+include/simgear/ephemeris/saturn.hxx
+include/simgear/ephemeris/star.hxx
+include/simgear/ephemeris/stardata.hxx
+include/simgear/ephemeris/uranus.hxx
+include/simgear/ephemeris/venus.hxx
+include/simgear/io/iochannel.hxx
+include/simgear/io/lowlevel.hxx
+include/simgear/io/sg_binobj.hxx
+include/simgear/io/sg_file.hxx
+include/simgear/io/sg_serial.hxx
+include/simgear/io/sg_socket.hxx
+include/simgear/io/sg_socket_udp.hxx
+include/simgear/magvar/magvar.hxx
+include/simgear/math/SGGeoc.hxx
+include/simgear/math/SGGeod.hxx
+include/simgear/math/SGGeodesy.hxx
+include/simgear/math/SGLimits.hxx
+include/simgear/math/SGMath.hxx
+include/simgear/math/SGMatrix.hxx
+include/simgear/math/SGMisc.hxx
+include/simgear/math/SGQuat.hxx
+include/simgear/math/SGVec3.hxx
+include/simgear/math/SGVec4.hxx
+include/simgear/math/fastmath.hxx
+include/simgear/math/interpolater.hxx
+include/simgear/math/leastsqs.hxx
+include/simgear/math/point3d.hxx
+include/simgear/math/polar3d.hxx
+include/simgear/math/sg_geodesy.hxx
+include/simgear/math/sg_memory.h
+include/simgear/math/sg_random.h
+include/simgear/math/sg_types.hxx
+include/simgear/math/vector.hxx
+include/simgear/misc/interpolator.hxx
+include/simgear/misc/sg_path.hxx
+include/simgear/misc/sgstream.hxx
+include/simgear/misc/stdint.hxx
+include/simgear/misc/stopwatch.hxx
+include/simgear/misc/strutils.hxx
+include/simgear/misc/tabbed_values.hxx
+include/simgear/misc/texcoord.hxx
+include/simgear/misc/zfstream.hxx
+include/simgear/nasal/nasal.h
+include/simgear/props/condition.hxx
+include/simgear/props/props.hxx
+include/simgear/props/props_io.hxx
+include/simgear/route/route.hxx
+include/simgear/route/waypoint.hxx
+include/simgear/scene/material/mat.hxx
+include/simgear/scene/material/matlib.hxx
+include/simgear/scene/material/matmodel.hxx
+include/simgear/scene/model/animation.hxx
+include/simgear/scene/model/custtrans.hxx
+include/simgear/scene/model/location.hxx
+include/simgear/scene/model/model.hxx
+include/simgear/scene/model/modellib.hxx
+include/simgear/scene/model/personality.hxx
+include/simgear/scene/model/placement.hxx
+include/simgear/scene/model/placementtrans.hxx
+include/simgear/scene/model/shadowvolume.hxx
+include/simgear/scene/sky/bbcache.hxx
+include/simgear/scene/sky/cloud.hxx
+include/simgear/scene/sky/cloudfield.hxx
+include/simgear/scene/sky/dome.hxx
+include/simgear/scene/sky/moon.hxx
+include/simgear/scene/sky/newcloud.hxx
+include/simgear/scene/sky/oursun.hxx
+include/simgear/scene/sky/sky.hxx
+include/simgear/scene/sky/sphere.hxx
+include/simgear/scene/sky/stars.hxx
+include/simgear/scene/tgdb/apt_signs.hxx
+include/simgear/scene/tgdb/leaf.hxx
+include/simgear/scene/tgdb/obj.hxx
+include/simgear/scene/tgdb/pt_lights.hxx
+include/simgear/scene/tgdb/userdata.hxx
+include/simgear/scene/tgdb/vasi.hxx
+include/simgear/screen/RenderTexture.h
+include/simgear/screen/colors.hxx
+include/simgear/screen/extensions.hxx
+include/simgear/screen/screen-dump.hxx
+include/simgear/screen/shader.h
+include/simgear/screen/texture.hxx
+include/simgear/screen/tr.h
+include/simgear/serial/serial.hxx
+include/simgear/sg_inlines.h
+include/simgear/sg_traits.hxx
+include/simgear/sound/sample_openal.hxx
+include/simgear/sound/soundmgr_openal.hxx
+include/simgear/sound/xmlsound.hxx
+include/simgear/structure/SGReferenced.hxx
+include/simgear/structure/SGSharedPtr.hxx
+include/simgear/structure/callback.hxx
+include/simgear/structure/commands.hxx
+include/simgear/structure/event_mgr.hxx
+include/simgear/structure/exception.hxx
+include/simgear/structure/ssgSharedPtr.hxx
+include/simgear/structure/subsystem_mgr.hxx
+include/simgear/threads/SGGuard.hxx
+include/simgear/threads/SGQueue.hxx
+include/simgear/threads/SGThread.hxx
+include/simgear/timing/geocoord.h
+include/simgear/timing/lowleveltime.h
+include/simgear/timing/sg_time.hxx
+include/simgear/timing/timestamp.hxx
+include/simgear/timing/timezone.h
+include/simgear/version.h
+include/simgear/xml/easyxml.hxx
+lib/libsgbucket.a
+lib/libsgdebug.a
+lib/libsgenvironment.a
+lib/libsgephem.a
+lib/libsgio.a
+lib/libsgmagvar.a
+lib/libsgmaterial.a
+lib/libsgmath.a
+lib/libsgmisc.a
+lib/libsgmodel.a
+lib/libsgnasal.a
+lib/libsgprops.a
+lib/libsgroute.a
+lib/libsgscreen.a
+lib/libsgserial.a
+lib/libsgsky.a
+lib/libsgsound.a
+lib/libsgstructure.a
+lib/libsgtgdb.a
+lib/libsgthreads.a
+lib/libsgtiming.a
+lib/libsgxml.a
+@dirrm include/simgear/xml
+@dirrm include/simgear/timing
+@dirrm include/simgear/threads
+@dirrm include/simgear/structure
+@dirrm include/simgear/sound
+@dirrm include/simgear/serial
+@dirrm include/simgear/screen
+@dirrm include/simgear/scene/tgdb
+@dirrm include/simgear/scene/sky
+@dirrm include/simgear/scene/model
+@dirrm include/simgear/scene/material
+@dirrm include/simgear/scene
+@dirrm include/simgear/route
+@dirrm include/simgear/props
+@dirrm include/simgear/nasal
+@dirrm include/simgear/misc
+@dirrm include/simgear/math
+@dirrm include/simgear/magvar
+@dirrm include/simgear/io
+@dirrm include/simgear/ephemeris
+@dirrm include/simgear/environment
+@dirrm include/simgear/debug
+@dirrm include/simgear/bucket
+@dirrm include/simgear
diff --git a/games/simgear/buildlink3.mk b/games/simgear/buildlink3.mk
new file mode 100644
index 00000000000..0a1630d2666
--- /dev/null
+++ b/games/simgear/buildlink3.mk
@@ -0,0 +1,23 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+SIMGEAR_BUILDLINK3_MK:= ${SIMGEAR_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= simgear
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nsimgear}
+BUILDLINK_PACKAGES+= simgear
+
+.if !empty(SIMGEAR_BUILDLINK3_MK:M+)
+BUILDLINK_API_DEPENDS.simgear+= simgear>=0.3.4
+BUILDLINK_PKGSRCDIR.simgear?= ../../games/simgear
+BUILDLINK_DEPMETHOD.simgear?= build
+.endif # SIMGEAR_BUILDLINK3_MK
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../games/plib/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/games/simgear/distinfo b/games/simgear/distinfo
new file mode 100644
index 00000000000..c24ed2534cc
--- /dev/null
+++ b/games/simgear/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
+
+SHA1 (SimGear-0.3.10.tar.gz) = 83e8435b52463fdb2736ccb2f0e42b572528131f
+RMD160 (SimGear-0.3.10.tar.gz) = 11bfb77efab7562f14c9bc0688f99af9a45f4c81
+Size (SimGear-0.3.10.tar.gz) = 752225 bytes
+SHA1 (patch-aa) = 7bfffa44809919a9e8fc8239e8501c5a3d62dd0a
+SHA1 (patch-ab) = 9df1dbe00731e95e561d9d2e5a3eaaada79693ef
+SHA1 (patch-ac) = 0c3b22ab6cd2e3093e66f2fafd1b2bfcb57fe425
+SHA1 (patch-ad) = ebe7a273a53a527299c44774ee989d99b780c6b0
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;
+ }