git: 6de72c432b67 - main - games/wesnoth: prepare for Boost-1.89, do not link with stub Boost::system
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 Sep 2025 09:48:25 UTC
The branch main has been updated by fluffy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6de72c432b67abb95d7e101b955537083c5b9799
commit 6de72c432b67abb95d7e101b955537083c5b9799
Author: Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-09-22 09:41:55 +0000
Commit: Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-09-22 09:41:55 +0000
games/wesnoth: prepare for Boost-1.89, do not link with stub Boost::system
---
games/wesnoth/Makefile | 8 ++++++--
games/wesnoth/files/patch-CMakeLists.txt | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/games/wesnoth/Makefile b/games/wesnoth/Makefile
index 76db63c6ce2a..56093784bc84 100644
--- a/games/wesnoth/Makefile
+++ b/games/wesnoth/Makefile
@@ -1,6 +1,6 @@
PORTNAME= wesnoth
PORTVERSION= 1.18.5
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}/${PORTNAME}-${PORTVERSION} \
@@ -31,7 +31,7 @@ USE_SDL= image2 mixer2 ttf2
USE_GNOME= cairo pango
USE_XORG= ice sm x11 xext
-LDFLAGS+= -lboost_system -lpthread
+LDFLAGS+= -lpthread
PORTSCOUT= limitw:1,even
@@ -122,6 +122,10 @@ SERVER_DESC= Server
SERVER_CMAKE_OFF=-DENABLE_SERVER=off
TEST_CMAKE_ON= -DENABLE_TESTS=on
+post-patch:
+# @${REINPLACE_CMD} -e 's/system thread/process thread/' ${WRKSRC}/CMakeLists.txt
+ @${REINPLACE_CMD} -e '/Boost::system/d' ${WRKSRC}/src/CMakeLists.txt
+
#post-install:
# ${FIND} ${STAGEDIR}${PREFIX}/man -type d -empty -delete
diff --git a/games/wesnoth/files/patch-CMakeLists.txt b/games/wesnoth/files/patch-CMakeLists.txt
index 12e918ff6c45..aeb1eb7abd22 100644
--- a/games/wesnoth/files/patch-CMakeLists.txt
+++ b/games/wesnoth/files/patch-CMakeLists.txt
@@ -5,7 +5,7 @@
endif()
-find_package(Boost ${BOOST_VERSION} REQUIRED COMPONENTS iostreams program_options regex system thread random coroutine locale filesystem graph)
-+find_package(Boost ${BOOST_VERSION} REQUIRED COMPONENTS iostreams program_options process regex system thread random coroutine locale filesystem graph)
++find_package(Boost ${BOOST_VERSION} REQUIRED COMPONENTS iostreams program_options process regex thread random coroutine locale filesystem graph)
find_package(ICU REQUIRED COMPONENTS data i18n uc)
# no, gettext executables are not required when NLS is deactivated