Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 2021 23:21:22 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r561982 - head/www/cpp-httplib
Message-ID:  <202101182321.10INLMVS084708@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Mon Jan 18 23:21:21 2021
New Revision: 561982
URL: https://svnweb.freebsd.org/changeset/ports/561982

Log:
  www/cpp-httplib: Update 0.8.0 -> 0.8.1
  
  cpp-httplib now installs cmake files, and allows to work with SSL and use Brotli compression.

Modified:
  head/www/cpp-httplib/Makefile
  head/www/cpp-httplib/distinfo

Modified: head/www/cpp-httplib/Makefile
==============================================================================
--- head/www/cpp-httplib/Makefile	Mon Jan 18 22:49:28 2021	(r561981)
+++ head/www/cpp-httplib/Makefile	Mon Jan 18 23:21:21 2021	(r561982)
@@ -2,7 +2,7 @@
 
 PORTNAME=	cpp-httplib
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.8.0
+DISTVERSION=	0.8.1
 CATEGORIES=	www devel
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -11,16 +11,30 @@ COMMENT=	C++ header-only HTTP/HTTPS server and client 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+USES=		cmake
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	yhirose
 
+CMAKE_ON=	HTTPLIB_REQUIRE_ZLIB
+
 NO_ARCH=	yes
-NO_BUILD=	yes
 
-PLIST_FILES=	include/httplib/httplib.h
+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
 
-do-install:
-	${MKDIR} ${STAGEDIR}${PREFIX}/include/httplib
-	${INSTALL_DATA} ${WRKSRC}/httplib.h ${STAGEDIR}${PREFIX}/include/httplib
+OPTIONS_DEFINE=		BROTLI SSL
+OPTIONS_DEFAULT=	BROTLI SSL
+
+BROTLI_USES=		pkgconfig
+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
 
 .include <bsd.port.mk>

Modified: head/www/cpp-httplib/distinfo
==============================================================================
--- head/www/cpp-httplib/distinfo	Mon Jan 18 22:49:28 2021	(r561981)
+++ head/www/cpp-httplib/distinfo	Mon Jan 18 23:21:21 2021	(r561982)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1610507315
-SHA256 (yhirose-cpp-httplib-v0.8.0_GH0.tar.gz) = c553ad74043ad2fb47bf329edd9aa451bd0a74b69f4e7a165042a67a9daaf469
-SIZE (yhirose-cpp-httplib-v0.8.0_GH0.tar.gz) = 573587
+TIMESTAMP = 1611011030
+SHA256 (yhirose-cpp-httplib-v0.8.1_GH0.tar.gz) = b58f5f8ac00ebb74019e8cf7a87a55bb436a5861df406861abb74ed87c2af718
+SIZE (yhirose-cpp-httplib-v0.8.1_GH0.tar.gz) = 573619



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101182321.10INLMVS084708>