git: c2f7da2a89ec - main - net/libwebsockets: Fix LWS_BUILD_HASH
Juraj Lutter
otis at FreeBSD.org
Sun Jun 6 20:36:26 UTC 2021
The branch main has been updated by otis:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c2f7da2a89ec7bab27dd6b8ab5e2936024a7b3d1
commit c2f7da2a89ec7bab27dd6b8ab5e2936024a7b3d1
Author: Juraj Lutter <otis at FreeBSD.org>
AuthorDate: 2021-06-06 20:25:39 +0000
Commit: Juraj Lutter <otis at FreeBSD.org>
CommitDate: 2021-06-06 20:36:00 +0000
net/libwebsockets: Fix LWS_BUILD_HASH
Pass LWS_BUILD_HASH to cmake instead of patching
CMakeLists.txt
This fixes ca989f6339de59653820f35a23f6107ee65d2e20
---
net/libwebsockets/Makefile | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/net/libwebsockets/Makefile b/net/libwebsockets/Makefile
index a1236c01821b..694eb4b3bc4c 100644
--- a/net/libwebsockets/Makefile
+++ b/net/libwebsockets/Makefile
@@ -3,6 +3,7 @@
PORTNAME= libwebsockets
DISTVERSIONPREFIX= v
DISTVERSION= 4.2.0
+PORTREVISION= 1
CATEGORIES= net devel
MASTER_SITES= https://libwebsockets.org/git/libwebsockets/snapshot/
@@ -15,6 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake localbase pkgconfig tar:xz
USE_LDCONFIG= yes
+CMAKE_ARGS= -DLWS_BUILD_HASH:STRING="${BUILDINFO}"
CMAKE_ON= CMAKE_DISABLE_FIND_PACKAGE_Git \
LWS_IPV6 LWS_WITH_SSL LWS_WITH_ZLIB \
LWS_WITHOUT_TESTAPPS LWS_WITHOUT_TEST_SERVER \
@@ -78,8 +80,4 @@ LIBUV_CMAKE_BOOL= LWS_WITH_LIBUV
BUILDINFO= ${HOSTARCH}-portbld-${OPSYS:tl}-${OSREL:R}
-post-patch:
- @${REINPLACE_CMD} -e 's|%%BUILDINFO%%|${BUILDINFO}|g' \
- ${PATCH_WRKSRC}/CMakeLists.txt
-
.include <bsd.port.mk>
More information about the dev-commits-ports-all
mailing list