aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2021-10-29 11:37:22 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2021-10-29 11:37:23 +0000
commit3ac3eab64cc4359a550525bbb86adc5457e711e1 (patch)
tree26aa580874cf854905186e4e06a4e5cc90638063
parent3b8065a2adbf0f8acae9c980961cb5491034a1ad (diff)
downloadports-3ac3eab64cc4359a550525bbb86adc5457e711e1.tar.gz
ports-3ac3eab64cc4359a550525bbb86adc5457e711e1.zip
math/fastops: use better program names; run, but don't install the test.
-rw-r--r--math/fastops/Makefile12
-rw-r--r--math/fastops/pkg-plist5
2 files changed, 14 insertions, 3 deletions
diff --git a/math/fastops/Makefile b/math/fastops/Makefile
index 3d039e2b74af..31f32a02e4e7 100644
--- a/math/fastops/Makefile
+++ b/math/fastops/Makefile
@@ -17,4 +17,16 @@ USES= cmake compiler:c++17-lang
USE_GITHUB= yes
GH_ACCOUNT= yandex
+do-test:
+ ${TEST_WRKSRC}/${PORTNAME}/ut/${PORTNAME}_test
+
+post-stage:
+# Rename generically-named binaries to avoid potential clashes
+.for p in benchmark eval
+ ${MV} ${STAGEDIR}${PREFIX}/bin/${p} \
+ ${STAGEDIR}${PREFIX}/bin/${PORTNAME}_${p}
+.endfor
+# Remove the test program (we run tests, but not install them)
+ ${RM} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}_test
+
.include <bsd.port.mk>
diff --git a/math/fastops/pkg-plist b/math/fastops/pkg-plist
index 736d23848c3a..297efb5e412d 100644
--- a/math/fastops/pkg-plist
+++ b/math/fastops/pkg-plist
@@ -1,6 +1,5 @@
-bin/benchmark
-bin/eval
-bin/fastops_test
+bin/fastops_benchmark
+bin/fastops_eval
include/avx/ops_avx.h
include/avx2/ops_avx2.h
include/core/FastIntrinsics.h