Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2026 22:32:42 +0000
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 527949333111 - main - science/ttk: chase Paraview 6.0.1
Message-ID:  <6977eb8a.3901d.727d1d4@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by thierry:

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

commit 52794933311187e834d0533ddf1e5754f9a8645a
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2026-01-26 22:29:28 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2026-01-26 22:32:36 +0000

    science/ttk: chase Paraview 6.0.1
    
    Patch taken from upstream: see
    https://github.com/topology-tool-kit/ttk/pull/1113
---
 science/ttk/Makefile                               |  2 +-
 ...atch-core_vtk_ttkWRLExporter_ttkWRLExporter.cpp | 57 ++++++++++++++++++++++
 2 files changed, 58 insertions(+), 1 deletion(-)

diff --git a/science/ttk/Makefile b/science/ttk/Makefile
index fa46ea465c0b..279a40893b09 100644
--- a/science/ttk/Makefile
+++ b/science/ttk/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	ttk
 DISTVERSION=	1.3.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	science
 
 MAINTAINER=	yuri@FreeBSD.org
diff --git a/science/ttk/files/patch-core_vtk_ttkWRLExporter_ttkWRLExporter.cpp b/science/ttk/files/patch-core_vtk_ttkWRLExporter_ttkWRLExporter.cpp
new file mode 100644
index 000000000000..eee1522a3e12
--- /dev/null
+++ b/science/ttk/files/patch-core_vtk_ttkWRLExporter_ttkWRLExporter.cpp
@@ -0,0 +1,57 @@
+--- core/vtk/ttkWRLExporter/ttkWRLExporter.cpp.orig	2024-09-20 10:44:28 UTC
++++ core/vtk/ttkWRLExporter/ttkWRLExporter.cpp
+@@ -22,6 +22,7 @@
+ #include <vtkTransform.h>
+ #include <vtkUnsignedCharArray.h>
+ #include <vtkVRMLExporter.h>
++#include <vtkVersionMacros.h>
+ 
+ // base code includes
+ #include <Debug.h>
+@@ -145,7 +146,12 @@ TTKWRLEXPORTER_EXPORT void vtkVRMLExporter::WriteAnAct
+     fprintf(fp, "            solid FALSE\n");
+ 
+     if(!pointDataWritten) {
++
++#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 4, 20250513)
++      this->WritePointData(points, normals, tcoords, colors, false, fp);
++#else
+       this->WritePointData(points, normals, tcoords, colors, fp);
++#endif
+       pointDataWritten = 1;
+     } else {
+       fprintf(fp, "            coord  USE VTKcoordinates\n");
+@@ -189,7 +195,11 @@ TTKWRLEXPORTER_EXPORT void vtkVRMLExporter::WriteAnAct
+     fprintf(fp, "          geometry IndexedFaceSet {\n");
+ 
+     if(!pointDataWritten) {
++#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 4, 20250513)
++      this->WritePointData(points, normals, tcoords, colors, false, fp);
++#else
+       this->WritePointData(points, normals, tcoords, colors, fp);
++#endif
+       pointDataWritten = 1;
+     } else {
+       fprintf(fp, "            coord  USE VTKcoordinates\n");
+@@ -238,7 +248,11 @@ TTKWRLEXPORTER_EXPORT void vtkVRMLExporter::WriteAnAct
+     fprintf(fp, "          geometry IndexedLineSet {\n");
+ 
+     if(!pointDataWritten) {
++#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 4, 20250513)
++      this->WritePointData(points, nullptr, nullptr, colors, false, fp);
++#else
+       this->WritePointData(points, nullptr, nullptr, colors, fp);
++#endif
+     } else {
+       fprintf(fp, "            coord  USE VTKcoordinates\n");
+ 
+@@ -440,6 +454,9 @@ TTKWRLEXPORTER_EXPORT void
+                                   vtkDataArray *normals,
+                                   vtkDataArray *tcoords,
+                                   vtkUnsignedCharArray *colors,
++#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 4, 20250513)
++                                  bool vtkNotUsed(cellData),
++#endif
+                                   FILE *fp) {
+ 
+   double *p;


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6977eb8a.3901d.727d1d4>