Files
ports/devel/cpprestsdk/Makefile
Jan-Espen Oversand 2483645603 devel/cpprestsdk: unbreak build with llvm 20
Cpprestsdk is using a lot of unsigned types for C++ streams, which
apparently is fine with MSVC/win32, with gcc at least up until some
point, but does not work at all with the latest llvm versions. I've
put some effort into not going for anything that pollutes the std
namespace with anything, which I don't think is ok at all with a
library.

PR:		287706
Reported by:	Jan-Espen Oversand <sigsegv@radiotube.org> (maintainer)
2025-07-22 16:04:46 +09:00

33 lines
754 B
Makefile

PORTNAME= cpprestsdk
PORTVERSION= 2.10.19
PORTREVISION= 5
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= sigsegv@radiotube.org
COMMENT= Microsoft C++ REST SDK
WWW= https://github.com/Microsoft/cpprestsdk
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/../license.txt
BUILD_DEPENDS= ${LOCALBASE}/include/websocketpp/client.hpp:devel/websocketpp
LIB_DEPENDS= libboost_system.so:devel/boost-libs
USES= cmake:testing compiler:c++11-lang pkgconfig ssl
USE_GITHUB= yes
GH_ACCOUNT= Microsoft
USE_LDCONFIG= yes
CMAKE_OFF= BUILD_SAMPLES BUILD_TESTS WERROR
CMAKE_TESTING_ON= BUILD_TESTS
WRKSRC_SUBDIR= Release
OPTIONS_DEFINE= BROTLI
BROTLI_LIB_DEPENDS= libbrotlidec.so:archivers/brotli
BROTLI_CMAKE_ON= -DCPPREST_EXCLUDE_BROTLI:BOOL=OFF
.include <bsd.port.mk>