community/vtk to 9.2.6-5

This commit is contained in:
Kevin Mihelich 2023-05-03 19:12:26 +00:00
parent fcf253829d
commit ff9387b3de

View file

@ -15,60 +15,116 @@
pkgname=vtk
pkgver=9.2.6
pkgrel=4
pkgrel=5
pkgdesc="Software system for 3D computer graphics, image processing, and visualization"
arch=(x86_64)
url="https://www.vtk.org/"
license=(BSD)
depends=(gcc-libs double-conversion pugixml tbb libtiff)
makedepends=(cmake boost doxygen ffmpeg gdal git gnuplot java-environment=11
liblas libxt mariadb-libs openmp openmpi openvdb
openvr pdal postgresql-libs python-matplotlib qt5-base
qt5-tools qt5-declarative tk unixodbc wget
cgns cli11 eigen expat fmt freetype2 gl2ps glew hdf5 libjpeg
jsoncpp libjsoncpp.so libharu proj libxml2 lz4 xz python-mpi4py
netcdf libogg libpng rapidjson sqlite libtheora utf8cpp zfp zlib openxr verdict nlohmann-json)
depends=(
double-conversion
gcc-libs
glibc
libtiff
onetbb
pugixml
)
makedepends=(
boost
cgns
cli11
cmake
doxygen
eigen
expat
ffmpeg
fmt
freetype2
gdal
git
gl2ps
glew
gnuplot
hdf5
java-environment=11
jsoncpp
libharu
libjpeg
liblas
libogg
libpng
libtheora
libxml2
libxt
lz4
mariadb-libs
netcdf
nlohmann-json
openmp
openmpi
openvdb
openvr
openxr
pdal
postgresql-libs
proj
python-matplotlib
python-mpi4py
qt5-base
qt5-tools
qt5-declarative
rapidjson
sqlite
tk
unixodbc
utf8cpp
verdict
wget
xz
zfp
zlib
)
# pegtl: https://gitlab.kitware.com/vtk/vtk/-/issues/18151
# exprtk, ioss: not packaged
optdepends=('gnuplot: plotting tools'
'graphviz: drawing tools'
'java-runtime=11: java bindings'
'python: python bindings'
'python-mpi4py: OpenMPI python support'
'python-matplotlib: for Matplotlib rendering'
'openmpi: OpenMPI support'
'qt5-declarative: QML plugin'
'tk: tcl bindings'
cgns
ffmpeg
fmt
gdal
gl2ps
glew
hdf5
jsoncpp
libarchive
libharu
liblas
lz4
mariadb-libs
netcdf
openvdb
openvr
openxr
pdal
postgresql-libs
proj
sqlite
unixodbc
verdict)
source=(${url}/files/release/${pkgver%.*}/VTK-${pkgver}.tar.gz
)
optdepends=(
cgns
ffmpeg
fmt
gdal
gl2ps
glew
'gnuplot: plotting tools'
'graphviz: drawing tools'
hdf5
'java-runtime=11: java bindings'
jsoncpp
libarchive
libharu
liblas
lz4
mariadb-libs
netcdf
'openmpi: OpenMPI support'
openvdb
openvr
openxr
pdal
postgresql-libs
proj
'python: python bindings'
'python-matplotlib: for Matplotlib rendering'
'python-mpi4py: OpenMPI python support'
'qt5-declarative: QML plugin'
sqlite
'tk: tcl bindings'
unixodbc
verdict
)
options=(staticlibs)
source=(${url}/files/release/${pkgver%.*}/VTK-${pkgver}.tar.gz)
sha256sums=('06fc8d49c4e56f498c40fcb38a563ed8d4ec31358d0101e8988f0bb4d539dd12')
prepare() {
cd VTK-${pkgver}
cd ${pkgname^^}-${pkgver}
# We have a patched fmt
sed -i "s|8.1.0|9.0.0|" ThirdParty/fmt/CMakeLists.txt
}
@ -78,7 +134,7 @@ build() {
export JAVA_HOME=/usr/lib/jvm/default
# To set tcl lib path
local _tkver=$(echo 'puts $tcl_version' | tclsh)
cmake -B build -S VTK-${pkgver} \
cmake -B build -S ${pkgname^^}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LICENSEDIR=share/licenses/vtk \