summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-04-30 20:25:42 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2024-04-30 20:25:42 -0700
commitaf51a91165a785cf9b5be090699ac9bd1e66ba00 (patch)
treecbdb4f0ddf5fd208200baf0b56fcea0fce11c544
parenttextproc/yq: update 3.4.2 → 3.4.3 (diff)
math/kfr: Fix plist on non-Intel architectures
Reported by: fallout
-rw-r--r--math/kfr/Makefile15
-rw-r--r--math/kfr/pkg-plist10
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