diff --git a/games/freeorion/Makefile b/games/freeorion/Makefile index 30c3879cc34c..f83d9cf59f6d 100644 --- a/games/freeorion/Makefile +++ b/games/freeorion/Makefile @@ -1,58 +1,58 @@ PORTNAME= freeorion DISTVERSIONPREFIX= v DISTVERSION= 0.5 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MAINTAINER= amdmi3@FreeBSD.org COMMENT= Turn-based space empire and galactic conquest game WWW= https://www.freeorion.org/ LICENSE= GPLv2 CC-BY-SA-3.0 LICENSE_COMB= multi LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ ${PY_BOOST} USE_GITHUB= yes USES= cmake compiler:c++17-lang python CMAKE_ARGS= -Wno-dev LDFLAGS_i386= -Wl,-znotext PORTDOCS= ChangeLog.md README.md PORTDATA= * OPTIONS_DEFINE= DOCS TEST CLIENT_GG OPTIONS_DEFAULT=DOCS TEST CLIENT_GG OPTIONS_SUB= yes TEST_CMAKE_BOOL= BUILD_TESTING TEST_TEST_TARGET= unittest TEST_USES= localbase CLIENT_GG_DESC= Build GiGi client CLIENT_GG_CMAKE_BOOL= BUILD_CLIENT_GG CLIENT_GG_USES= gl openal sdl CLIENT_GG_USE= SDL=sdl2 GL=gl,glu,glew CLIENT_GG_LIB_DEPENDS= libfreetype.so:print/freetype2 \ libogg.so:audio/libogg \ libvorbis.so:audio/libvorbis \ libpng.so:graphics/png .include .if ${PYTHON_VER} != ${PYTHON_DEFAULT} # unable to detect boost_python otherwise since required files are # not installed by boost-python-libs CMAKE_ARGS+= -DBoost_NO_BOOST_CMAKE:BOOL=YES .endif post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ .endfor .include diff --git a/games/freeorion/files/patch-GG_src_dialogs_FileDlg.cpp b/games/freeorion/files/patch-GG_src_dialogs_FileDlg.cpp new file mode 100644 index 000000000000..56afc2e3255f --- /dev/null +++ b/games/freeorion/files/patch-GG_src_dialogs_FileDlg.cpp @@ -0,0 +1,42 @@ +--- GG/src/dialogs/FileDlg.cpp.orig 2023-03-21 15:16:58 UTC ++++ GG/src/dialogs/FileDlg.cpp +@@ -9,7 +9,7 @@ + + #include + #include +-#include ++#include + #include + // boost::spirit::classic pulls in windows.h which in turn defines macro + // versions of min and max. Defining NOMINMAX disables the creation of those +@@ -215,7 +215,7 @@ void FileDlg::CompleteConstruction() + + if (!m_init_filename.empty()) { + fs::path filename_path = fs::system_complete(fs::path(m_init_filename)); +- m_files_edit->SetText(filename_path.leaf().string()); ++ m_files_edit->SetText(filename_path.filename().string()); + } + } + +@@ -548,7 +548,7 @@ void FileDlg::UpdateList() + if (!m_in_win32_drive_selection) { + // parent directory selector + if ((s_working_dir.string() != s_working_dir.root_path().string() && +- !s_working_dir.branch_path().string().empty()) || ++ !s_working_dir.parent_path().string().empty()) || + Win32Paths()) + { + auto row = Wnd::Create(); +@@ -694,10 +694,10 @@ void FileDlg::OpenDirectory() + } else if (directory == "..") { + // move to parent directory of current directory + if (s_working_dir.string() != s_working_dir.root_path().string() && +- !s_working_dir.branch_path().string().empty()) ++ !s_working_dir.parent_path().string().empty()) + { + // move to new directory +- SetWorkingDirectory(s_working_dir.branch_path()); ++ SetWorkingDirectory(s_working_dir.parent_path()); + + } else { + // switch to drive selection mode diff --git a/games/freeorion/files/patch-util_Directories.cpp b/games/freeorion/files/patch-util_Directories.cpp new file mode 100644 index 000000000000..40f9b22f6b6d --- /dev/null +++ b/games/freeorion/files/patch-util_Directories.cpp @@ -0,0 +1,31 @@ +--- util/Directories.cpp.orig 2023-03-21 15:16:58 UTC ++++ util/Directories.cpp +@@ -4,9 +4,8 @@ + #include "i18n.h" + + #include +-#include +-#include + #include ++#include + + #include + #include +@@ -266,7 +265,7 @@ void InitBinDir(std::string const& argv0) + #if defined(FREEORION_WIN32) + try { + fs::path binary_file = fs::system_complete(FilenameToPath(argv0)); +- bin_dir = binary_file.branch_path(); ++ bin_dir = binary_file.parent_path(); + } catch (const fs::filesystem_error &) { + bin_dir = fs::initial_path(); + } +@@ -315,7 +314,7 @@ void InitBinDir(std::string const& argv0) + std::string path_text(buf); + + fs::path binary_file = fs::system_complete(fs::path(path_text)); +- bin_dir = binary_file.branch_path(); ++ bin_dir = binary_file.parent_path(); + + // check that a "freeoriond" file (hopefully the freeorion server binary) exists in the found directory + fs::path p(bin_dir); diff --git a/games/freeorion/files/patch-util_OptionsDB.cpp b/games/freeorion/files/patch-util_OptionsDB.cpp new file mode 100644 index 000000000000..90e022129ffc --- /dev/null +++ b/games/freeorion/files/patch-util_OptionsDB.cpp @@ -0,0 +1,12 @@ +--- util/OptionsDB.cpp.orig 2023-03-21 15:16:58 UTC ++++ util/OptionsDB.cpp +@@ -14,8 +14,7 @@ + #include + #include + #include +-#include +-#include ++#include + #include + #include +