git: af51a91165a7 - main - math/kfr: Fix plist on non-Intel architectures

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 01 May 2024 03:26:45 UTC
The branch main has been updated by yuri:

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

commit af51a91165a785cf9b5be090699ac9bd1e66ba00
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-05-01 03:25:42 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-05-01 03:25:42 +0000

    math/kfr: Fix plist on non-Intel architectures
    
    Reported by:    fallout
---
 math/kfr/Makefile  | 15 +++++++++++++++
 math/kfr/pkg-plist | 10 ----------
 2 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/math/kfr/Makefile b/math/kfr/Makefile
index 7d2c54a7700b..d4a632cf9a57 100644
--- a/math/kfr/Makefile
+++ b/math/kfr/Makefile
@@ -25,6 +25,21 @@ CMAKE_TESTING_TARGET=	${ALL_TARGET}
 #CXXFLAGS_armv6=	-march=native # to fix: ARM builds require NEON support. Add -march=native for native build or skip the check with CMT_FORCE_GENERIC_CPU=1
 CMAKE_ARGS_armv6=	-DCMT_FORCE_GENERIC_CPU=1 # to fix: ARM builds require NEON support. Add -march=native for native build or skip the check with CMT_FORCE_GENERIC_CPU=1
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == amd64 || ${ARCH} == i386
+PLIST_FILES=	lib/libkfr_dft_avx.so \
+		lib/libkfr_dft_avx2.so \
+		lib/libkfr_dft_avx512.so \
+		lib/libkfr_dft_sse2.so \
+		lib/libkfr_dft_sse41.so \
+		lib/libkfr_dsp_avx.so \
+		lib/libkfr_dsp_avx2.so \
+		lib/libkfr_dsp_avx512.so \
+		lib/libkfr_dsp_sse2.so \
+		lib/libkfr_dsp_sse41.so
+.endif
+
 post-test: # see https://github.com/kfrlib/kfr/issues/164
 	@cd ${BUILD_WRKSRC} && \
 		${BUILD_WRKSRC}/bin/all_tests
diff --git a/math/kfr/pkg-plist b/math/kfr/pkg-plist
index 40ed1af7ede0..1ea587a3ec63 100644
--- a/math/kfr/pkg-plist
+++ b/math/kfr/pkg-plist
@@ -147,14 +147,4 @@ include/kfr/version.hpp
 lib/cmake/kfr/KFRConfig-%%CMAKE_BUILD_TYPE%%.cmake
 lib/cmake/kfr/KFRConfig.cmake
 lib/cmake/kfr/KFRConfigVersion.cmake
-lib/libkfr_dft_avx.so
-lib/libkfr_dft_avx2.so
-lib/libkfr_dft_avx512.so
-lib/libkfr_dft_sse2.so
-lib/libkfr_dft_sse41.so
-lib/libkfr_dsp_avx.so
-lib/libkfr_dsp_avx2.so
-lib/libkfr_dsp_avx512.so
-lib/libkfr_dsp_sse2.so
-lib/libkfr_dsp_sse41.so
 lib/libkfr_io.so