# Maintainer: Felix Golatofski # Contributor: eolianoe # Contributor: Filippo Squillace pkgname=visit pkgver=3.1.2 _pkgver=${pkgver//./_} pkgrel=1 pkgdesc="Interactive parallel visualization and graphical analysis tool." arch=('i686' 'x86_64') url="https://wci.llnl.gov/simulation/computer-codes/visit" license=('BSD' 'custom') makedepends=('cmake' 'java-runtime' 'gcc-fortran') depends=('qt5-webkit' 'qt5-x11extras' 'qwt' 'python2-numpy' 'gperftools' 'icet' 'java-environment' 'vtk-visit' 'gdal' 'silo' 'cgns' 'hdf5' 'zlib') conflicts=('visit-bin' 'visit-build') source=("https://github.com/visit-dav/visit/releases/download/v${pkgver}/visit${pkgver}.tar.gz" "visit.sh" "visit_FindIceT.patch" "fix_type.patch" "visit_frontendlauncher.patch") sha256sums=('cbe3864bd9a3025a643de3a218ad59b5501c8a4331af7b055a22d69cce9ca076' 'd07a11e67ad646579fbc341f30e1eb63ebd38a5fbdd4f3ea36e8f460419028da' '2e7b0be6ad5bc6c0f0568b91f79149f081c2a9bded58223e4347fcf513aa206a' '9357fef64b4008a1044a804638ab1e2b8ca2faaec0bcc8cd4890fc3469017892' '75179bcdcc5881b12e417f402e52b14598ae2f85ea1f78702ce1dc95c9b5198f') options=(!emptydirs) prepare(){ cd "${srcdir}/${pkgname}${pkgver}/src" # Use python2 sed -i 's_python\*_python2.7_' CMake/FindVisItVTK.cmake sed -i 's/python2.7\//python2.7/g' CMake/FindVisItVTK.cmake sed -i 's/exec python/exec python2/g' bin/frontendlauncher sed -i 's/env python/env python2/' $(grep -rl "env python" ../* | xargs) # VTK use system libs sed -i 's/vtktiff/tiff/g' \ visit_vtk/full/CMakeLists.txt sed -i -e 's/vtkjpeg/jpeg/g' -e 's/vtkpng/png/g' \ engine/main/CMakeLists.txt sed -i -e 's/vtktiff/tiff/g' -e 's/vtkjpeg/jpeg/g' -e 's/vtkpng/png/g' \ mdserver/main/CMakeLists.txt sed -i -e 's/vtkjpeg/jpeg/g' -e 's/vtkpng/png/g' \ tools/convert/CMakeLists.txt sed -i -e 's/vtktiff/tiff/g' -e 's/vtkjpeg/jpeg/g' -e 's/vtkpng/png/g' \ tools/dataserver/CMakeLists.txt sed -i -e 's/vtktiff/tiff/g' -e 's/vtkjpeg/jpeg/g' -e 's/vtkpng/png/g' \ tools/mcurvit/CMakeLists.txt sed -i -e 's/vtktiff/tiff/g' -e 's/vtkjpeg/jpeg/g' -e 's/vtkpng/png/g' \ tools/protocol/CMakeLists.txt sed -i -e 's/vtkjpeg/jpeg/g' -e 's/vtkpng/png/g' \ viewer/main/CMakeLists.txt # Proper link to all the libraries sed -i 's/vtkIOImage/vtkIOImage vtkIOMPIImage vtkRenderingMatplotlib vtkRenderingFreeType vtkRenderingFreeTypeFontConfig/g' \ tools/annotations/CMakeLists.txt sed -i 's/vtkFiltersFlowPaths/vtkFiltersFlowPaths vtkFiltersParallelFlowPaths vtkIOMPIImage/g' \ visit_vtk/full/CMakeLists.txt sed -i 's/vtkRenderingFreeTypeOpenGL/vtkRenderingFreeTypeOpenGL vtkIOMPIImage vtkRenderingMatplotlib vtkRenderingFreeTypeFontConfig/g' \ avt/Plotter/CMakeLists.txt # For VTK use the libs in /opt/vtk-${_vtk_ver}/lib and fix Qt5 path patch bin/frontendlauncher "${srcdir}/visit_frontendlauncher.patch" # IceT, use the IceTConfig.cmake provided by IceT patch CMake/FindIceT.cmake "${srcdir}/visit_FindIceT.patch" # Fix Qwt include sed -i 's: