git: 3ac3eab64cc4 - main - math/fastops: use better program names; run, but don't install the test.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Oct 2021 11:38:43 UTC
The branch main has been updated by danfe:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3ac3eab64cc4359a550525bbb86adc5457e711e1
commit 3ac3eab64cc4359a550525bbb86adc5457e711e1
Author: Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-10-29 11:37:22 +0000
Commit: Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-10-29 11:37:23 +0000
math/fastops: use better program names; run, but don't install the test.
---
math/fastops/Makefile | 12 ++++++++++++
math/fastops/pkg-plist | 5 ++---
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