summaryrefslogtreecommitdiff
path: root/security/john
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2022-01-22 13:33:26 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2022-01-22 13:33:26 +0000
commitac6ca878ab0e7358af6ead8c3ad7a5965d79d469 (patch)
tree07592495f63ef4c83f1ba9c09a597fd7b1d88e62 /security/john
parentdatabases/grass8: fix build on powerpc (diff)
security/john: fix build on powerpc
Disable simd code, it seems it's written specifically for 64-bits.
Diffstat (limited to 'security/john')
-rw-r--r--security/john/Makefile6
1 files changed, 6 insertions, 0 deletions
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\