diff --git a/www/cpprestsdk/Portfile b/www/cpprestsdk/Portfile index 4b097587a28..26a803882e9 100644 --- a/www/cpprestsdk/Portfile +++ b/www/cpprestsdk/Portfile @@ -10,7 +10,7 @@ github.tarball_from archive revision 0 categories www devel license MIT -maintainers {makr @mohd-akram} openmaintainer +maintainers nomaintainer description C++ REST library for client-server communication @@ -35,6 +35,8 @@ configure.args-append -DBUILD_SAMPLES=OFF \ -DOPENSSL_ROOT_DIR=${prefix} \ -DWERROR=OFF +patchfiles patch-cmake.diff + variant tests description {build tests.} { configure.args-replace -DBUILD_TESTS=OFF -DBUILD_TESTS=ON configure.post_args-append -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF diff --git a/www/cpprestsdk/files/patch-cmake.diff b/www/cpprestsdk/files/patch-cmake.diff new file mode 100644 index 00000000000..44f1e0762bd --- /dev/null +++ b/www/cpprestsdk/files/patch-cmake.diff @@ -0,0 +1,12 @@ +--- Release/CMakeLists.txt.orig 2023-12-05 08:23:31 ++++ Release/CMakeLists.txt 2025-09-13 13:54:50 +@@ -83,6 +83,9 @@ + + if(NOT WIN32) + CHECK_INCLUDE_FILES(xlocale.h HAVE_XLOCALE_H) ++ if(HAVE_XLOCALE_H) ++ add_definitions(-DHAVE_XLOCALE_H) ++ endif() + endif() + + if(APPLE) # Note: also iOS