Skip to content

Commit

Permalink
net/libwebsockets: Fix LWS_BUILD_HASH
Browse files Browse the repository at this point in the history
Pass LWS_BUILD_HASH to cmake instead of patching
CMakeLists.txt

This fixes ca989f6
  • Loading branch information
jurajlutter committed Jun 6, 2021
1 parent fc84d43 commit c2f7da2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions net/libwebsockets/Makefile
Expand Up @@ -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/

Expand All @@ -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 \
Expand Down Expand Up @@ -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>

0 comments on commit c2f7da2

Please sign in to comment.