git: e994ff64ad70 - main - net-p2p/monero-cli: disable -march=native by default

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Mon, 23 Oct 2023 01:53:35 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e994ff64ad7065e1927e6123c309586dcff99d38

commit e994ff64ad7065e1927e6123c309586dcff99d38
Author:     Toni B <tonidasbabes88@gmail.com>
AuthorDate: 2023-10-19 17:55:47 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-10-23 01:51:27 +0000

    net-p2p/monero-cli: disable -march=native by default
    
    A new option NATIVE is provided to enable -march=native if
    desired.
    
    PR:             274595
---
 net-p2p/monero-cli/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/net-p2p/monero-cli/Makefile b/net-p2p/monero-cli/Makefile
index 888238b67b44..7f44f7489793 100644
--- a/net-p2p/monero-cli/Makefile
+++ b/net-p2p/monero-cli/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	monero-cli
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.18.3.1
+PORTREVISION=	1
 CATEGORIES=	net-p2p finance
 
 MAINTAINER=	ports@FreeBSD.org
@@ -45,10 +46,12 @@ GH_TUPLE=	monero-project:monero:${GIT_COMMIT} \
 
 CFLAGS+=	-D_WANT_SEMUN
 
-OPTIONS_DEFINE=		DOXYGEN
+OPTIONS_DEFINE=		DOXYGEN NATIVE
 DOXYGEN_BUILD_DEPENDS=	dot:graphics/graphviz \
 			doxygen:devel/doxygen
 DOXYGEN_CMAKE_BOOL=	BUILD_DOCUMENTATION
+NATIVE_CMAKE_ON=	-DARCH=native
+NATIVE_CMAKE_OFF=	-DARCH=default
 
 .include <bsd.port.pre.mk>