void-packages/srcpkgs/paraview/template
2020-03-30 14:23:22 +02:00

78 lines
2.5 KiB
Bash

# Template file for 'paraview'
pkgname=paraview
version=5.6.1
revision=4
wrksrc=ParaView-v${version}
build_style=cmake
configure_args="-DPARAVIEW_ENABLE_FFMPEG=ON
-DPARAVIEW_ENABLE_GDAL=ON
-DPARAVIEW_ENABLE_MATPLOTLIB=ON
-DPARAVIEW_ENABLE_PYTHON=ON
-DPARAVIEW_USE_MPI=ON
-DPARAVIEW_USE_VISITBRIDGE=OFF
-DPARAVIEW_USE_OSPRAY=OFF
-DVTK_PYTHON_FULL_THREADSAFE=ON
-DVTK_PYTHON_VERSION=3
-DVTK_SMP_IMPLEMENTATION_TYPE=TBB
-DVTKm_ENABLE_MPI=ON
-DVTKm_ENABLE_RENDERING=ON
-DVTKm_USE_DOUBLE_PRECISION=ON
-DVTK_USE_SYSTEM_LIBRARIES=OFF
-DVTK_USE_SYSTEM_DOUBLECONVERSION=ON
-DVTK_USE_SYSTEM_EIGEN=ON
-DVTK_USE_SYSTEM_EXPAT=ON
-DVTK_USE_SYSTEM_FREETYPE=ON
-DVTK_USE_SYSTEM_GLEW=ON
-DVTK_USE_SYSTEM_HDF5=ON
-DVTK_USE_SYSTEM_JPEG=ON
-DVTK_USE_SYSTEM_JSONCPP=ON
-DVTK_USE_SYSTEM_LIBPROJ=ON
-DVTK_USE_SYSTEM_LIBXML2=ON
-DVTK_USE_SYSTEM_LZMA=ON
-DVTK_USE_SYSTEM_MPI4PY=ON
-DVTK_USE_SYSTEM_NETCDF=ON
-DVTK_USE_SYSTEM_OGG=ON
-DVTK_USE_SYSTEM_PEGTL=OFF
-DVTK_USE_SYSTEM_PNG=ON
-DVTK_USE_SYSTEM_PUGIXML=ON
-DVTK_USE_SYSTEM_THEORA=ON
-DVTK_USE_SYSTEM_TIFF=ON
-DVTK_USE_SYSTEM_ZLIB=ON
-DVTK_USE_SYSTEM_PROTOBUF=ON"
makedepends="MesaLib-devel libfreeglut-devel glu-devel libXt-devel
openmpi-devel qt5-devel qt5-x11extras-devel qt5-tools-devel qt5-plugin-mysql
qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds
qt5-xmlpatterns python3-devel double-conversion-devel eigen expat-devel
freetype-devel glew-devel hdf5-devel libjpeg-turbo-devel jsoncpp-devel
proj-devel libxml2-devel liblzma-devel liblz4-devel netcdf-devel libogg-devel
libpng-devel pugixml-devel libtheora-devel tiff-devel zlib-devel
protobuf-devel protobuf python3-Pygments ffmpeg-devel tbb-devel boost-devel
libgdal-devel python3-mpi4py"
depends="openmpi"
short_desc="Application for interactive, scientific visualization"
maintainer="Anders Damsgaard <anders@adamsgaard.dk>"
license="BSD-3-Clause"
homepage="https://www.paraview.org"
distfiles="https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${version:0:3}&type=source&os=Sources&downloadFile=ParaView-v${version}.tar.xz>paraview-${version}.tar.xz"
checksum=50ef01f54db6358b402e50d1460ef47c04d675bf26f250c6937737169f1e6612
patch_args="-Np1"
CFLAGS="-D_GNU_SOURCE"
CXXFLAGS="-D_GNU_SOURCE"
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
post_extract() {
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*)
echo "target_link_libraries(vtkCommonDataModel PRIVATE atomic)" >> \
VTK/Common/DataModel/CMakeLists.txt
;;
esac
}
post_install() {
vlicense Copyright.txt
}