git: 9b33d1c1d32f - main - www/wt: Update to 4.12.1

From: Carlo Strub <cs_at_FreeBSD.org>
Date: Sun, 07 Dec 2025 18:23:33 UTC
The branch main has been updated by cs:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9b33d1c1d32f4b016130002dbb8060392f8d4a4e

commit 9b33d1c1d32f4b016130002dbb8060392f8d4a4e
Author:     Carlo Strub <cs@FreeBSD.org>
AuthorDate: 2025-12-07 18:22:11 +0000
Commit:     Carlo Strub <cs@FreeBSD.org>
CommitDate: 2025-12-07 18:22:11 +0000

    www/wt: Update to 4.12.1
    
    - Updates Wt to v4.12.1
    - Removes unused OPTIONS_GROUP WSTRING (earlier versions using it, somehow it has not been removed)
    - Builds using C++20 instead of C++14 (because of new options STDANY STDFS, it's possible to fallback
      to C++14 when those options are disabled, please let me know and I'll patch it)
    - Adds options group WTCPPIMPL for STD* options below
    - Adds STDANY option
    - Adds STDFS option
    - Some other minor fixes
    PR:             291346
    Reported by:    maintainer
---
 www/wt/Makefile  | 28 ++++++++++++++++++++--------
 www/wt/distinfo  |  6 +++---
 www/wt/pkg-plist |  7 +++++++
 3 files changed, 30 insertions(+), 11 deletions(-)

diff --git a/www/wt/Makefile b/www/wt/Makefile
index e5625547df30..3d5eaab7708f 100644
--- a/www/wt/Makefile
+++ b/www/wt/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	wt
-DISTVERSION=	4.11.4
-PORTREVISION=	1
+DISTVERSION=	4.12.1
 CATEGORIES=	www
 
 MAINTAINER=	info@babaei.net
@@ -15,7 +14,7 @@ LIB_DEPENDS=	libboost_thread.so:devel/boost-libs \
 		libpng.so:graphics/png
 TEST_DEPENDS=	roboto-fonts-ttf>=0:x11-fonts/roboto-fonts-ttf
 
-USES=		cmake:testing compiler:c++14-lang cpe pkgconfig ssl
+USES=		cmake:testing compiler:c++20-lang cpe pkgconfig ssl
 CPE_VENDOR=	emweb
 USE_GITHUB=	yes
 GH_ACCOUNT=	emweb
@@ -29,7 +28,9 @@ CMAKE_ARGS=	-DCONFIGDIR:STRING=${ETCDIR} \
 		-DGM_PREFIX:STRING=${LOCALBASE} \
 		-DWEBGROUP:STRING=${WWWGRP} \
 		-DWEBUSER:STRING=${WWWOWN} \
-		-DWT_WRASTERIMAGE_IMPLEMENTATION:STRING=GraphicsMagick
+		-DWT_WRASTERIMAGE_IMPLEMENTATION:STRING=GraphicsMagick \
+		-DWT_CPP20_DATE_TZ_IMPLEMENTATION=date \
+		-DCMAKE_CXX_STANDARD=20
 CMAKE_OFF=	BUILD_EXAMPLES ENABLE_MYSQLSERVER ENABLE_QT4 ENABLE_QT5 \
 		ENABLE_QT6
 CMAKE_TESTING_ON=	BUILD_TESTS
@@ -49,12 +50,14 @@ PORTEXAMPLES=	*
 OPTIONS_DEFINE=			DEBUG EXAMPLES HARU LIBWTTEST OPENGL PANGO \
 				RESOURCES SAML THEMES UNWIND
 OPTIONS_DEFAULT=		EXAMPLES FASTCGI HARU LIBWTTEST MYSQL \
-				OPENGL PANGO PGSQL RESOURCES SAML SQLITE3 \
-				THEMES WTHTTP
-OPTIONS_GROUP=			CONNECTOR DBO WSTRING
+				OPENGL PANGO PGSQL RESOURCES SAML \
+				STDANY STDFS \
+				SQLITE3 THEMES WTHTTP
+OPTIONS_GROUP=			CONNECTOR DBO WTCPPIMPL
 OPTIONS_GROUP_CONNECTOR=	FASTCGI WTHTTP
 OPTIONS_GROUP_DBO=		FIREBIRD MYSQL PGSQL SQLITE3
-NO_OPTIONS_SORT=	yes
+OPTIONS_GROUP_WTCPPIMPL=	STDANY STDFS
+NO_OPTIONS_SORT=		yes
 OPTIONS_SUB=			yes
 
 CONNECTOR_DESC=	Connector
@@ -69,9 +72,12 @@ PGSQL_DESC=	Build Wt with PostgreSQL support
 RESOURCES_DESC=	Install resources directory
 SAML_DESC=	Build built-in SAML service provider for Wt::Auth
 SQLITE3_DESC=	Build Wt with SQLite 3 support
+STDANY_DESC=	Use std::any instead of bundled thelink2012::any
+STDFS_DESC=	Use std::filesystem instead of boost::filesystem
 THEMES_DESC=	Install the source files for Wt's themes
 UNWIND_DESC=	Build Wt with stacktrace support using libunwind
 WTHTTP_DESC=	Build Wt stand-alone httpd connector
+WTCPPIMPL_DESC=	Wt C++ Features Implementations
 
 EXAMPLES_IMPLIES=	SQLITE3 WTHTTP
 EXAMPLES_CMAKE_BOOL=	BUILD_EXAMPLES INSTALL_EXAMPLES
@@ -122,6 +128,12 @@ SQLITE3_USES=		sqlite:3
 SQLITE3_CMAKE_BOOL=	ENABLE_SQLITE
 SQLITE3_CMAKE_ON=	-DENABLE_LIBWTDBO:BOOL=ON
 
+STDANY_CMAKE_ON=	-DWT_CPP17_ANY_IMPLEMENTATION=std
+STDANY_CMAKE_OFF=	-DWT_CPP17_ANY_IMPLEMENTATION=thelink2012
+
+STDFS_CMAKE_ON=		-DWT_CPP17_FILESYSTEM_IMPLEMENTATION=std
+STDFS_CMAKE_OFF=	-DWT_CPP17_FILESYSTEM_IMPLEMENTATION=boost
+
 THEMES_CMAKE_BOOL=	INSTALL_THEMES
 
 UNWIND_LIB_DEPENDS=	libunwind.so:devel/libunwind
diff --git a/www/wt/distinfo b/www/wt/distinfo
index f63c215d2b0f..bf4cc4f0f8d7 100644
--- a/www/wt/distinfo
+++ b/www/wt/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1753078030
-SHA256 (emweb-wt-4.11.4_GH0.tar.gz) = b42b9818e4c8ab8af835b0c88bda5c4f71ccfb38fd8baf90648064b0544eb564
-SIZE (emweb-wt-4.11.4_GH0.tar.gz) = 10616646
+TIMESTAMP = 1764641650
+SHA256 (emweb-wt-4.12.1_GH0.tar.gz) = 672c1704f87f76e7d16ca6e1127a345bf223d0bfa1187bf5a86f6965cf349f0c
+SIZE (emweb-wt-4.12.1_GH0.tar.gz) = 10925011
diff --git a/www/wt/pkg-plist b/www/wt/pkg-plist
index cdb08afb829c..62a748c8df4c 100644
--- a/www/wt/pkg-plist
+++ b/www/wt/pkg-plist
@@ -179,6 +179,7 @@ include/Wt/Signals/signals.hpp
 %%LIBWTTEST%%include/Wt/Test/WTestEnvironment.h
 include/Wt/Utils.h
 include/Wt/WAbstractArea.h
+include/Wt/WAbstractDataInfo.h
 include/Wt/WAbstractGLImplementation.h
 include/Wt/WAbstractItemDelegate.h
 include/Wt/WAbstractItemModel.h
@@ -221,6 +222,7 @@ include/Wt/WContainerWidget.h
 include/Wt/WCssDecorationStyle.h
 include/Wt/WCssStyleSheet.h
 include/Wt/WCssTheme.h
+include/Wt/WDataInfo.h
 include/Wt/WDate.h
 include/Wt/WDateEdit.h
 include/Wt/WDatePicker.h
@@ -229,6 +231,7 @@ include/Wt/WDateValidator.h
 include/Wt/WDefaultLoadingIndicator.h
 include/Wt/WDialog.h
 include/Wt/WDllDefs.h
+include/Wt/WDocRootDataInfo.h
 include/Wt/WDoubleSpinBox.h
 include/Wt/WDoubleValidator.h
 include/Wt/WEmailEdit.h
@@ -306,6 +309,8 @@ include/Wt/WPaintedWidget.h
 include/Wt/WPainter.h
 include/Wt/WPainterPath.h
 include/Wt/WPanel.h
+include/Wt/WPasswordEdit.h
+include/Wt/WPasswordValidator.h
 include/Wt/WPdfImage.h
 include/Wt/WPen.h
 include/Wt/WPoint.h
@@ -338,6 +343,7 @@ include/Wt/WSpinBox.h
 include/Wt/WSplitButton.h
 include/Wt/WSslCertificate.h
 include/Wt/WSslInfo.h
+include/Wt/WStackedValidator.h
 include/Wt/WStackedWidget.h
 include/Wt/WStandardItem.h
 include/Wt/WStandardItemModel.h
@@ -394,6 +400,7 @@ include/Wt/cpp17/any.hpp
 include/Wt/cpp17/any/LICENSE_1_0.txt
 include/Wt/cpp17/any/README.md
 include/Wt/cpp17/any/any.hpp
+include/Wt/cpp17/filesystem.hpp
 include/Wt/cpp20/date.hpp
 include/Wt/cpp20/tz.hpp
 include/thirdparty/qrcodegen/QrCode.hpp