diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2013-09-26 22:21:20 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2013-09-26 22:21:20 +0000 |
commit | ce0e18272ab4aa139d7e14c022b2918e2177f273 (patch) | |
tree | a9bc17de9b38bca87f44e1d066f0b26c95bc4760 /games/0ad/files | |
parent | 4f046358f1e8cebee8916ab661917f238c3c6e2b (diff) | |
download | ports-ce0e18272ab4aa139d7e14c022b2918e2177f273.tar.gz ports-ce0e18272ab4aa139d7e14c022b2918e2177f273.zip |
Notes
Diffstat (limited to 'games/0ad/files')
-rw-r--r-- | games/0ad/files/patch-build-premake-premake4.lua | 20 | ||||
-rw-r--r-- | games/0ad/files/patch-source-lib-lib.h | 10 | ||||
-rw-r--r-- | games/0ad/files/patch-source-simulation2-system_ParamNode.cpp | 13 |
3 files changed, 42 insertions, 1 deletions
diff --git a/games/0ad/files/patch-build-premake-premake4.lua b/games/0ad/files/patch-build-premake-premake4.lua index 85d0045ea4e6..5bd59b07522c 100644 --- a/games/0ad/files/patch-build-premake-premake4.lua +++ b/games/0ad/files/patch-build-premake-premake4.lua @@ -1,5 +1,23 @@ --- build/premake/premake4.lua.orig 2013-08-27 04:42:56.000000000 +0200 -+++ build/premake/premake4.lua 2013-09-03 15:32:07.321963983 +0200 ++++ build/premake/premake4.lua 2013-09-17 18:31:17.300814455 +0200 +@@ -39,7 +39,7 @@ + if arch == "x86_64" or arch == "amd64" then + arch = "amd64" + else +- os.execute("gcc -dumpmachine > .gccmachine.tmp") ++ os.execute("%%CC%% -dumpmachine > .gccmachine.tmp") + local f = io.open(".gccmachine.tmp", "r") + local machine = f:read("*line") + f:close() +@@ -91,7 +91,7 @@ + -- do the test in this build script instead (which is kind of ugly - please fix if + -- you have a better idea) + if not _OPTIONS["icc"] then +- os.execute("gcc -dumpversion > .gccver.tmp") ++ os.execute("%%CC%% -dumpversion > .gccver.tmp") + local f = io.open(".gccver.tmp", "r") + major, dot, minor = f:read(1, 1, 1) + f:close() @@ -138,7 +138,7 @@ function project_set_build_flags() diff --git a/games/0ad/files/patch-source-lib-lib.h b/games/0ad/files/patch-source-lib-lib.h new file mode 100644 index 000000000000..f68e772a150d --- /dev/null +++ b/games/0ad/files/patch-source-lib-lib.h @@ -0,0 +1,10 @@ +--- source/lib/lib.h.orig 2013-09-17 20:41:12.887277235 +0200 ++++ source/lib/lib.h 2013-09-17 20:44:34.202282356 +0200 +@@ -63,6 +63,7 @@ + #include <cmath> // fabsf + #include <limits> // numeric_limits + #include <stdexcept> // out_of_range ++#include <algorithm> // std::min, std::max + + template<typename T> + T Clamp(T val, T min, T max) diff --git a/games/0ad/files/patch-source-simulation2-system_ParamNode.cpp b/games/0ad/files/patch-source-simulation2-system_ParamNode.cpp new file mode 100644 index 000000000000..aafbb94c4d30 --- /dev/null +++ b/games/0ad/files/patch-source-simulation2-system_ParamNode.cpp @@ -0,0 +1,13 @@ +--- source/simulation2/system/ParamNode.cpp.orig 2013-09-26 18:21:33.000000000 +0200 ++++ source/simulation2/system/ParamNode.cpp 2013-09-26 18:22:57.000000000 +0200 +@@ -37,6 +37,10 @@ + #include <boost/algorithm/string.hpp> + #include <boost/algorithm/string/join.hpp> // this isn't in string.hpp in old Boosts + ++/* we need to force the instantiation of the wchar_t specialization of std::basic_string's empty() ++ * method in order to get a reference to it through std::mem_fun_ref on lines 122 and 123 */ ++template bool std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::empty() const; ++ + static CParamNode g_NullNode(false); + + CParamNode::CParamNode(bool isOk) : |