blob: 48564a4b1fd4880d41aade088502929c68f8312d (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
pkgname=mingw-w64-paraview
_majordotminor=5.5
pkgver=${_majordotminor}.2
_pkgver=${pkgver}
pkgrel=1
pkgdesc='Parallel Visualization Application using VTK (mingw-w64)'
arch=('any')
url='http://www.paraview.org'
license=('custom')
depends=('mingw-w64-qt5-xmlpatterns' 'mingw-w64-qt5-tools' 'mingw-w64-boost' 'mingw-w64-glew' 'mingw-w64-expat' 'mingw-w64-freetype2' 'mingw-w64-libjpeg' 'mingw-w64-libxml2' 'mingw-w64-libtheora' 'mingw-w64-libpng' 'mingw-w64-libtiff' 'mingw-w64-zlib' 'mingw-w64-jsoncpp' 'mingw-w64-pugixml' 'mingw-w64-hdf5' 'mingw-w64-lz4' 'mingw-w64-cgns' 'mingw-w64-netcdf-cxx-legacy')
makedepends=('mingw-w64-cmake' 'mingw-w64-eigen' 'mingw-w64-wine')
options=('!buildflags' '!strip' 'staticlibs')
source=("http://paraview.org/files/v${_majordotminor}/ParaView-v${_pkgver}.tar.gz"
"compile-tools.patch")
sha256sums=('64561f34c4402b88f3cb20a956842394dde5838efd7ebb301157a837114a0e2d'
'ea4211078f1e1d7d2bb999861d81fbcb0cc6176844fead431c473035e94bd4bb')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd "${srcdir}/ParaView-v${_pkgver}"
# cannot be modified upstream, see https://gitlab.kitware.com/paraview/paraview/merge_requests/1716
patch -p1 -i "${srcdir}/compile-tools.patch"
# qt 5.11 support
curl -L https://gitlab.kitware.com/paraview/paraview/merge_requests/2474.patch | patch -p1
cd VTK
# fix invalid conversion
curl -L https://gitlab.kitware.com/vtk/vtk/merge_requests/4017.patch | patch -p1
# fix jsoncpp module
curl -L https://gitlab.kitware.com/vtk/vtk/merge_requests/4107.patch | patch -p1
}
build() {
cd "${srcdir}/ParaView-v${_pkgver}"
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-cmake \
-DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \
-DPARAVIEW_ENABLE_FFMPEG:BOOL=OFF \
-DPARAVIEW_ENABLE_PYTHON:BOOL=OFF \
-DPARAVIEW_PYTHON_VERSION=2 \
-DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION=OFF \
-DPARAVIEW_QT_VERSION=5 \
-DPARAVIEW_USE_VISITBRIDGE:BOOL=OFF \
-DPARAVIEW_USE_OSPRAY:BOOL=OFF \
-DVTK_USE_SYSTEM_LIBRARIES=ON \
-DVTK_USE_SYSTEM_QTTESTING=OFF \
-DVTK_USE_SYSTEM_XDMF2=OFF \
-DVTK_USE_SYSTEM_PROTOBUF:BOOL=OFF \
-DVTK_USE_SYSTEM_GL2PS=OFF \
-DVTK_USE_SYSTEM_LIBHARU=OFF \
-DVTK_PYTHON_VERSION=2 \
-DVTK_QT_VERSION=5 \
-DVTK_RENDERING_BACKEND:STRING=OpenGL2 \
-DVTK_SMP_IMPLEMENTATION_TYPE:STRING=OpenMP \
-DHDF5_ROOT=/usr/${_arch}/ ..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "$srcdir"/ParaView-v${_pkgver}/build-${_arch}
make install/fast DESTDIR="$pkgdir"
rm -r "$pkgdir"/usr/${_arch}/share
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
}
|