aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vtk/APKBUILD
blob: 54f0defb7642215397b6d538a90facbe8d339c5a (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
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=vtk
pkgver=8.2.0
pkgrel=3
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
	fix-build.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=None
	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
c814628a7ce9e1015cb02d4c9ad7ae7c6ad6d5d83b553f0c484414744488e4d0fa313924b4fd0f579a363352832347035147d1be3aca6f6a4885b6f9a1590b9e  fix-build.patch"