git: ed3faf606ebd - main - misc/cuttlefish: fix build on powerpc / powerpc64 / powerpc64le

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 26 Jun 2022 12:05:07 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ed3faf606ebd99dc872da324b8d70bfec753e0e8

commit ed3faf606ebd99dc872da324b8d70bfec753e0e8
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-06-26 12:04:00 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-06-26 12:04:59 +0000

    misc/cuttlefish: fix build on powerpc / powerpc64 / powerpc64le
    
    Disable SSE and use Altivec.
---
 misc/cuttlefish/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/misc/cuttlefish/Makefile b/misc/cuttlefish/Makefile
index a8416b1907f4..bb2633766b5f 100644
--- a/misc/cuttlefish/Makefile
+++ b/misc/cuttlefish/Makefile
@@ -32,4 +32,10 @@ CMAKE_OFF=	CUTTLEFISH_BUILD_DOCS CUTTLEFISH_BUILD_TESTS
 CMAKE_ON=	CUTTLEFISH_SHARED
 CMAKE_TESTING_ON=	CUTTLEFISH_BUILD_TESTS
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc || ${ARCH} == powerpc64 || ${ARCH} == powerpc64le
+CXXFLAGS+=	-DSQUISH_USE_ALTIVEC -DSQUISH_USE_SSE=0
+.endif
+
 .include <bsd.port.mk>