diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2018-06-22 21:01:26 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2018-06-22 21:01:26 +0800 |
commit | 97ea0caf7b1bdc590f059762d60fd099d6359c45 (patch) | |
tree | 8945f5073e8ce29923fee6509a279ecf0567418e /games | |
parent | cb00dbbdc439db4c8cb26c5d6efa2196ba4f193d (diff) | |
download | freebsd-ports-gnome-97ea0caf7b1bdc590f059762d60fd099d6359c45.tar.gz freebsd-ports-gnome-97ea0caf7b1bdc590f059762d60fd099d6359c45.tar.zst freebsd-ports-gnome-97ea0caf7b1bdc590f059762d60fd099d6359c45.zip |
- Fix build with clang 6
Diffstat (limited to 'games')
-rw-r--r-- | games/construo/files/patch-src_command__line.cpp | 20 | ||||
-rw-r--r-- | games/construo/files/patch-src_construo.hpp | 11 | ||||
-rw-r--r-- | games/construo/files/patch-src_world__gui_manager.cpp | 11 |
3 files changed, 42 insertions, 0 deletions
diff --git a/games/construo/files/patch-src_command__line.cpp b/games/construo/files/patch-src_command__line.cpp new file mode 100644 index 000000000000..c5810ac83a12 --- /dev/null +++ b/games/construo/files/patch-src_command__line.cpp @@ -0,0 +1,20 @@ +--- src/command_line.cpp.orig 2015-03-24 17:13:41 UTC ++++ src/command_line.cpp +@@ -118,7 +118,7 @@ CommandLine::parse (int argc, char** arg + void + CommandLine::print_help () + { +- std::cout << "Construo "VERSION"\n\n" ++ std::cout << "Construo " VERSION "\n\n" + << "Usage: construo [OPTIONS] [FILENAME]\n\n" + << " -h, --help display this help text\n" + << " -v,--version Print version number of the programm\n" +@@ -135,7 +135,7 @@ CommandLine::print_help () + void + CommandLine::print_version () + { +- std::cout << "Construo "VERSION"\n" ++ std::cout << "Construo " VERSION "\n" + << "Written by Ingo Ruhnke <grumbel@gmx.de>\n\n" + << "Copyright (C) 2002 Ingo Ruhnke <grumbel@gmx.de>\n" + << "This is free software; see the source for copying conditions. There is NO\n" diff --git a/games/construo/files/patch-src_construo.hpp b/games/construo/files/patch-src_construo.hpp new file mode 100644 index 000000000000..99f0bd621783 --- /dev/null +++ b/games/construo/files/patch-src_construo.hpp @@ -0,0 +1,11 @@ +--- src/construo.hpp.orig 2015-03-24 17:13:41 UTC ++++ src/construo.hpp +@@ -19,7 +19,7 @@ + + #include <config.h> + +-#define CONSTRUO_DATADIR DATADIR"/games/"PACKAGE ++#define CONSTRUO_DATADIR DATADIR "/games/" PACKAGE + + class SystemContext; + class InputContext; diff --git a/games/construo/files/patch-src_world__gui_manager.cpp b/games/construo/files/patch-src_world__gui_manager.cpp new file mode 100644 index 000000000000..d39068dcdb3f --- /dev/null +++ b/games/construo/files/patch-src_world__gui_manager.cpp @@ -0,0 +1,11 @@ +--- src/world_gui_manager.cpp.orig 2015-03-24 17:13:41 UTC ++++ src/world_gui_manager.cpp +@@ -273,7 +273,7 @@ WorldGUIManager::draw_overlay () + graphic_context->draw_string (410, bottom_line, "Zoom: "); + graphic_context->draw_string (480, bottom_line, to_string(WorldViewComponent::instance()->get_zoom())); + +- graphic_context->draw_string (610, bottom_line, "..:: Construo V"VERSION" ::.."); ++ graphic_context->draw_string (610, bottom_line, "..:: Construo V" VERSION " ::.."); + //graphic_context->draw_string (680, bottom_line, to_string(WorldViewComponent::instance()->get_zoom())); + } + |