git: 9c93c4945c24 - main - math/vtk8: Disable examples

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Wed, 09 Oct 2024 19:43:34 UTC
The branch main has been updated by diizzy:

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

commit 9c93c4945c249ecb5eec290964cd2f6580279de6
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-10-09 19:15:56 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-10-09 19:43:25 +0000

    math/vtk8: Disable examples
    
    Disable examples as they fail to build with Tiff 4.7.0.
    VTK 8 is superseded by VTK 9 (released in 2020), disable
    examples as they serve little to no purpose given that
    VTK 8 is "legacy".
    
    PR:             281764
    Reviewed by:    yuri
---
 math/vtk8/Makefile | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/math/vtk8/Makefile b/math/vtk8/Makefile
index 20a513ac5a48..6c098851c1c9 100644
--- a/math/vtk8/Makefile
+++ b/math/vtk8/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	vtk
 DISTVERSION=	8.2.0
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	math graphics
 MASTER_SITES=	http://www.vtk.org/files/release/${VTK_SHORT_VER}/
 PKGNAMESUFFIX=	8
@@ -29,7 +29,8 @@ CMAKE_ON=	BUILD_SHARED_LIBS \
 		VTK_INSTALL_NO_DOCUMENTATION VTK_USE_SYSTEM_EXPAT VTK_USE_SYSTEM_TIFF \
 		VTK_USE_SYSTEM_PNG VTK_USE_SYSTEM_JPEG VTK_USE_SYSTEM_FREETYPE VTK_USE_SYSTEM_ZLIB \
 		Module_vtkTestingCore Module_vtkTestingRendering
-CMAKE_ARGS+=	-DVTK_INSTALL_LIBRARY_DIR=lib/vtk-${VTK_SHORT_VER} \
+CMAKE_ARGS+=	-DBUILD_EXAMPLES:BOOL=false \
+		-DVTK_INSTALL_LIBRARY_DIR=lib/vtk-${VTK_SHORT_VER} \
 		-DVTK_INSTALL_ARCHIVE_DIR=lib/vtk-${VTK_SHORT_VER} \
 		-DVTK_INSTALL_QT_DIR=/${QT_LIBDIR_REL}/plugins/designer \
 		-DSTAGEDIR=${STAGEDIR}
@@ -40,7 +41,7 @@ DOCSDIR=	${PREFIX}/share/doc/vtk-${VTK_SHORT_VER}
 DATADIR=	${PREFIX}/share/vtk-${VTK_SHORT_VER}
 
 # Options
-OPTIONS_DEFINE=	DESIGNER DOCS OSMESA QT5 EXAMPLES
+OPTIONS_DEFINE=	DESIGNER DOCS OSMESA QT5
 OPTIONS_DEFAULT=	MPI QT5
 OSMESA_DESC=	Use Mesa for off-screen rendering
 DESIGNER_DESC=	Build the Qt Designer plugin
@@ -99,8 +100,6 @@ TCLTK_CMAKE_ON=		-DTCL_INCLUDE_PATH:PATH=${TCL_INCLUDEDIR} \
 DOCS_CMAKE_BOOL=	BUILD_DOCUMENTATION
 DOCS_BUILD_DEPENDS=	doxygen:devel/doxygen
 
-EXAMPLES_CMAKE_BOOL=	BUILD_EXAMPLES
-
 # Mangling so that it will build when science/netcdf is installed.
 post-patch:
 	@${MV} ${WRKSRC}/ThirdParty/netcdf/vtknetcdf/include/netcdf.h \