git: 799e562284fd - main - devel/rkcommon: fix build on non-ARM non-x86
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Mar 2022 14:38:39 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=799e562284fd4df20287cf96cc2920b72d43aad6
commit 799e562284fd4df20287cf96cc2920b72d43aad6
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-03-25 14:28:58 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-03-25 14:28:58 +0000
devel/rkcommon: fix build on non-ARM non-x86
Disable SIMD, since it's not available on POWER or RISC-V.
---
devel/rkcommon/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/devel/rkcommon/Makefile b/devel/rkcommon/Makefile
index 2752a033e403..eb1f0d1f728b 100644
--- a/devel/rkcommon/Makefile
+++ b/devel/rkcommon/Makefile
@@ -23,4 +23,10 @@ CMAKE_TESTING_ON= BUILD_TESTING
PLIST_SUB= PORTVERSION=${PORTVERSION}
+.include <bsd.port.options.mk>
+
+.if ${ARCH} != aarch64 && ${ARCH} != amd64 && !${ARCH:Marmv?} && ${ARCH} != i386
+CMAKE_ARGS+= -DRKCOMMON_NO_SIMD:BOOL=ON
+.endif
+
.include <bsd.port.mk>