From 4cc269a2ab9e058fc4e5a6affde1a82f72ef3d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 8 Aug 2025 22:00:57 +0700 Subject: [PATCH] fifengine: for boost-1.88 --- srcpkgs/fifengine/patches/boost-1.88.patch | 45 ++++++++++++++++++++++ srcpkgs/fifengine/template | 5 ++- 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/fifengine/patches/boost-1.88.patch diff --git a/srcpkgs/fifengine/patches/boost-1.88.patch b/srcpkgs/fifengine/patches/boost-1.88.patch new file mode 100644 index 00000000000..a3865928d47 --- /dev/null +++ b/srcpkgs/fifengine/patches/boost-1.88.patch @@ -0,0 +1,45 @@ +--- a/engine/core/loaders/native/map/atlasloader.cpp ++++ b/engine/core/loaders/native/map/atlasloader.cpp +@@ -312,7 +312,7 @@ namespace FIFE { + atlasElem->QueryValueAttribute("subimage_width", &subimageWidth); + atlasElem->QueryValueAttribute("subimage_height", &subimageHeight); + // file extension of the atlas is also used as subimage extension +- std::string extension = bfs::extension(*atlasSource); ++ std::string extension = bfs::path(*atlasSource).extension().string(); + // we need an atlas id + if (!atlasId) { + atlasId = atlasSource; +--- a/engine/core/loaders/native/map/maploader.cpp ++++ b/engine/core/loaders/native/map/maploader.cpp +@@ -838,7 +838,7 @@ namespace FIFE { + for (iter = files.begin(); iter != files.end(); ++iter) { + // TODO - vtchill - may need a way to allow clients to load things other + // than .xml and .zip files +- std::string ext = bfs::extension(*iter); ++ std::string ext = bfs::path(*iter).extension().string(); + if (ext == ".xml" || ext == ".zip") { + loadImportFile(*iter, importDirectoryString); + } +--- a/engine/core/loaders/native/map/objectloader.cpp ++++ b/engine/core/loaders/native/map/objectloader.cpp +@@ -702,7 +702,7 @@ namespace FIFE { + for (iter = files.begin(); iter != files.end(); ++iter) { + // TODO - vtchill - may need a way to allow clients to load things other + // than .xml and .zip files +- std::string ext = bfs::extension(*iter); ++ std::string ext = bfs::path(*iter).extension().string(); + if (ext == ".xml" || ext == ".zip") { + loadImportFile(*iter, importDirectoryString); + } +--- a/engine/core/gui/fifechan/fifechanmanager.cpp ++++ b/engine/core/gui/fifechan/fifechanmanager.cpp +@@ -249,7 +249,8 @@ namespace FIFE { + + IFont* font = NULL; + GuiFont* guifont = NULL; +- if( bfs::extension(fontpath) == ".ttf" || bfs::extension(fontpath) == ".ttc" ) { ++ std::string fontext = bfs::path(fontpath).extension().string(); ++ if (fontext == ".ttf" || fontext == ".ttc") { + font = new TrueTypeFont(fontpath, fontsize); + } else { + font = new SubImageFont(fontpath, fontglyphs); diff --git a/srcpkgs/fifengine/template b/srcpkgs/fifengine/template index fc9a6f6b528..4569b785d85 100644 --- a/srcpkgs/fifengine/template +++ b/srcpkgs/fifengine/template @@ -1,10 +1,11 @@ # Template file for 'fifengine' pkgname=fifengine version=0.4.2 -revision=15 +revision=16 build_style=cmake hostmakedepends="swig python3 python3-setuptools" -makedepends="SDL2-devel SDL2_image-devel SDL2_ttf-devel boost-devel +makedepends="SDL2-devel SDL2_image-devel SDL2_ttf-devel boost-devel-minimal + libboost_system libboost_filesystem libopenal-devel tinyxml-devel fifechan-devel python3-devel libXcursor-devel glew-devel" depends="python3-future"