git: f16fc5f67563 - 2024Q1 - databases/tiledb: fix build on non-amd64

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 31 Mar 2024 07:16:38 UTC
The branch 2024Q1 has been updated by sunpoet:

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

commit f16fc5f6756361e87cc7ab9bed05c54ff919e0a5
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-02-07 10:38:12 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-31 07:14:20 +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.
    
    (cherry picked from commit b4346f9b28adee34ea6de88fc21dd7039c032e87)
---
 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