git: ac6ca878ab0e - main - security/john: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Jan 2022 13:40:12 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ac6ca878ab0e7358af6ead8c3ad7a5965d79d469
commit ac6ca878ab0e7358af6ead8c3ad7a5965d79d469
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-01-22 13:33:26 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-01-22 13:33:26 +0000
security/john: fix build on powerpc
Disable simd code, it seems it's written specifically for 64-bits.
---
security/john/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/security/john/Makefile b/security/john/Makefile
index 3db81fb3ea75..5fb212f3c798 100644
--- a/security/john/Makefile
+++ b/security/john/Makefile
@@ -48,6 +48,12 @@ OPENCL_USE= PERL5=build
OPENMP_CONFIGURE_OFF= --disable-openmp
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+CONFIGURE_ARGS+= --disable-simd
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/params.h
@${REINPLACE_CMD} -e '/^host_cpu=/s|$$| ; case $$host_cpu in\