blob: 2e7d564a6c5dad643de3028bc85e6bea9bb12eab (
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-git
pkgver=r82258.fa1ab22661
pkgrel=1
pkgdesc='Parallel Visualization Application using VTK (mingw-w64)'
arch=('any')
url='https://www.paraview.org'
license=('custom')
depends=('mingw-w64-qt5-tools' 'mingw-w64-qt5-svg' 'mingw-w64-boost' 'mingw-w64-glew' 'mingw-w64-freetype2' 'mingw-w64-libxml2' 'mingw-w64-libtiff' 'mingw-w64-jsoncpp' 'mingw-w64-hdf5' 'mingw-w64-lz4' 'mingw-w64-proj' 'mingw-w64-cgns' 'mingw-w64-netcdf' 'mingw-w64-double-conversion' 'mingw-w64-protobuf' 'mingw-w64-libtheora' 'mingw-w64-pugixml' 'mingw-w64-gl2ps' 'mingw-w64-libharu' 'mingw-w64-verdict')
makedepends=('mingw-w64-cmake' 'mingw-w64-wine' 'protobuf' 'git')
provides=('mingw-w64-paraview')
conflicts=('mingw-w64-paraview')
options=('!buildflags' '!strip' 'staticlibs')
source=("git+https://gitlab.kitware.com/paraview/paraview.git"
"git+https://gitlab.kitware.com/vtk/vtk.git"
"git+https://gitlab.kitware.com/paraview/visitbridge.git"
"git+https://gitlab.kitware.com/paraview/icet.git"
"git+https://gitlab.kitware.com/paraview/qttesting.git")
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
_architectures="x86_64-w64-mingw32"
pkgver () {
cd "${srcdir}/paraview"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/paraview"
git submodule init
git config submodule.VTK.url "$srcdir"/vtk
git config submodule.Utilities/VisItBridge.git "$srcdir"/visitbridge
git config submodule.ThirdParty/IceT/vtkicet.git "$srcdir"/icet
git config submodule.ThirdParty/QtTesting/vtkqttesting.git "$srcdir"/qttesting
git -c protocol.file.allow=always submodule update -f --init
}
build() {
cd "${srcdir}/paraview"
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-cmake \
-DCMAKE_BUILD_TYPE=Release \
-DPARAVIEW_USE_PYTHON=OFF \
-DPARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION=OFF \
-DPARAVIEW_PLUGIN_DISABLE_XML_DOCUMENTATION=ON \
-DPARAVIEW_USE_VTKM=OFF \
-DPARAVIEW_BUILD_WITH_EXTERNAL=ON \
-DPARAVIEW_QT_VERSION=5 \
-DVTK_QT_VERSION=5 \
-DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF \
-DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF \
-DVTK_MODULE_USE_EXTERNAL_VTK_eigen=OFF \
-DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF \
-DVTK_MODULE_USE_EXTERNAL_VTK_fmt=OFF \
-DVTK_MODULE_USE_EXTERNAL_VTK_fast_float=OFF \
-DVTK_MODULE_USE_EXTERNAL_VTK_nlohmannjson=OFF \
-DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=OFF \
-DVTK_MODULE_USE_EXTERNAL_VTK_token=OFF \
-DVTK_MODULE_USE_EXTERNAL_VTK_utf8=OFF \
-DCMAKE_CXX_STANDARD=17 \
-DPARAVIEW_IGNORE_CMAKE_CXX11_CHECKS=ON \
..
WINEPATH="/usr/${_arch}/bin;${PWD}/bin" make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "$srcdir"/paraview/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
}
|