git: 1588865b218d - main - games/freeorion: fix build with boost 1.76
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue Jun 1 17:38:01 UTC 2021
The branch main has been updated by amdmi3:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1588865b218de69d8583bb0f9f98167e99c42d41
commit 1588865b218de69d8583bb0f9f98167e99c42d41
Author: Dmitry Marakasov <amdmi3 at FreeBSD.org>
AuthorDate: 2021-05-31 18:09:19 +0000
Commit: Dmitry Marakasov <amdmi3 at FreeBSD.org>
CommitDate: 2021-06-01 17:34:50 +0000
games/freeorion: fix build with boost 1.76
---
.../patch-UI_CombatReport_GraphicalSummary.cpp | 21 +++++++++++++++++++++
games/freeorion/files/patch-universe_Conditions.cpp | 11 +++++++++++
2 files changed, 32 insertions(+)
diff --git a/games/freeorion/files/patch-UI_CombatReport_GraphicalSummary.cpp b/games/freeorion/files/patch-UI_CombatReport_GraphicalSummary.cpp
new file mode 100644
index 000000000000..4947e31e7220
--- /dev/null
+++ b/games/freeorion/files/patch-UI_CombatReport_GraphicalSummary.cpp
@@ -0,0 +1,21 @@
+Change similar to upstream commit 9cc1926e8126163d3b8877c0112e11c462a96384:
+remove unused code to fix build with boost 1.76
+
+--- UI/CombatReport/GraphicalSummary.cpp.orig 2020-09-25 11:06:39 UTC
++++ UI/CombatReport/GraphicalSummary.cpp
+@@ -409,6 +409,7 @@ class SideBar : public GG::Wnd { (public)
+ m_y_axis_label->MoveTo(GG::Pt(-m_y_axis_label->MinUsableSize().x / 2 - AXIS_WIDTH, Height()/2 - m_y_axis_label->Height()/2));
+ }
+
++ /*
+ void DrawArrow(GG::Pt begin, GG::Pt end) {
+ double head_width = 5.0;
+ // A vector (math) of the arrow we wish to draw
+@@ -493,6 +494,7 @@ class SideBar : public GG::Wnd { (public)
+ DrawArrow(begin, x_end);
+ DrawArrow(begin, y_end);
+ }
++ */
+
+ void SizeMove(const GG::Pt& ul, const GG::Pt& lr) override {
+ GG::Wnd::SizeMove(ul, lr);
diff --git a/games/freeorion/files/patch-universe_Conditions.cpp b/games/freeorion/files/patch-universe_Conditions.cpp
new file mode 100644
index 000000000000..9b5737aea98f
--- /dev/null
+++ b/games/freeorion/files/patch-universe_Conditions.cpp
@@ -0,0 +1,11 @@
+--- universe/Conditions.cpp.orig 2020-09-25 11:06:39 UTC
++++ universe/Conditions.cpp
+@@ -32,6 +32,8 @@
+ #include <boost/graph/adjacency_list.hpp>
+ #include <boost/graph/st_connected.hpp>
+
++#include <cfloat> // for FLT_MAX
++
+
+ using boost::io::str;
+
More information about the dev-commits-ports-all
mailing list