aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorjwb <jwb@FreeBSD.org>2018-06-27 08:04:28 +0800
committerjwb <jwb@FreeBSD.org>2018-06-27 08:04:28 +0800
commitb4c26cd8b8204038c15845762549bde039ad34b4 (patch)
treea1f459689bf985047180d6948aa8aa7dfe7ab2e2 /science
parent32afa426fe715704c9988d26de549ed25f258916 (diff)
downloadfreebsd-ports-gnome-b4c26cd8b8204038c15845762549bde039ad34b4.tar.gz
freebsd-ports-gnome-b4c26cd8b8204038c15845762549bde039ad34b4.tar.zst
freebsd-ports-gnome-b4c26cd8b8204038c15845762549bde039ad34b4.zip
science/paraview: Fix protobuf conflict, upgrade to 5.5.1, modernize options
PR: 229116 Reported by: jwb Approved by: jrm (mentor) Differential Revision: https://reviews.freebsd.org/D16024
Diffstat (limited to 'science')
-rw-r--r--science/paraview/Makefile30
-rw-r--r--science/paraview/distinfo6
-rw-r--r--science/paraview/files/patch-CommandLineExecutables_CMakeLists.txt11
-rw-r--r--science/paraview/files/patch-ParaViewCore_ClientServerCore_Default_vtkPVFileInformation.h (renamed from science/paraview/files/patch-vtkPVFileInformation.h)4
-rw-r--r--science/paraview/files/patch-ParaViewCore_VTKExtensions_Default_vtkPhastaReader.cxx (renamed from science/paraview/files/patch-vtkPhastaReader.cxx)6
-rw-r--r--science/paraview/files/patch-Plugins_CDIReader_cdilib.c4
-rw-r--r--science/paraview/files/patch-VTK_IO_EnSight_vtkEnSight6BinaryReader.cxx (renamed from science/paraview/files/patch-vtkEnSight6BinaryReader.cxx)4
-rw-r--r--science/paraview/files/patch-VTK_IO_EnSight_vtkEnSightGoldBinaryReader.cxx (renamed from science/paraview/files/patch-vtkEnSightGoldBinaryReader.cxx)4
-rw-r--r--science/paraview/pkg-plist2
9 files changed, 36 insertions, 35 deletions
diff --git a/science/paraview/Makefile b/science/paraview/Makefile
index bd8908f1619e..16842a5f31c7 100644
--- a/science/paraview/Makefile
+++ b/science/paraview/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= paraview
-DISTVERSION= 5.5.0
+DISTVERSION= 5.5.1
CATEGORIES= science graphics
MASTER_SITES= http://www.paraview.org/files/v${VERMAJORMINOR}/
DISTNAME= ParaView-v${PORTVERSION}
@@ -26,12 +26,11 @@ LIB_DEPENDS= libhdf5.so:science/hdf5 \
libpcre.so:devel/pcre \
libffi.so:devel/libffi \
libdrm.so:graphics/libdrm \
- libfontconfig.so:x11-fonts/fontconfig
+ libfontconfig.so:x11-fonts/fontconfig \
+ libprotobuf.so:devel/protobuf
RUN_DEPENDS= bash:shells/bash \
${PYTHON_SITELIBDIR}/matplotlib/pyplot.py:math/py-matplotlib@${PY_FLAVOR}
-CONFLICTS_INSTALL= protobuf # https://gitlab.kitware.com/paraview/paraview/issues/18225
-
USES= alias cmake:outsource jpeg localbase python:2.7 shebangfix
USE_QT5= core gui help network sql widgets x11extras buildtools_build qmake_build
USE_GL= gl glu
@@ -46,6 +45,7 @@ CMAKE_ARGS+= -DBUILD_SHARED_LIBS="ON" \
-DVTK_USE_SYSTEM_ZLIB="ON" \
-DVTK_USE_SYSTEM_FREETYPE="ON" \
-DVTK_USE_SYSTEM_EXPAT="ON" \
+ -DVTK_USE_SYSTEM_PROTOBUF="ON" \
-DVTK_USE_X="ON" \
-DVTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T=1 \
-DPARAVIEW_ENABLE_PYTHON:BOOL="ON" \
@@ -59,28 +59,20 @@ SHEBANG_FILES= Catalyst/catalyze.py VTK/Examples/SearchScript.sh \
VTK/Utilities/Maintenance/*.sh
OPTIONS_DEFINE= OSMESA GL2PS DOCS
+OPTIONS_SUB= yes
OSMESA_DESC= Use Mesa for off-screen rendering
GL2PS_DESC= Install support conversion OpenGL to PostScript
# VTKMPEG2 "Install patented MPEG2 encoder module" Off \
VERMAJORMINOR= ${PORTVERSION:R}
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MOSMESA}
-LIB_DEPENDS+= libOSMesa.so:graphics/libosmesa
-CMAKE_ARGS+= -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
- -DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \
- -DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa.so
-.endif
+OSMESA_LIB_DEPENDS= libOSMesa.so:graphics/libosmesa
+OSMESA_CMAKE_BOOL= VTK_OPENGL_HAS_OSMESA
+OSMESA_CMAKE_ON= -DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \
+ -DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa.so
-.if ${PORT_OPTIONS:MGL2PS}
-LIB_DEPENDS+= libgl2ps.so:print/gl2ps
-CMAKE_ARGS+= -DVTK_USE_GL2PS:BOOL=ON
-PLIST_SUB+= GL2PS=""
-.else
-PLIST_SUB+= GL2PS="@comment "
-.endif
+GL2PS_LIB_DEPENDS= libgl2ps.so:print/gl2ps
+GL2PS_CMAKE_BOOL= VTK_USE_GL2PS
PLIST_SUB+= VERMAJORMINOR=${VERMAJORMINOR}
CMAKE2INST= ParaViewConfig.cmake \
diff --git a/science/paraview/distinfo b/science/paraview/distinfo
index 701f21ec2dd3..1f411163982e 100644
--- a/science/paraview/distinfo
+++ b/science/paraview/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1527607320
-SHA256 (ParaView-v5.5.0.tar.gz) = 1b619e326ff574de808732ca9a7447e4cd14e94ae6568f55b6581896cd569dff
-SIZE (ParaView-v5.5.0.tar.gz) = 51414419
+TIMESTAMP = 1529035117
+SHA256 (ParaView-v5.5.1.tar.gz) = a6e67a95a7a5711a2b5f95f38ccbff4912262b3e1b1af7d6b9afe8185aa85c0d
+SIZE (ParaView-v5.5.1.tar.gz) = 51410785
diff --git a/science/paraview/files/patch-CommandLineExecutables_CMakeLists.txt b/science/paraview/files/patch-CommandLineExecutables_CMakeLists.txt
new file mode 100644
index 000000000000..93a6f27c523a
--- /dev/null
+++ b/science/paraview/files/patch-CommandLineExecutables_CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CommandLineExecutables/CMakeLists.txt.orig 2018-06-01 19:23:15 UTC
++++ CommandLineExecutables/CMakeLists.txt
+@@ -67,7 +67,7 @@ foreach (vtk_module IN LISTS VTK_MODULES
+ if (vtk_module_library STREQUAL "optimized" OR
+ vtk_module_library STREQUAL "debug")
+ unset(vtk_module_library_name)
+- elseif (vtk_module_library MATCHES "^-l")
++ elseif (vtk_module_library MATCHES "^-l|^-p")
+ string(SUBSTRING "${vtk_module_library}" 2 -1 vtk_module_library)
+ find_library(vtk_module_library_name "${vtk_module_library}")
+ elseif (IS_ABSOLUTE "${vtk_module_library}")
diff --git a/science/paraview/files/patch-vtkPVFileInformation.h b/science/paraview/files/patch-ParaViewCore_ClientServerCore_Default_vtkPVFileInformation.h
index da9ef2cf0e95..c200a77b33c3 100644
--- a/science/paraview/files/patch-vtkPVFileInformation.h
+++ b/science/paraview/files/patch-ParaViewCore_ClientServerCore_Default_vtkPVFileInformation.h
@@ -1,5 +1,5 @@
---- ParaViewCore/ClientServerCore/Default/vtkPVFileInformation.h.orig 2018-05-31 23:28:45.128756000 +0700
-+++ ParaViewCore/ClientServerCore/Default/vtkPVFileInformation.h 2018-05-31 23:28:56.798284000 +0700
+--- ParaViewCore/ClientServerCore/Default/vtkPVFileInformation.h.orig 2018-06-01 19:23:15 UTC
++++ ParaViewCore/ClientServerCore/Default/vtkPVFileInformation.h
@@ -31,6 +31,7 @@
#include "vtkPVInformation.h"
diff --git a/science/paraview/files/patch-vtkPhastaReader.cxx b/science/paraview/files/patch-ParaViewCore_VTKExtensions_Default_vtkPhastaReader.cxx
index 3c17d0dfc0ce..7755ae11b00e 100644
--- a/science/paraview/files/patch-vtkPhastaReader.cxx
+++ b/science/paraview/files/patch-ParaViewCore_VTKExtensions_Default_vtkPhastaReader.cxx
@@ -1,6 +1,6 @@
---- ParaViewCore/VTKExtensions/Default/vtkPhastaReader.cxx.orig 2018-05-31 00:13:08.178409000 +0700
-+++ ParaViewCore/VTKExtensions/Default/vtkPhastaReader.cxx 2018-05-31 18:19:21.545706000 +0700
-@@ -200,7 +200,7 @@
+--- ParaViewCore/VTKExtensions/Default/vtkPhastaReader.cxx.orig 2018-06-01 19:23:15 UTC
++++ ParaViewCore/VTKExtensions/Default/vtkPhastaReader.cxx
+@@ -200,7 +200,7 @@ int vtkPhastaReader::readHeader(FILE* fi
{
text_header = new char[real_length + 1];
strncpy(text_header, Line, real_length);
diff --git a/science/paraview/files/patch-Plugins_CDIReader_cdilib.c b/science/paraview/files/patch-Plugins_CDIReader_cdilib.c
index 518d012be954..c04873751895 100644
--- a/science/paraview/files/patch-Plugins_CDIReader_cdilib.c
+++ b/science/paraview/files/patch-Plugins_CDIReader_cdilib.c
@@ -1,5 +1,5 @@
---- Plugins/CDIReader/cdilib.c.orig 2018-06-02 11:15:13.052742000 +0700
-+++ Plugins/CDIReader/cdilib.c 2018-06-02 11:15:49.323204000 +0700
+--- Plugins/CDIReader/cdilib.c.orig 2018-06-01 19:23:15 UTC
++++ Plugins/CDIReader/cdilib.c
@@ -47,7 +47,7 @@
#define _XOPEN_SOURCE 600
#endif
diff --git a/science/paraview/files/patch-vtkEnSight6BinaryReader.cxx b/science/paraview/files/patch-VTK_IO_EnSight_vtkEnSight6BinaryReader.cxx
index 31c6adacb603..eaa558af2ff4 100644
--- a/science/paraview/files/patch-vtkEnSight6BinaryReader.cxx
+++ b/science/paraview/files/patch-VTK_IO_EnSight_vtkEnSight6BinaryReader.cxx
@@ -1,5 +1,5 @@
---- VTK/IO/EnSight/vtkEnSight6BinaryReader.cxx.orig 2018-05-30 20:27:53.507473000 +0700
-+++ VTK/IO/EnSight/vtkEnSight6BinaryReader.cxx 2018-05-30 20:34:17.396774000 +0700
+--- VTK/IO/EnSight/vtkEnSight6BinaryReader.cxx.orig 2018-06-01 19:23:15 UTC
++++ VTK/IO/EnSight/vtkEnSight6BinaryReader.cxx
@@ -36,7 +36,7 @@
#if defined(_WIN32)
# define VTK_STAT_STRUCT struct _stat64
diff --git a/science/paraview/files/patch-vtkEnSightGoldBinaryReader.cxx b/science/paraview/files/patch-VTK_IO_EnSight_vtkEnSightGoldBinaryReader.cxx
index fdfd1c20681e..db1a1aa444a6 100644
--- a/science/paraview/files/patch-vtkEnSightGoldBinaryReader.cxx
+++ b/science/paraview/files/patch-VTK_IO_EnSight_vtkEnSightGoldBinaryReader.cxx
@@ -1,5 +1,5 @@
---- VTK/IO/EnSight/vtkEnSightGoldBinaryReader.cxx.orig 2018-05-30 20:37:02.610942000 +0700
-+++ VTK/IO/EnSight/vtkEnSightGoldBinaryReader.cxx 2018-05-30 20:37:18.549087000 +0700
+--- VTK/IO/EnSight/vtkEnSightGoldBinaryReader.cxx.orig 2018-06-01 19:23:15 UTC
++++ VTK/IO/EnSight/vtkEnSightGoldBinaryReader.cxx
@@ -37,7 +37,7 @@
#if defined(_WIN32)
# define VTK_STAT_STRUCT struct _stat64
diff --git a/science/paraview/pkg-plist b/science/paraview/pkg-plist
index e27796be69ad..e31ec139a90a 100644
--- a/science/paraview/pkg-plist
+++ b/science/paraview/pkg-plist
@@ -834,8 +834,6 @@ lib/cmake/paraview-%%VERMAJORMINOR%%/vtkm/VTKmMacros.cmake
lib/cmake/paraview-%%VERMAJORMINOR%%/vtkm/VTKmTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/paraview-%%VERMAJORMINOR%%/vtkm/VTKmTargets.cmake
lib/libQtTesting-pv%%VERMAJORMINOR%%.so
-lib/libprotobuf-lite.so
-lib/libprotobuf.so
lib/libvtkAcceleratorsVTKm-pv%%VERMAJORMINOR%%.so
lib/libvtkAcceleratorsVTKm-pv%%VERMAJORMINOR%%.so.1
lib/libvtkAcceleratorsVTKmPython27D-pv%%VERMAJORMINOR%%.so