summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2372fc187bbf5c98395ee0a534cc69e3e2e9a24f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: Michael Migliore <mcmigliore+aur@gmail.com>

pkgname=vtk9
pkgver=9.0.1
pkgrel=2
pkgdesc='A software system for 3D computer graphics, image processing, and visualization'
arch=('x86_64')
url="http://vtk.org"
license=('BSD')
depends=('freetype2' 'jsoncpp' 'libharu' 'libjpeg-turbo' 'libogg' 'libpng' 'libtheora' 'libtiff' 'libxml2' 'lzip' 'python' 'sqlite' 'zlib' 'ospray' 'openimagedenoise' 'libxt' 'double-conversion' 'glew' 'eigen' 'expat' 'lz4' 'hdf5' 'proj' 'utf8cpp' 'pugixml' 'netcdf' 'pegtl' 'gl2ps')
makedepends=('cmake')
provides=('vtk')
conflicts=('vtk')
source=("https://gitlab.kitware.com/vtk/vtk/-/archive/v${pkgver}/vtk-v${pkgver}.tar.gz")
sha256sums=("15c269946a8a8ed578bbd28a59672c251089185d582cd1268658908bf414e017")

build() {
    cd "$srcdir/vtk-v${pkgver}"
    mkdir -p build && cd build
    cmake -DCMAKE_INSTALL_PREFIX=/usr \
          -DCMAKE_BUILD_TYPE=Release \
          -DVTK_BUILD_TESTING=OFF \
          -DBUILD_SHARED_LIBS=ON \
          -DVTK_LEGACY_REMOVE=ON \
          -DVTK_SMP_IMPLEMENTATION_TYPE=TBB \
          -DVTK_WRAP_PYTHON=ON \
          -DVTK_PYTHON_VERSION=3 \
          -DVTK_MODULE_USE_EXTERNAL_VTK_doubleconversion=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_eigen=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_expat=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_freetype=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_glew=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_hdf5=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_jpeg=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_jsoncpp=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_libharu=OFF \
          -DVTK_MODULE_USE_EXTERNAL_VTK_libproj=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_libxml2=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_lz4=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_lzma=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_netcdf=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_ogg=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_png=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_pugixml=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_sqlite=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_theora=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_tiff=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_utf8=ON \
          -DVTK_MODULE_USE_EXTERNAL_VTK_zlib=ON \
          -DVTK_MODULE_ENABLE_VTK_RenderingRayTracing=WANT \
          -DVTKOSPRAY_ENABLE_DENOISER=ON \
          ..
    make
}

package() {
    cd "$srcdir/vtk-v${pkgver}/build"
    make DESTDIR="$pkgdir" install
}