aboutsummaryrefslogtreecommitdiff
path: root/games/flightgear
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2006-04-07 20:28:45 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2006-04-07 20:28:45 +0000
commitfa9a9cd603c77d0c24a520315fde2f48b06154e5 (patch)
tree4af74f0ba31030f3f8afbd4982ab677f47862e54 /games/flightgear
parent6b11bbcf2f60017c69d9be58fc759f6e94702088 (diff)
downloadports-fa9a9cd603c77d0c24a520315fde2f48b06154e5.tar.gz
ports-fa9a9cd603c77d0c24a520315fde2f48b06154e5.zip
Notes
Diffstat (limited to 'games/flightgear')
-rw-r--r--games/flightgear/Makefile15
-rw-r--r--games/flightgear/distinfo6
-rw-r--r--games/flightgear/files/patch-cstdio81
-rw-r--r--games/flightgear/files/patch-src_Airports_simple.hxx10
-rw-r--r--games/flightgear/files/patch-src_Main_bootstrap.cxx20
-rw-r--r--games/flightgear/files/patch-src_Main_metar__main.cxx10
-rw-r--r--games/flightgear/files/patch-src_Main_renderer.cxx11
-rw-r--r--games/flightgear/files/patch-src_Network_ATC-Inputs.cxx15
-rw-r--r--games/flightgear/files/patch-src_Network_ATC-Outputs.cxx18
-rw-r--r--games/flightgear/pkg-plist2
10 files changed, 15 insertions, 173 deletions
diff --git a/games/flightgear/Makefile b/games/flightgear/Makefile
index cf8e64175fcb..b0a1ca82c36d 100644
--- a/games/flightgear/Makefile
+++ b/games/flightgear/Makefile
@@ -7,8 +7,7 @@
PORTNAME?= FlightGear
PORTVERSION?= ${FGVERSION}
-PORTREVISION= 1
-PORTREVISION?= 1
+PORTREVISION?= 0
CATEGORIES= games
MASTER_SITES+= ftp://ftp.flightgear.org/pub/fgfs/Source/:fg \
ftp://ftp.de.flightgear.org/pub/fgfs/Source/:fg
@@ -25,11 +24,10 @@ RUN_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \
${X11BASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear \
${X11BASE}/share/FlightGear/version:${PORTSDIR}/games/fgfs-base
-FGVERSION= 0.9.9
+FGVERSION= 0.9.10
USE_X_PREFIX= yes
USE_GL= yes
-USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
@@ -41,11 +39,18 @@ CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
MAN1= est-epsilon.1 fgfs.1 fgjs.1 gl-info.1 js_demo.1 pstest.1
.endif
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+IGNORE= does not build on FreeBSD 4.x
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-D_REENTRANT|${PTHREAD_CFLAGS}|' \
${WRKSRC}/configure
post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/utils/js_server/js_server ${PREFIX}/bin
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/games/flightgear/distinfo b/games/flightgear/distinfo
index eb875fd33bf1..f149c81ddb4f 100644
--- a/games/flightgear/distinfo
+++ b/games/flightgear/distinfo
@@ -1,3 +1,3 @@
-MD5 (FlightGear-0.9.9.tar.gz) = c1bff0cc9eda34f2a31ec9cd4e5216e6
-SHA256 (FlightGear-0.9.9.tar.gz) = 46597145e087d116e479bf9048c06a0c84107ebda62420d783104831e4775c6a
-SIZE (FlightGear-0.9.9.tar.gz) = 1771791
+MD5 (FlightGear-0.9.10.tar.gz) = f4b89c9cafc18d56beab77a04f1ebdce
+SHA256 (FlightGear-0.9.10.tar.gz) = 6307ad26e4141d27dcd66962f9c8e117206197a468b4f8bc99a6a31deb2e4992
+SIZE (FlightGear-0.9.10.tar.gz) = 2072135
diff --git a/games/flightgear/files/patch-cstdio b/games/flightgear/files/patch-cstdio
deleted file mode 100644
index 219659afa994..000000000000
--- a/games/flightgear/files/patch-cstdio
+++ /dev/null
@@ -1,81 +0,0 @@
---- src/FDM/JSBSim/FGEngine.cpp.orig Sat May 7 15:55:16 2005
-+++ src/FDM/JSBSim/FGEngine.cpp Sat May 7 15:57:56 2005
-@@ -52,6 +52,7 @@
- # include <fstream>
- # endif
- #endif
-+#include <cstdio>
-
- #include "FGEngine.h"
- #include "FGTank.h"
---- src/FDM/JSBSim/FGFCS.cpp.orig Sat May 7 15:55:16 2005
-+++ src/FDM/JSBSim/FGFCS.cpp Sat May 7 15:57:43 2005
-@@ -36,6 +36,7 @@
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- INCLUDES
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-+#include <cstdio>
-
- #include "FGFCS.h"
- #include "FGFDMExec.h"
---- src/FDM/JSBSim/FGNozzle.cpp.orig Sat May 7 15:55:16 2005
-+++ src/FDM/JSBSim/FGNozzle.cpp Sat May 7 15:57:32 2005
-@@ -36,6 +36,7 @@
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-
- #include <sstream>
-+#include <cstdio>
-
- #include "FGNozzle.h"
- #include "FGAtmosphere.h"
---- src/FDM/JSBSim/FGPropeller.cpp.orig Sat May 7 15:55:16 2005
-+++ src/FDM/JSBSim/FGPropeller.cpp Sat May 7 15:57:23 2005
-@@ -36,6 +36,7 @@
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-
- #include <sstream>
-+#include <cstdio>
-
- #include "FGPropeller.h"
- #include "FGPropagate.h"
---- src/FDM/JSBSim/FGState.cpp.orig Sat May 7 15:55:16 2005
-+++ src/FDM/JSBSim/FGState.cpp Sat May 7 15:57:13 2005
-@@ -51,6 +51,8 @@
- //#define snprintf _snprintf
- #endif
-
-+#include <cstdio>
-+
- #include "FGState.h"
-
- namespace JSBSim {
---- src/FDM/JSBSim/FGThruster.cpp.orig Sat May 7 15:55:16 2005
-+++ src/FDM/JSBSim/FGThruster.cpp Sat May 7 15:56:47 2005
-@@ -36,6 +36,7 @@
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-
- #include <sstream>
-+#include <cstdio>
-
- #include "FGThruster.h"
-
---- src/FDM/JSBSim/FGTrim.cpp.orig Sat May 7 15:55:16 2005
-+++ src/FDM/JSBSim/FGTrim.cpp Sat May 7 15:56:25 2005
-@@ -45,6 +45,7 @@
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-
- #include <stdlib.h>
-+#include <cstdio>
-
- #include "FGFDMExec.h"
- #include "FGAtmosphere.h"
---- src/FDM/JSBSim/FGTurbine.cpp.orig Sat May 7 15:55:16 2005
-+++ src/FDM/JSBSim/FGTurbine.cpp Sat May 7 15:56:36 2005
-@@ -41,6 +41,7 @@
-
- #include <vector>
- #include <sstream>
-+#include <cstdio>
-
- #include "FGTurbine.h"
-
diff --git a/games/flightgear/files/patch-src_Airports_simple.hxx b/games/flightgear/files/patch-src_Airports_simple.hxx
deleted file mode 100644
index db875e37d9c0..000000000000
--- a/games/flightgear/files/patch-src_Airports_simple.hxx
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/Airports/simple.hxx.orig Sun Nov 20 18:54:27 2005
-+++ src/Airports/simple.hxx Sun Nov 20 18:54:43 2005
-@@ -36,6 +36,7 @@
- #ifdef HAVE_CONFIG_H
- # include <config.h>
- #endif
-+#include <time.h>
- #include <simgear/math/point3d.hxx>
- #include <simgear/route/waypoint.hxx>
- #include <simgear/compiler.h>
diff --git a/games/flightgear/files/patch-src_Main_bootstrap.cxx b/games/flightgear/files/patch-src_Main_bootstrap.cxx
deleted file mode 100644
index f805515f1eb0..000000000000
--- a/games/flightgear/files/patch-src_Main_bootstrap.cxx
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/Main/bootstrap.cxx.orig Thu Sep 15 20:48:39 2005
-+++ src/Main/bootstrap.cxx Thu Sep 15 20:51:05 2005
-@@ -28,6 +28,8 @@
- #if defined(__linux__) && defined(__i386__)
- # include <fpu_control.h>
- # include <signal.h>
-+#elif defined(__FreeBSD__)
-+# include <signal.h>
- #endif
-
- #include <stdlib.h>
-@@ -144,6 +146,8 @@
- // Enable floating-point exceptions for Linux/x86
- #if defined(__linux__) && defined(__i386__)
- initFPE();
-+#elif defined(__FreeBSD__)
-+ signal(SIGFPE, SIG_IGN);
- #endif
-
- #if defined(sgi)
diff --git a/games/flightgear/files/patch-src_Main_metar__main.cxx b/games/flightgear/files/patch-src_Main_metar__main.cxx
deleted file mode 100644
index 5cb1cd8edc24..000000000000
--- a/games/flightgear/files/patch-src_Main_metar__main.cxx
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/Main/metar_main.cxx.orig Sun Nov 20 19:38:38 2005
-+++ src/Main/metar_main.cxx Sun Nov 20 19:39:05 2005
-@@ -20,6 +20,7 @@
- //
- // $Id: metar_main.cxx,v 1.10 2005/10/25 16:28:46 ehofman Exp $
-
-+#include <time.h>
- #include <iomanip>
- #include <sstream>
- #include <string.h>
diff --git a/games/flightgear/files/patch-src_Main_renderer.cxx b/games/flightgear/files/patch-src_Main_renderer.cxx
deleted file mode 100644
index 29f4a710a069..000000000000
--- a/games/flightgear/files/patch-src_Main_renderer.cxx
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/Main/renderer.cxx.orig Sun Nov 20 19:23:36 2005
-+++ src/Main/renderer.cxx Sun Nov 20 19:28:43 2005
-@@ -122,7 +122,7 @@
- FGRenderer::FGRenderer()
- {
- #ifdef FG_JPEG_SERVER
-- jpgRenderFrame = FGRenderer::update;
-+ jpgRenderFrame = &FGRenderer::update;
- #endif
- }
-
diff --git a/games/flightgear/files/patch-src_Network_ATC-Inputs.cxx b/games/flightgear/files/patch-src_Network_ATC-Inputs.cxx
deleted file mode 100644
index 77117453f87f..000000000000
--- a/games/flightgear/files/patch-src_Network_ATC-Inputs.cxx
+++ /dev/null
@@ -1,15 +0,0 @@
---- src/Network/ATC-Inputs.cxx.orig Sun Nov 20 19:02:57 2005
-+++ src/Network/ATC-Inputs.cxx Sun Nov 20 19:05:33 2005
-@@ -32,7 +32,11 @@
- # include <sys/stat.h>
- # include <fcntl.h>
- # include <unistd.h>
--# include <istream>
-+# ifdef SG_HAVE_STD_INCLUDES
-+# include <istream>
-+# else
-+# include <istream.h>
-+# endif
- #endif
-
- #include <errno.h>
diff --git a/games/flightgear/files/patch-src_Network_ATC-Outputs.cxx b/games/flightgear/files/patch-src_Network_ATC-Outputs.cxx
deleted file mode 100644
index c7e213e9bdef..000000000000
--- a/games/flightgear/files/patch-src_Network_ATC-Outputs.cxx
+++ /dev/null
@@ -1,18 +0,0 @@
---- src/Network/ATC-Outputs.cxx.orig Sun Nov 20 19:14:22 2005
-+++ src/Network/ATC-Outputs.cxx Sun Nov 20 19:14:47 2005
-@@ -32,7 +32,6 @@
- # include <sys/stat.h>
- # include <fcntl.h>
- # include <unistd.h>
--# include <ostream>
- #endif
-
- #include <errno.h>
-@@ -47,6 +46,7 @@
-
- #include "ATC-Outputs.hxx"
-
-+SG_USING_STD(ostream);
- SG_USING_STD(string);
-
-
diff --git a/games/flightgear/pkg-plist b/games/flightgear/pkg-plist
index c3e8c1cd3b4b..305be2baeb74 100644
--- a/games/flightgear/pkg-plist
+++ b/games/flightgear/pkg-plist
@@ -1,8 +1,10 @@
+bin/al-info
bin/est-epsilon
bin/fgfs
bin/fgjs
bin/gl-info
bin/js_demo
+bin/js_server
bin/metar
bin/terrasync
bin/yasim