# Maintainer: Marian Buschsieweke # Contributor: Marian Buschsieweke pkgname=vtk pkgver=8.2.0 pkgrel=2 pkgdesc="A software system for 3D computer graphics, image processing and visualization" url="https://vtk.org/" arch="x86_64" # dependency pdal-dev is only provided for x86_64 license="BSD-3-Clause" makedepends="cmake boost-dev zlib-dev tk-dev glew-dev qt5-qtbase-dev qt5-qtx11extras-dev qt5-qttools-dev libpng-dev sqlite-dev doxygen ffmpeg-dev jpeg-dev libxml2-dev openmpi-dev gdal-dev pdal-dev unixodbc-dev " subpackages="$pkgname-doc $pkgname-dev" source=" https://www.vtk.org/files/release/${pkgver%.*}/VTK-$pkgver.tar.gz https://www.vtk.org/files/release/${pkgver%.*}/VTKData-$pkgver.tar.gz https://www.vtk.org/files/release/${pkgver%.*}/VTKLargeData-$pkgver.tar.gz pthreads_declaration.patch " builddir="$srcdir/VTK-$pkgver" options="!check" # No unit tests provided build() { mkdir -p build cd build cmake .. \ -Wno-dev \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_DOCUMENTATION=OFF \ -DVTK_USE_FFMPEG_ENCODER=ON \ -DModule_vtkIOPDAL=ON \ -DVTK_USE_LARGE_DATA=ON \ -DVTK_QT_VERSION="5" \ -DVTK_PYTHON_VERSION="3" \ -DVTK_CUSTOM_LIBRARY_SUFFIX="" \ -DVTK_INSTALL_INCLUDE_DIR=include/vtk \ -DCMAKE_BUILD_TYPE=Release make } package() { cd build make DESTDIR="$pkgdir" install } sha512sums="521bd4dabedbc24b0e80a314a34ecd7554b04af28a7973245e3a9cf99a09b995d1b8ac42305c8e53369f226a0a6da3cdb29105ba2c90b46492736ef717760286 VTK-8.2.0.tar.gz 517d0f6dfdb0c61f59df933f06d3a28c8a48ea684aaff311456213fe493e2a20128886144325fc4edfa376b2d375a2dae6c60ad6e3d5d2f4a7b0ac1d8545c87b VTKData-8.2.0.tar.gz 8a7ea3d5870b1e4ccb31c77b4c270d00208349da1b2938e957210db3ec1449b678c66edc2faee1d4514aca6d725f642abc91e10ab0c151f6743cad1c53485588 VTKLargeData-8.2.0.tar.gz ce72da79026681cbc2ad46e68cc555c42d232650b8a28b5b76ad4d5bbe3f576ebae3724f76e90a5d81e6ff1ab4b46f9631bfb2402c2f1ac6b493b6168ec7d192 pthreads_declaration.patch"