1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/www/cpp-httplib/Makefile
Yuri Victorovich 75f6822635 www/cpp-httplib: update 0.15.0 → 0.15.1
Reported by:	portscout
2024-01-30 00:56:28 -08:00

48 lines
1.3 KiB
Makefile

PORTNAME= cpp-httplib
DISTVERSIONPREFIX= v
DISTVERSION= 0.15.1
CATEGORIES= www devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++ header-only HTTP/HTTPS server and client library
WWW= https://github.com/yhirose/cpp-httplib
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= gmake:devel/gmake
USES= cmake localbase:ldflags python:test # localbase only for tests
USE_GITHUB= yes
GH_ACCOUNT= yhirose
CMAKE_ON= HTTPLIB_REQUIRE_ZLIB
NO_ARCH= yes
BINARY_ALIAS= python3=${PYTHON_CMD} # only for tests
PLIST_FILES= include/httplib.h \
lib/cmake/httplib/FindBrotli.cmake \
lib/cmake/httplib/httplibConfig.cmake \
lib/cmake/httplib/httplibConfigVersion.cmake \
lib/cmake/httplib/httplibTargets.cmake
CONFLICTS_BUILD= googletest # should be CONFLICTS_TEST
OPTIONS_DEFINE= BROTLI SSL
OPTIONS_DEFAULT= BROTLI SSL
BROTLI_CMAKE_BOOL= HTTPLIB_REQUIRE_BROTLI HTTPLIB_USE_BROTLI_IF_AVAILABLE
BROTLI_BUILD_DEPENDS= brotli>0:archivers/brotli
BROTLI_RUN_DEPENDS= brotli>0:archivers/brotli
SSL_USES= ssl
SSL_CMAKE_BOOL= HTTPLIB_REQUIRE_OPENSSL HTTPLIB_USE_OPENSSL_IF_AVAILABLE
do-test: # 5 test fail, see https://github.com/yhirose/cpp-httplib/issues/1339
@cd ${WRKSRC}/test && ${SETENV} ${MAKE_ENV} ${GMAKE} CXXFLAGS="${CXXFLAGS} -I${WRKSRC}/test" LDFLAGS="${LDFLAGS}"
.include <bsd.port.mk>