git: 57712b0ba073 - main - math/vtk9: fix build on powerpc64le
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 01 Nov 2022 13:26:36 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=57712b0ba0736b7861c39d91968ad22a11cadfc6
commit 57712b0ba0736b7861c39d91968ad22a11cadfc6
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-11-01 13:18:58 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-11-01 13:26:09 +0000
math/vtk9: fix build on powerpc64le
As with other ports bundling sqlite3, it fails to build on powerpc64le because
sqlite3 assumes big-endian on all powerpc*.
---
math/vtk9/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/math/vtk9/Makefile b/math/vtk9/Makefile
index 6b6aa3281f70..f8d6979ac5e9 100644
--- a/math/vtk9/Makefile
+++ b/math/vtk9/Makefile
@@ -23,6 +23,7 @@ USES= alias cmake compiler:c++11-lang gl jpeg localbase xorg
USE_LDCONFIG= ${PREFIX}/lib/vtk-${VTK_SHORT_VER}
USE_XORG= ice x11 xt xext sm xcursor xfixes xrender
+CFLAGS_powerpc64le= -DSQLITE_BYTEORDER=1234
CMAKE_ON= BUILD_SHARED_LIBS \
VTK_INSTALL_NO_DOCUMENTATION \
Module_vtkTestingCore Module_vtkTestingRendering