void-packages/srcpkgs/vtk/template

56 lines
1.8 KiB
Bash

# Template file for 'vtk'
#
# vtk can be huge, especially with -DVTK_BUILD_ALL_MODULES=ON" or qt5
# Here only the bare minimum set of modules for freecad is enabled
pkgname=vtk
version=8.1.0
revision=7
wrksrc=VTK-${version}
build_style=cmake
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"
# 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 proj-devel hdf5-devel netcdf-devel
libxml2-devel jsoncpp-devel openmpi-devel libogg-devel libtheora-devel"
short_desc="System for 3D computer graphics, image processing, and visualization"
maintainer="Piraty <piraty1@inbox.ru>"
license="BSD-3-Clause"
homepage="https://www.vtk.org"
distfiles="https://www.vtk.org/files/release/${version:0:3}/VTK-${version}.tar.gz"
checksum=6e269f07b64fb13774f5925161fb4e1f379f4e6a0131c8408c555f6b58ef3cb7
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
}
}