summaryrefslogtreecommitdiff
path: root/math/kfr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/kfr/Makefile')
-rw-r--r--math/kfr/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/math/kfr/Makefile b/math/kfr/Makefile
index cc5f84755155..d314966dedcb 100644
--- a/math/kfr/Makefile
+++ b/math/kfr/Makefile
@@ -1,5 +1,5 @@
PORTNAME= kfr
-DISTVERSION= 6.2.0
+DISTVERSION= 6.3.0
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
@@ -18,7 +18,7 @@ USES= cmake:testing compiler:c++17-lang
USE_GITHUB= yes
GH_ACCOUNT= kfrlib
-CMAKE_ON= BUILD_SHARED_LIBS
+CMAKE_ON= BUILD_SHARED_LIBS ENABLE_EXAMPLES
CMAKE_TESTING_ON= ENABLE_TESTS
CMAKE_TESTING_TARGET= ${ALL_TARGET}
@@ -27,7 +27,7 @@ CMAKE_ARGS_armv6= -DCMT_FORCE_GENERIC_CPU=1 # to fix: ARM builds require NEON su
.include <bsd.port.options.mk>
-.if ${ARCH} == amd64 || ${ARCH} == i386
+.ifndef CPUTYPE && (${ARCH} == amd64 || ${ARCH} == i386)
PLIST_FILES= lib/libkfr_dft_avx.so \
lib/libkfr_dft_avx2.so \
lib/libkfr_dft_avx512.so \
@@ -38,12 +38,17 @@ PLIST_FILES= lib/libkfr_dft_avx.so \
lib/libkfr_dsp_avx512.so \
lib/libkfr_dsp_sse2.so \
lib/libkfr_dsp_sse41.so
+.else
+CMAKE_OFF= KFR_ENABLE_MULTIARCH
+PLIST_FILES= lib/libkfr_dft.so \
+ lib/libkfr_dsp.so
.endif
+post-install:
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bin/sample_rate_converter ${STAGEDIR}${PREFIX}/bin/kfr_src
+
post-test: # see https://github.com/kfrlib/kfr/issues/164
@cd ${BUILD_WRKSRC} && \
${BUILD_WRKSRC}/bin/all_tests
-# tests as of 6.2.0: [--SUCCESS--] 199/199 tests 2810450/2810450 checks
-
.include <bsd.port.mk>