git: b4346f9b28ad - main - databases/tiledb: fix build on non-amd64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 11 Feb 2024 11:49:31 UTC
The branch main has been updated by pkubaj:

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

commit b4346f9b28adee34ea6de88fc21dd7039c032e87
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-02-07 10:38:12 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-02-11 11:48:36 +0000

    databases/tiledb: fix build on non-amd64
    
    1. Fix build on powerpc by adding -Wno-c++11-narrowing.
    2. Disable AVX2 by default since only modern amd64 supports it.
---
 databases/tiledb/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/databases/tiledb/Makefile b/databases/tiledb/Makefile
index 46fd44295d64..9332302382d2 100644
--- a/databases/tiledb/Makefile
+++ b/databases/tiledb/Makefile
@@ -28,9 +28,10 @@ RUN_DEPENDS=	capnproto1>=1.0.1:devel/capnproto1 \
 USES=		cmake compiler:c++17-lang localbase:ldflags pkgconfig ssl
 
 CFLAGS+=	-DSPDLOG_FMT_EXTERNAL=1
-CFLAGS_armv6+=	-Wno-c++11-narrowing
-CFLAGS_armv7+=	-Wno-c++11-narrowing
-CFLAGS_i386+=	-Wno-c++11-narrowing
+CFLAGS_armv6=	-Wno-c++11-narrowing
+CFLAGS_armv7=	-Wno-c++11-narrowing
+CFLAGS_i386=	-Wno-c++11-narrowing
+CFLAGS_powerpc=	-Wno-c++11-narrowing
 CMAKE_ARGS=	-DCATCH_INCLUDE_DIR=${LOCALBASE}/include/catch2 \
 		-DFREEBSD_OPENSSLBASE=${OPENSSLBASE} \
 		-Dlibmagic_DICTIONARY=/usr/share/misc/magic.mgc
@@ -69,7 +70,6 @@ GH_PROJECT=	TileDB
 USE_GITHUB=	yes
 
 OPTIONS_DEFINE=	AVX2
-OPTIONS_DEFAULT=AVX2
 AVX2_DESC=	AVX2 instructions support
 
 AVX2_CMAKE_BOOL=	COMPILER_SUPPORTS_AVX2