git: eadc22643b6c - main - biology/mashmap: Broken on i386; Fix build on other architectures by using NATIVE option

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 19 Jul 2023 18:26:13 UTC
The branch main has been updated by yuri:

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

commit eadc22643b6c207a6ee109f82ff42f6e7d401521
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-18 13:59:18 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-19 18:26:06 +0000

    biology/mashmap: Broken on i386; Fix build on other architectures by using NATIVE option
    
    Reported by:    fallout
---
 biology/mashmap/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/biology/mashmap/Makefile b/biology/mashmap/Makefile
index d9dc5f5fafa4..b1be9f3f6461 100644
--- a/biology/mashmap/Makefile
+++ b/biology/mashmap/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	mashmap
 DISTVERSIONPREFIX=	v
 DISTVERSION=	3.0.6
+PORTREVISION=	1
 CATEGORIES=	biology
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -10,6 +11,8 @@ WWW=		https://github.com/marbl/MashMap
 LICENSE=	PD
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
+BROKEN_i386=	compilation fails: fatal error: unknown type name '__uint128_t'
+
 LIB_DEPENDS=	libgsl.so:math/gsl
 
 USES=		cmake compiler:c++17-lang localbase:ldflags
@@ -18,6 +21,10 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	marbl
 GH_PROJECT=	MashMap
 
+OPTIONS_DEFINE=		NATIVE
+
+NATIVE_CMAKE_BOOL=	OPTIMIZE_FOR_NATIVE
+
 PLIST_FILES=	bin/mashmap \
 		bin/mashmap-align