Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 2020 17:43:48 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r555710 - head/net-p2p/xmrig
Message-ID:  <202011191743.0AJHhmTD026808@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Thu Nov 19 17:43:47 2020
New Revision: 555710
URL: https://svnweb.freebsd.org/changeset/ports/555710

Log:
  Use options helpers for cmake options. While here pacify portfmt/portclippy.

Modified:
  head/net-p2p/xmrig/Makefile

Modified: head/net-p2p/xmrig/Makefile
==============================================================================
--- head/net-p2p/xmrig/Makefile	Thu Nov 19 16:11:53 2020	(r555709)
+++ head/net-p2p/xmrig/Makefile	Thu Nov 19 17:43:47 2020	(r555710)
@@ -4,6 +4,7 @@
 PORTNAME=	xmrig
 PORTVERSION=	6.5.3
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	net-p2p
 
 MAINTAINER=	ehaupt@FreeBSD.org
@@ -32,25 +33,16 @@ HWLOC_DESC=		Portable hardware locality
 MICROHTTPD_DESC=	Build with libmicrohttpd support
 
 HWLOC_LIB_DEPENDS+=		libhwloc.so:devel/hwloc
+HWLOC_CMAKE_OFF=		-DWITH_HWLOC=OFF
 MICROHTTPD_LIB_DEPENDS+=	libmicrohttpd.so:www/libmicrohttpd \
 				libuv.so:devel/libuv
+MICROHTTPD_CMAKE_OFF=		-DWITH_HTTPD=OFF
 
 STATIC_PREVENTS=	HWLOC MICROHTTPD
 STATIC_PREVENTS_MSG=	hwloc and libmicrohttpd support cannot be built static
 
 STATIC_BUILD_DEPENDS+=	${LOCALBASE}/lib/libuv.a:devel/libuv
-
-post-patch-HWLOC-off:
-	@${REINPLACE_CMD} -e 's|\(.*WITH_HWLOC.*\)\(ON\)|\1OFF|' \
-		${WRKSRC}/CMakeLists.txt
-
-post-patch-MICROHTTPD-off:
-	@${REINPLACE_CMD} -e 's|\(.*WITH_HTTPD.*\)\(ON\)|\1OFF|' \
-		${WRKSRC}/CMakeLists.txt
-
-post-patch-STATIC-on:
-	@${REINPLACE_CMD} -e 's|\(.*BUILD_STATIC.*\)\(OFF\)|\1ON|' \
-		${WRKSRC}/CMakeLists.txt
+STATIC_CMAKE_ON=	-DBUILD_STATIC=ON
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKDIR}/.build/${PORTNAME} ${STAGEDIR}${PREFIX}/bin



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