Sun Sep 30 10:04:33 2012 UTC ()
Update to 2.8.0. Switches build system to cmake.

August 17, 2012 -- FlightGear v2.8.0 is Released

The FlightGear development team is happy to announce the v2.8.0
release of FlightGear, the free, open-source flight simulator. This
new version contains many exciting new features, enhancements and
bugfixes.

V2.8.0 includes improvements making FlightGear world more realistic
than ever before.  Placement of random buildings and trees match the
underlying terrain texture, and urban areas now have denser random
buildings.  Textures can be region specific, and users can select
between summer and winter textures in-sim.  An improved atmospheric
scattering and terrain haze model means the lighting of the terrain is
more realistic.  Finally, a new automated system is now available for
scenery submissions that automatically get rolled into the scenery
distribution to be enjoyed by everyone.

[...]

Some of the major changes include:

AI Traffic

    Improved aircraft models and textures.

Flight dynamics

    FlightGear has been synced with the JSBSim project.

Environment

    Region-specific terrain textures are used for Europe and Hawaii.
Now towns in Europe look different from towns in the USA.

    Cities and towns now look more populated due to random 3D
buildings, complete with lighting at night.
    Scenery looks more realistic due to improved placement of random
objects, buildings and trees.
    Airport signs are now rendered in 3D, with support for
double-sided signs. Full apt.dat 850 syntax is supported.
    You can now select between summer and winter scenery in-sim.

Instruments & HUDs

    A new flexible, 2D rendering system designed for complex
instruments such as CDUs, MFDs, EICAS, HUDs and other glass cockpit
interfaces. Canvas allows aircraft designers to easily build complex
instruments without needing specialized C++ code.

Interface

    Support for translation of the main menu into languages other than
English.
    A Nasal API is available allowing access to Navigation and
route-manager data.

Highlighted new and improved aircraft

    Airwave Xtreme 150: complete new (JSBSim) flight dynamics, new
model, advanced pilot animations.
    Cessna 337G Skymaster

Project infrastructure

    Various improvements to our scenery database make it easier than
ever to add, delete or update objects to the FlightGear world.
    The new aircraft download page allows you to easily find quality
aircraft, by filtering on status indications.

Visual effects

    Improved simulation of atmospheric light scattering with terrain
haze.
    An experimental renderer, named after the famous painter
Rembrandt, is included for testing purposes. The Rembrandt rendered
supports multiple light sources (landing lights, instrument lights),
real-time shadows and ambient occlusion across aircraft and scenery
for a much more realistic visual experience.

Other

    Additional joysticks and rudder pedals are supported out-of-the-box:
        InterLink Elite
        Micorosft Xbox 360 Controller
        Qware USB
        Saitek Cyborg X (F.L.Y. 5)
        Saitek Pro Flight Cessna Yoke
        Saitek Pro Flight Cessna Trim Wheel
        Saitek Pro Flight Cessna Rudder Pedals
        Speedlink Defender
    A French partial translation of The FlightGear Manual is now available.

Bug fixes

    See our bugtracker for an extensive list of the bugs fixed in this release.


(dholland)
diff -r1.26 -r1.27 pkgsrc/games/flightgear/Makefile
diff -r1.2 -r1.3 pkgsrc/games/flightgear/PLIST
diff -r1.3 -r1.4 pkgsrc/games/flightgear/distinfo
diff -r0 -r1.1 pkgsrc/games/flightgear/patches/patch-CMakeModules_FindPLIB_cmake
diff -r0 -r1.1 pkgsrc/games/flightgear/patches/patch-src_Canvas_ShivaVG_src_shConfig_h
diff -r0 -r1.1 pkgsrc/games/flightgear/patches/patch-src_Main_locale_cxx
diff -r0 -r1.1 pkgsrc/games/flightgear/patches/patch-src_Network_ATC-Inputs_cxx
diff -r0 -r1.1 pkgsrc/games/flightgear/patches/patch-src_Network_ATC-Outputs_cxx
diff -r0 -r1.1 pkgsrc/games/flightgear/patches/patch-utils_TerraSync_terrasync_cxx
diff -r1.2 -r0 pkgsrc/games/flightgear/patches/patch-aa

cvs diff -r1.26 -r1.27 pkgsrc/games/flightgear/Makefile (expand / switch to unified diff)

