66 lines
2.3 KiB
Bash
66 lines
2.3 KiB
Bash
# Template file for 'paraview'
|
|
pkgname=paraview
|
|
version=5.8.1
|
|
revision=1
|
|
wrksrc=ParaView-v${version}
|
|
build_style=cmake
|
|
configure_args="-DCMAKE_PREFIX_PATH=${XBPS_CROSS_BASE}/usr
|
|
-DPARAVIEW_ENABLE_FFMPEG=ON
|
|
-DPARAVIEW_ENABLE_GDAL=ON
|
|
-DPARAVIEW_USE_PYTHON=ON
|
|
-DPARAVIEW_USE_MPI=ON
|
|
-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"
|
|
#make_build_args="VERBOSE=1"
|
|
hostmakedepends="pkg-config which"
|
|
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-svg-devel 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=7653950392a0d7c0287c26f1d3a25cdbaa11baa7524b0af0e6a1a0d7d487d034
|
|
CFLAGS="-DYYERROR_VERBOSE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DGNU_SOURCE -fcommon"
|
|
CXXFLAGS="${CFLAGS}"
|
|
|
|
# qhelpgenerator: could not find a Qt installation of ''
|
|
export QT_SELECT="5"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
makedepends+=" libexecinfo-devel"
|
|
fi
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64) ;;
|
|
*) # broken for all other targets
|
|
broken="https://build.voidlinux.org/builders/i686_builder/builds/27013/steps/shell_3/logs/stdio"
|
|
;;
|
|
esac
|
|
|
|
post_extract() {
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
echo "target_link_libraries(vtkCommonDataModel PRIVATE atomic)" >> \
|
|
VTK/Common/DataModel/CMakeLists.txt
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense Copyright.txt
|
|
}
|