cpprestsdk: fix build

Fixes: https://trac.macports.org/ticket/70011
This commit is contained in:
Mohamed Akram
2025-09-13 13:56:35 +04:00
parent 218deff45b
commit 4d369ef269
2 changed files with 15 additions and 1 deletions
+3 -1
View File
@@ -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
+12
View File
@@ -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