--- pkgsrc/games/flightgear/Makefile 2012/09/30 01:58:19 1.26
+++ pkgsrc/games/flightgear/Makefile 2012/09/30 10:04:33 1.27
@@ -1,37 +1,34 @@ @@ -1,37 +1,34 @@
1# $NetBSD: Makefile,v 1.26 2012/09/30 01:58:19 dholland Exp $ 1# $NetBSD: Makefile,v 1.27 2012/09/30 10:04:33 dholland Exp $
2 2
3DISTNAME= FlightGear-2.0.0 3DISTNAME= flightgear-2.8.0
4PKGNAME= ${DISTNAME:tl} 
5PKGREVISION= 13 
6CATEGORIES= games 4CATEGORIES= games
7MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Source/ \ 5MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Source/ \
8 http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/ \ 6 http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/ \
9 ftp://ftp.kingmont.com/flightsims/flightgear/Source/ 7 ftp://ftp.kingmont.com/flightsims/flightgear/Source/
 8EXTRACT_SUFX= .tar.bz2
10 9
11MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
12HOMEPAGE= http://www.flightgear.org/ 11HOMEPAGE= http://www.flightgear.org/
13COMMENT= The FlightGear Simulator 12COMMENT= The FlightGear Simulator
14LICENSE= gnu-gpl-v2 13LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1
15 14
16PKG_DESTDIR_SUPPORT= user-destdir 15PKG_DESTDIR_SUPPORT= user-destdir
17 16
18BROKEN= Must be updated to match simgear. 
19 
20USE_LANGUAGES= c c++ 17USE_LANGUAGES= c c++
21USE_PKGLOCALEDIR= yes 18USE_PKGLOCALEDIR= yes
22GNU_CONFIGURE= yes 19USE_CMAKE= yes
23CONFIGURE_ARGS+= --enable-sdl 20CMAKE_ARGS+= -DJPEG_FACTORY:BOOL=ON
24CONFIGURE_ARGS+= --with-threads 21CMAKE_ARGS+= -DCMAKE_INSTALL_MANDIR=${PKGMANDIR}
25 22
 23.include "../../mk/jpeg.buildlink3.mk"
26.include "../../audio/freealut/buildlink3.mk" 24.include "../../audio/freealut/buildlink3.mk"
27.include "../../audio/openal/buildlink3.mk" 25.include "../../audio/openal/buildlink3.mk"
28.include "../../devel/SDL/buildlink3.mk" 26.include "../../devel/SDL/buildlink3.mk"
29.include "../../devel/boost-headers/buildlink3.mk" 27.include "../../devel/boost-headers/buildlink3.mk"
30.include "../../games/plib/buildlink3.mk" 28.include "../../games/plib/buildlink3.mk"
31BUILDLINK_API_DEPENDS.simgear+= simgear>=2.0.0 29BUILDLINK_API_DEPENDS.simgear+= simgear>=2.0.0
32.include "../../games/simgear/buildlink3.mk" 30.include "../../games/simgear/buildlink3.mk"
33.include "../../graphics/glut/buildlink3.mk" 31.include "../../graphics/glut/buildlink3.mk"
34.include "../../mk/jpeg.buildlink3.mk" 
35.include "../../graphics/osg/buildlink3.mk" 32.include "../../graphics/osg/buildlink3.mk"
36.include "../../mk/pthread.buildlink3.mk" 33.include "../../mk/pthread.buildlink3.mk"
37.include "../../mk/bsd.pkg.mk" 34.include "../../mk/bsd.pkg.mk"

cvs diff -r1.2 -r1.3 pkgsrc/games/flightgear/PLIST (expand / switch to unified diff)

--- pkgsrc/games/flightgear/PLIST 2010/08/27 07:54:22 1.2
+++ pkgsrc/games/flightgear/PLIST 2012/09/30 10:04:33 1.3
@@ -1,17 +1,19 @@ @@ -1,17 +1,19 @@
1@comment $NetBSD: PLIST,v 1.2 2010/08/27 07:54:22 adam Exp $ 1@comment $NetBSD: PLIST,v 1.3 2012/09/30 10:04:33 dholland Exp $
2bin/alcinfo 2bin/GPSsmooth
3bin/est-epsilon 3bin/MIDGsmooth
 4bin/UGsmooth
