From af51a91165a785cf9b5be090699ac9bd1e66ba00 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 30 Apr 2024 20:25:42 -0700 Subject: [PATCH] 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 + +.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