logstalgia: for boost-1.89

This commit is contained in:
Đoàn Trần Công Danh 2025-08-30 16:16:33 +07:00
parent 996e3bbbd9
commit d8e96422d5
2 changed files with 31 additions and 3 deletions

View file

@ -0,0 +1,25 @@
--- a/src/core/resource.cpp
+++ b/src/core/resource.cpp
@@ -26,7 +26,7 @@
*/
#include "resource.h"
-#include <boost/filesystem.hpp>
+#include <filesystem>
ResourceManager::ResourceManager() {
}
@@ -52,11 +52,11 @@ ResourceManager::~ResourceManager() {
}
bool ResourceManager::fileExists(const std::string& filename) {
- return boost::filesystem::is_regular_file(filename);
+ return std::filesystem::is_regular_file(filename);
}
bool ResourceManager::dirExists(const std::string& dirname) {
- return boost::filesystem::is_directory(dirname);
+ return std::filesystem::is_directory(dirname);
}
void ResourceManager::release(Resource* resource) {

View file

@ -1,15 +1,18 @@
# Template file for 'logstalgia'
pkgname=logstalgia
version=1.1.4
revision=5
revision=6
build_style=gnu-configure
configure_args="--with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib"
configure_args="--with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib
--with-boost-filesystem=c --with-boost-system=c"
hostmakedepends="pkg-config"
makedepends="freetype-devel glew-devel SDL2_image-devel boost-devel-minimal
libboost_filesystem glm pcre2-devel"
glm pcre2-devel"
short_desc="Replay or stream website access logs as a retro arcade game"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-3.0-or-later"
homepage="https://github.com/acaudwell/Logstalgia/"
distfiles="$homepage/releases/download/$pkgname-$version/$pkgname-$version.tar.gz"
checksum=c049eff405e924035222edb26bcc6c7b5f00a08926abdb7b467e2449242790a9
CXXFLAGS=-std=c++17