4bin/fgfs 5bin/fgfs
5bin/fgjs 6bin/fgjs
 7bin/fgpanel
6bin/fgviewer 8bin/fgviewer
7bin/gl-info 
8bin/js_demo 9bin/js_demo
9bin/metar 10bin/metar
10bin/terrasync 11bin/terrasync
11bin/yasim 12bin/yasim
12man/man1/est-epsilon.1 13bin/yasim-proptest
13man/man1/fgfs.1 14man/man1/fgfs.1
14man/man1/fgjs.1 15man/man1/fgjs.1
 16man/man1/fgpanel.1
15man/man1/gl-info.1 17man/man1/gl-info.1
16man/man1/js_demo.1 18man/man1/js_demo.1
17man/man1/pstest.1 19man/man1/terrasync.1

cvs diff -r1.3 -r1.4 pkgsrc/games/flightgear/distinfo (expand / switch to unified diff)

--- pkgsrc/games/flightgear/distinfo 2010/08/27 07:54:22 1.3
+++ pkgsrc/games/flightgear/distinfo 2012/09/30 10:04:33 1.4
@@ -1,6 +1,11 @@ @@ -1,6 +1,11 @@
1$NetBSD: distinfo,v 1.3 2010/08/27 07:54:22 adam Exp $ 1$NetBSD: distinfo,v 1.4 2012/09/30 10:04:33 dholland Exp $
2 2
3SHA1 (FlightGear-2.0.0.tar.gz) = 666d7a165e121feaabd2235959f5ed853ee88126 3SHA1 (flightgear-2.8.0.tar.bz2) = fee4b2f1f6aca8e163ea018ae9897b99971c20bd
4RMD160 (FlightGear-2.0.0.tar.gz) = 0b7cd19c5f4413c82bc9e7e17cd423f823e03607 4RMD160 (flightgear-2.8.0.tar.bz2) = 97d8f572aeb186bfed27eb5b06803a0fa5213a61
5Size (FlightGear-2.0.0.tar.gz) = 2425099 bytes 5Size (flightgear-2.8.0.tar.bz2) = 2311023 bytes
6SHA1 (patch-aa) = 5efea4534eb54f8eaf0c569add5f697509ad1e8c 6SHA1 (patch-CMakeModules_FindPLIB_cmake) = c5761d425743761f5f0c711ef2ca384a06f6d524
 7SHA1 (patch-src_Canvas_ShivaVG_src_shConfig_h) = bd70a1e41a59196e31789e38ec67e65cef546edf
 8SHA1 (patch-src_Main_locale_cxx) = 327f4103ff3aea60f2394a2ed192c5f6af36f60b
 9SHA1 (patch-src_Network_ATC-Inputs_cxx) = 08644c682ddddcefea48aa84fa538b8fd20289c0
 10SHA1 (patch-src_Network_ATC-Outputs_cxx) = d5367f8536988b2705b2ba4f8d86e28576b04648
 11SHA1 (patch-utils_TerraSync_terrasync_cxx) = 48855911a5052301f2c7a449ac8ff14ada9ae8ea

File Added: pkgsrc/games/flightgear/patches/Attic/patch-CMakeModules_FindPLIB_cmake
$NetBSD: patch-CMakeModules_FindPLIB_cmake,v 1.1 2012/09/30 10:04:33 dholland Exp $

Recognize BSDs other than FreeBSD.

--- CMakeModules/FindPLIB.cmake~	2012-08-16 14:20:57.000000000 +0000
+++ CMakeModules/FindPLIB.cmake
@@ -169,6 +169,18 @@ if(${haveJs} GREATER -1)
         find_library(USBHID_LIBRARY usbhid)
         # check_function_exists(hidinit)
         set(JS_LIBS ${USBHID_LIBRARY})
