Files
Jan-Espen Oversand eafafb566d devel/cpprestsdk: allow consumers to find_package(cpprestsdk)
With sufficiently-new CMake settings, the CMake .config file for
cpprestsdk can't find Boost::system (because it no longer exists)
and then it fails. But cpprestsdk doesn't need it -- so patch
it out.

Upstream PR:	https://github.com/microsoft/cpprestsdk/pull/1838
PR:	291874
2026-04-30 22:39:03 +02:00

33 lines
754 B
Makefile

PORTNAME= cpprestsdk
PORTVERSION= 2.10.19
PORTREVISION= 7
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_thread.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>