# Template file for 'vtk' pkgname=vtk version=8.2.0 revision=3 wrksrc=VTK-${version} build_style=cmake # vtk can be huge, especially with -DVTK_BUILD_ALL_MODULES=ON" # Here only the core modules set for freecad is getting built configure_args="-DBUILD_SHARED_LIBS=ON -DVTK_USE_SYSTEM_LIBRARIES=ON -DVTK_FORBID_DOWNLOADS=ON -DVTK_Group_StandAlone=ON -DModule_vtkIOMPIParallel=ON -DModule_vtkParallelMPI=ON -DVTK_USE_SYSTEM_LIBPROJ=OFF" # fails, so use built-in # vtk needs specific libharu patches: # https://github.com/libharu/libharu/pull/157 configure_args+=" -DVTK_USE_SYSTEM_LIBHARU=OFF" # fails, so use built-in # netcdf XBPS package lacks of c++ interface ? # ArchLinux: "VTK fails to compile with recent netcdf-cxx package, VTK should be ported to the latest API" configure_args+=" -DVTK_USE_SYSTEM_NETCDFCPP=OFF" # fails, so use built-in # vtk relies on gl2psTextOptColorBL(), which is not yet in gl2ps 1.4.0 configure_args+=" -DVTK_USE_SYSTEM_GL2PS=OFF" makedepends="zlib-devel freetype-devel liblz4-devel expat-devel MesaLib-devel libXt-devel libjpeg-turbo-devel tiff-devel hdf5-devel netcdf-devel libxml2-devel jsoncpp-devel openmpi-devel libogg-devel libtheora-devel eigen double-conversion-devel glew-devel pugixml-devel sqlite-devel" short_desc="System for 3D computer graphics, image processing, and visualization" maintainer="Piraty " license="BSD-3-Clause" homepage="https://www.vtk.org" distfiles="https://www.vtk.org/files/release/${version:0:3}/VTK-${version}.tar.gz" checksum=34c3dc775261be5e45a8049155f7228b6bd668106c72a3c435d95730d17d57bb nocross="hdf5 is nocross" post_install() { rm ${PKGDESTDIR}/usr/share/doc/${pkgname}-*/Copyright.txt vlicense Copyright.txt } vtk-devel_package() { short_desc+=" - development files" depends="${sourcepkg}>=${version}_${revision}" pkg_install() { vmove usr/include vmove usr/lib/*.so vmove usr/lib/cmake } }