+    elseif(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
+        find_library(USBHID_LIBRARY usbhid)
+        # check_function_exists(hidinit)
+        set(JS_LIBS ${USBHID_LIBRARY})
+    elseif(CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
+        find_library(USBHID_LIBRARY usbhid)
+        # check_function_exists(hidinit)
+        set(JS_LIBS ${USBHID_LIBRARY})
+    elseif(CMAKE_SYSTEM_NAME MATCHES "DragonFly")
+        find_library(USBHID_LIBRARY usbhid)
+        # check_function_exists(hidinit)
+        set(JS_LIBS ${USBHID_LIBRARY})
     else()
         message(WARNING "Unsupported platform for PLIB JS libs")
     endif()

File Added: pkgsrc/games/flightgear/patches/Attic/patch-src_Canvas_ShivaVG_src_shConfig_h
$NetBSD: patch-src_Canvas_ShivaVG_src_shConfig_h,v 1.1 2012/09/30 10:04:33 dholland Exp $

This sublibrary insists on being able to work out its OS type, and
only knows a few, even though it uses the results for just about
nothing. So give it some crayons to play with.

--- src/Canvas/ShivaVG/src/shConfig.h~	2012-08-16 14:20:56.000000000 +0000
+++ src/Canvas/ShivaVG/src/shConfig.h
@@ -34,7 +34,8 @@
 #else
 
     // Unsupported system
-    #error This operating system is not supported by SFML library
+    //#error This operating system is not supported by SFML library
+    #define VG_API_OTHER
 
 #endif
 

File Added: pkgsrc/games/flightgear/patches/Attic/patch-src_Main_locale_cxx
$NetBSD: patch-src_Main_locale_cxx,v 1.1 2012/09/30 10:04:33 dholland Exp $

Use standard headers.

--- src/Main/locale.cxx~	2012-08-16 14:20:56.000000000 +0000
+++ src/Main/locale.cxx
@@ -20,6 +20,8 @@
 
 #ifdef HAVE_WINDOWS_H
 #include <windows.h>
+#else
+#include <cstdlib>
 #endif
 
 #include <simgear/props/props_io.hxx>

File Added: pkgsrc/games/flightgear/patches/Attic/patch-src_Network_ATC-Inputs_cxx
$NetBSD: patch-src_Network_ATC-Inputs_cxx,v 1.1 2012/09/30 10:04:33 dholland Exp $

Fix build failure.

--- src/Network/ATC-Inputs.cxx~	2012-08-16 14:20:57.000000000 +0000
+++ src/Network/ATC-Inputs.cxx
@@ -27,14 +27,14 @@
 
 #include <simgear/compiler.h>
 
-#if defined( unix ) || defined( __CYGWIN__ )
+//#if defined( unix ) || defined( __CYGWIN__ )
 #  include <sys/types.h>
 #  include <sys/stat.h>
 #  include <fcntl.h>
 #  include <stdlib.h>
 #  include <unistd.h>
 #  include <istream>
-#endif
+//#endif
 
 #include <errno.h>
 #include <math.h>

File Added: pkgsrc/games/flightgear/patches/Attic/patch-src_Network_ATC-Outputs_cxx
$NetBSD: patch-src_Network_ATC-Outputs_cxx,v 1.1 2012/09/30 10:04:33 dholland Exp $

Fix build failure.

--- src/Network/ATC-Outputs.cxx~	2012-08-16 14:20:57.000000000 +0000
+++ src/Network/ATC-Outputs.cxx
@@ -27,14 +27,14 @@
 
 #include <simgear/compiler.h>
 
-#if defined( unix ) || defined( __CYGWIN__ )
+//#if defined( unix ) || defined( __CYGWIN__ )
 #  include <sys/types.h>
 #  include <sys/stat.h>
 #  include <fcntl.h>
 #  include <stdlib.h>
 #  include <unistd.h>
 #  include <ostream>
-#endif
+//#endif
 
 #include <errno.h>
 #include <math.h>

File Added: pkgsrc/games/flightgear/patches/Attic/patch-utils_TerraSync_terrasync_cxx
$NetBSD: patch-utils_TerraSync_terrasync_cxx,v 1.1 2012/09/30 10:04:33 dholland Exp $

Recognize more BSDs.

--- utils/TerraSync/terrasync.cxx~	2012-08-16 14:20:53.000000000 +0000
+++ utils/TerraSync/terrasync.cxx
@@ -51,7 +51,7 @@
 
 #if defined(_MSC_VER) || defined(__MINGW32__)
     typedef void (__cdecl * sighandler_t)(int);
-#elif defined( __APPLE__ ) || defined (__FreeBSD__)
+#elif defined( __APPLE__ ) || defined (__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
     typedef sig_t sighandler_t;
 #endif
 

File Deleted: pkgsrc/games/flightgear/patches/Attic/patch-aa