svn commit: r466542 - in head/games: . flightgear-terragear flightgear-terragear/files

Torsten Zuehlsdorff tz at FreeBSD.org
Thu Apr 5 08:50:42 UTC 2018


Author: tz
Date: Thu Apr  5 08:50:40 2018
New Revision: 466542
URL: https://svnweb.freebsd.org/changeset/ports/466542

Log:
  New port: games/flightgear-terragear
  
  TerraGear is a collection of tools for building scenery for the
  FlightGear project.  Generally, the process is done in two steps:
  
    1. Preprocess the original raw data.  This chops up the data into
       the FG tiling scheme and saves it in a simple, intermediate
       format.
  
    2. Collect all the different pieces of intermediate data and
       assemble them into a 3d model of the terrain.
  
  WWW: https://github.com/FlightGear/terragear
  
  PR:           223648
  Submitted by: Michael Danilov <mike.d.ft402 at gmail.com>

Added:
  head/games/flightgear-terragear/
  head/games/flightgear-terragear/Makefile   (contents, props changed)
  head/games/flightgear-terragear/distinfo   (contents, props changed)
  head/games/flightgear-terragear/files/
  head/games/flightgear-terragear/files/patch-tg_misc.cxx   (contents, props changed)
  head/games/flightgear-terragear/files/patch-tg_shapefile.cxx   (contents, props changed)
  head/games/flightgear-terragear/pkg-descr   (contents, props changed)
  head/games/flightgear-terragear/pkg-plist   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Thu Apr  5 08:42:23 2018	(r466541)
+++ head/games/Makefile	Thu Apr  5 08:50:40 2018	(r466542)
@@ -280,6 +280,7 @@
     SUBDIR += flightgear-aircraft
     SUBDIR += flightgear-data
     SUBDIR += flightgear-mb339-pan
+    SUBDIR += flightgear-terragear
     SUBDIR += flobopuyo
     SUBDIR += flukz
     SUBDIR += flyhard

Added: head/games/flightgear-terragear/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/flightgear-terragear/Makefile	Thu Apr  5 08:50:40 2018	(r466542)
@@ -0,0 +1,32 @@
+# $FreeBSD$
+
+PORTNAME=	flightgear-terragear
+PORTVERSION=	20171007
+CATEGORIES=	games
+
+MAINTAINER=	mike.d.ft402 at gmail.com
+COMMENT=	Tools for building scenery for the FlightGear project
+
+LICENSE=	GPLv2
+
+BUILD_DEPENDS=	${LOCALBASE}/lib/libSimGearCore.a:devel/simgear
+LIB_DEPENDS=	libCGAL.so:math/cgal \
+		libgdal.so:graphics/gdal \
+		libmpfr.so:math/mpfr \
+		libgmp.so:math/gmp \
+		libboost_thread.so:devel/boost-libs \
+		libboost_system.so:devel/boost-libs \
+		libboost_chrono.so:devel/boost-libs \
+		libboost_date_time.so:devel/boost-libs \
+		libboost_atomic.so:devel/boost-libs \
+		libtiff.so:graphics/tiff
+RUN_DEPENDS=	${LOCALBASE}/lib/libSimGearCore.a:devel/simgear
+
+USES=	cmake
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	flightgear
+GH_PROJECT=	terragear
+GH_TAGNAME=	5b5e5fc
+
+.include <bsd.port.mk>

Added: head/games/flightgear-terragear/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/flightgear-terragear/distinfo	Thu Apr  5 08:50:40 2018	(r466542)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1510318229
+SHA256 (flightgear-terragear-20171007-5b5e5fc_GH0.tar.gz) = c590cc233238ce1a85e2270fdaa1eaef753ba5b481f602790b676afb932e6d7d
+SIZE (flightgear-terragear-20171007-5b5e5fc_GH0.tar.gz) = 2615341

Added: head/games/flightgear-terragear/files/patch-tg_misc.cxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/flightgear-terragear/files/patch-tg_misc.cxx	Thu Apr  5 08:50:40 2018	(r466542)
@@ -0,0 +1,20 @@
+--- src/Lib/terragear/tg_misc.cxx.orig	2017-10-07 06:58:20 UTC
++++ src/Lib/terragear/tg_misc.cxx
+@@ -112,8 +112,8 @@
+     ClipperLib::IntPoint min_pt, max_pt;
+     SGGeod min, max;
+ 
+-    min_pt.X = min_pt.Y = LONG_LONG_MAX;
+-    max_pt.X = max_pt.Y = LONG_LONG_MIN;
++    min_pt.X = min_pt.Y = LLONG_MAX;
++    max_pt.X = max_pt.Y = LLONG_MIN;
+ 
+     // for each polygon, we need to check the orientation, to set the hole flag...
+     for (unsigned int i=0; i<subject.size(); i++)
+@@ -377,4 +377,4 @@
+         // handle the no intersection case.
+         return false;
+     }
+-}
+\ No newline at end of file
++}

Added: head/games/flightgear-terragear/files/patch-tg_shapefile.cxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/flightgear-terragear/files/patch-tg_shapefile.cxx	Thu Apr  5 08:50:40 2018	(r466542)
@@ -0,0 +1,11 @@
+--- src/Lib/terragear/tg_shapefile.cxx.orig	2017-10-07 06:58:20 UTC
++++ src/Lib/terragear/tg_shapefile.cxx
+@@ -152,7 +152,7 @@
+     }
+ 
+     // close after each write
+-    if ( ds_id >= 0 ) {
++    if ( ds_id >= (void *)0 ) {
+         ds_id = tgShapefile::CloseDatasource( ds_id );
+     }
+ }

Added: head/games/flightgear-terragear/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/flightgear-terragear/pkg-descr	Thu Apr  5 08:50:40 2018	(r466542)
@@ -0,0 +1,11 @@
+TerraGear is a collection of tools for building scenery for the
+FlightGear project.  Generally, the process is done in two steps:
+
+  1. Preprocess the original raw data.  This chops up the data into
+     the FG tiling scheme and saves it in a simple, intermediate
+     format.
+
+  2. Collect all the different pieces of intermediate data and
+     assemble them into a 3d model of the terrain.
+
+WWW: https://github.com/FlightGear/terragear

Added: head/games/flightgear-terragear/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/flightgear-terragear/pkg-plist	Thu Apr  5 08:50:40 2018	(r466542)
@@ -0,0 +1,14 @@
+bin/demchop
+bin/fillvoids
+bin/gdalchop
+bin/genapts850
+bin/hgtchop
+bin/ogr-decode
+bin/poly2ogr
+bin/srtmchop
+bin/terrafit
+bin/test_array
+bin/testassem
+bin/tg-construct
+share/TerraGear/default_priorities.txt
+share/TerraGear/usgsmap.txt


More information about the svn-ports-head mailing list