summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/flightgear/Makefile2
-rw-r--r--games/flightgear/files/patch-src_Environment_realwx__ctrl.cxx14
-rw-r--r--games/flightgear/files/patch-src_Main_metar__main.cxx14
3 files changed, 29 insertions, 1 deletions
diff --git a/games/flightgear/Makefile b/games/flightgear/Makefile
index 8c7c40580bd3..8e9cb04026f1 100644
--- a/games/flightgear/Makefile
+++ b/games/flightgear/Makefile
@@ -3,7 +3,7 @@
PORTNAME= flightgear
PORTVERSION= 2018.3.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= SF/flightgear/release-${PORTVERSION:R}
diff --git a/games/flightgear/files/patch-src_Environment_realwx__ctrl.cxx b/games/flightgear/files/patch-src_Environment_realwx__ctrl.cxx
new file mode 100644
index 000000000000..34d6f4b6eb58
--- /dev/null
+++ b/games/flightgear/files/patch-src_Environment_realwx__ctrl.cxx
@@ -0,0 +1,14 @@
+# games/flightgear: METAR data won't download
+# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237400
+
+--- src/Environment/realwx_ctrl.cxx.orig 2019-04-20 07:47:41 UTC
++++ src/Environment/realwx_ctrl.cxx
+@@ -426,7 +426,7 @@ void NoaaMetarRealWxController::requestMetar
+ )
+ {
+ static const std::string NOAA_BASE_URL =
+- "http://tgftp.nws.noaa.gov/data/observations/metar/stations/";
++ "https://tgftp.nws.noaa.gov/data/observations/metar/stations/";
+ class NoaaMetarGetRequest:
+ public simgear::HTTP::MemoryRequest
+ {
diff --git a/games/flightgear/files/patch-src_Main_metar__main.cxx b/games/flightgear/files/patch-src_Main_metar__main.cxx
new file mode 100644
index 000000000000..c69f0913d6e4
--- /dev/null
+++ b/games/flightgear/files/patch-src_Main_metar__main.cxx
@@ -0,0 +1,14 @@
+# games/flightgear: METAR data won't download
+# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237400
+
+--- src/Main/metar_main.cxx.orig 2019-04-20 07:48:18 UTC
++++ src/Main/metar_main.cxx
+@@ -539,7 +539,7 @@ int main(int argc, char *argv[])
+ try
+ {
+ static const std::string NOAA_BASE_URL =
+- "http://tgftp.nws.noaa.gov/data/observations/metar/stations/";
++ "https://tgftp.nws.noaa.gov/data/observations/metar/stations/";
+ HTTP::MemoryRequest* mr = new HTTP::MemoryRequest
+ (
+ NOAA_BASE_URL