git: f8395d99410d - main - science/lammps: Change VTK dependency from VTK-8 to VTK-9; Add option NETCDF

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 14 Nov 2022 04:53:47 UTC
The branch main has been updated by yuri:

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

commit f8395d99410d0a9b7b3d92b9624ec07f3b1d6e6c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-11-14 04:52:28 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-11-14 04:53:43 +0000

    science/lammps: Change VTK dependency from VTK-8 to VTK-9; Add option NETCDF
    
    Also correct some other options.
---
 science/lammps/Makefile | 39 ++++++++++++++++++++++-----------------
 1 file changed, 22 insertions(+), 17 deletions(-)

diff --git a/science/lammps/Makefile b/science/lammps/Makefile
index b71779d499d1..df87211d0985 100644
--- a/science/lammps/Makefile
+++ b/science/lammps/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	lammps
 PORTVERSION=	${GH_TAGNAME:C/(stable|patch)_([0-9]{1,2})([A-Z][a-z][a-z])([0-9]{4})/\4.\3.\2/S/Jan/01/S/Feb/02/S/Mar/03/S/Apr/04/S/May/05/S/Jun/06/S/Jul/07/S/Aug/08/S/Sep/09/S/Oct/10/S/Nov/11/S/Dec/12/S/_update/./}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	science
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -52,17 +52,17 @@ CMAKE_ON+=	PKG_VORONOI PKG_YAFF
 
 OPTIONS_DEFINE=		EXCEPTIONS JPEG PNG GZIP FFMPEG
 OPTIONS_GROUP=		PARALLEL PACKAGES
-OPTIONS_DEFAULT=	EXCEPTIONS MPI OPENMP JPEG PNG GZIP FFMPEG H5MD KIM KOKKOS LATTE PLUMED VORONOI ${OPTIONS_DEFAULT_${CHOSEN_COMPILER_TYPE}}
+OPTIONS_DEFAULT=	EXCEPTIONS MPI OPENMP JPEG PNG GZIP FFMPEG H5MD KIM KOKKOS LATTE NETCDF PLUMED VORONOI ${OPTIONS_DEFAULT_${CHOSEN_COMPILER_TYPE}}
 OPTIONS_SUB=		yes
 PARALLEL_DESC=		Enable parallelizations:
 PACKAGES_DESC=		Enable packages:
 OPTIONS_GROUP_PARALLEL=	MPI OPENMP ${OPTIONS_DEFINE_${CHOSEN_COMPILER_TYPE}}
-OPTIONS_GROUP_PACKAGES=	H5MD KIM KOKKOS LATTE PLUMED VORONOI VTK
+OPTIONS_GROUP_PACKAGES=	H5MD KIM KOKKOS LATTE NETCDF PLUMED VORONOI VTK
 
 EXCEPTIONS_DESC=	Enable the use of C++ exceptions
 EXCEPTIONS_CMAKE_BOOL=	LAMMPS_EXCEPTIONS
 
-MPI_CMAKE_BOOL=		BUILD_MPI PKG_MPIIO PKG_USER-LB
+MPI_CMAKE_BOOL=		BUILD_MPI PKG_MPIIO
 MPI_LIB_DEPENDS=	libmpi.so:net/mpich
 MPI_USES=		compiler:c11
 
@@ -79,8 +79,8 @@ PNG_LIB_DEPENDS=	libpng.so:graphics/png
 GZIP_DESC=		Enable GZIP support
 GZIP_CMAKE_BOOL=	WITH_GZIP
 
-H5MD_DESC=		USER-H5MD package based on libhdf5
-H5MD_CMAKE_BOOL=	PKG_USER-H5MD
+H5MD_DESC=		H5MD package based on the libhdf5 library
+H5MD_CMAKE_BOOL=	PKG_H5MD
 H5MD_LIB_DEPENDS=	libhdf5.so:science/hdf5 \
 			libsz.so:science/libaec
 
@@ -92,30 +92,34 @@ KIM_LIB_DEPENDS=	libkim-api.so:science/kim-api \
 			libcurl.so:ftp/curl
 KIM_RUN_DEPENDS=	openkim-models>0:science/openkim-models
 
-KOKKOS_DESC=		kokkos package based on the libkokkos library
+KOKKOS_DESC=		Kokkos package based on the libkokkos library
 KOKKOS_CMAKE_BOOL=	PKG_KOKKOS EXTERNAL_KOKKOS
 KOKKOS_LIB_DEPENDS=	libkokkoscore.so:devel/kokkos
 
-LATTE_DESC=		latte package based on the liblatte library
+LATTE_DESC=		Latte package based on the liblatte library
 LATTE_CMAKE_BOOL=	PKG_LATTE
 LATTE_LIB_DEPENDS=	liblatte.so:science/latte
 
-PLUMED_DESC=		plumed package based on the plumed library
+NETCDF_DESC=		NetCDF package based on the NetCDF library
+NETCDF_CMAKE_BOOL=	PKG_NETCDF
+NETCDF_LIB_DEPENDS=	libnetcdf.so:science/netcdf
+
+PLUMED_DESC=		Plumed package based on the plumed library
 PLUMED_USES=		pkgconfig
-PLUMED_CMAKE_BOOL=	PKG_USER-PLUMED
+PLUMED_CMAKE_BOOL=	PKG_PLUMED
 PLUMED_CMAKE_ON=	-DPLUMED_MODE=shared
 PLUMED_LIB_DEPENDS=	libplumed.so:science/plumed
 
-VORONOI_DESC=		voro++, Voronoi tessellation package
+VORONOI_DESC=		Voro++, Voronoi tessellation package
 VORONOI_CMAKE_BOOL=	PKG_VORONOI
 VORONOI_LIB_DEPENDS=	libvoro++.so:science/voro++
 
-VTK_DESC=		USER-VTK package based on the external vtk package
-VTK_CMAKE_BOOL=		PKG_USER-VTK
-VTK_CMAKE_ON=		-DVTK_DIR:PATH=${LOCALBASE}/lib/cmake/vtk-9.1
-VTK_USES=		qt:5 xorg
-VTK_USE=		qt=core,gui,sql,widgets xorg=ice,sm,x11,xext,xt
-VTK_LIB_DEPENDS=	libvtkImagingMath-8.2.so:math/vtk8 \
+VTK_DESC=		VTK package based on the external VTK-${VTK_VER:R} library
+VTK_CMAKE_BOOL=		PKG_VTK
+VTK_CMAKE_ON=		-DVTK_DIR:PATH=${LOCALBASE}/lib/cmake/vtk-${VTK_VER}
+VTK_USES=		gl qt:5 xorg
+VTK_USE=		GL=opengl qt=core,declarative,gui,network,opengl,sql,widgets xorg=ice,sm,x11,xext,xt
+VTK_LIB_DEPENDS=	libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} \
 			libexpat.so:textproc/expat2 \
 			libfreetype.so:print/freetype2 \
 			libtiff.so:graphics/tiff
@@ -149,4 +153,5 @@ post-patch-FFMPEG-off:
 post-install:
 	@${RM} -r ${STAGEDIR}${PREFIX}/lib/python*
 
+.include <../../math/vtk9/Makefile.version>
 .include <bsd.port.mk>