[arch-commits] Commit in paraview/repos (3 files)
Bruno Pagani
archange at archlinux.org
Wed Oct 14 14:27:43 UTC 2020
Date: Wednesday, October 14, 2020 @ 14:27:41
Author: archange
Revision: 723909
archrelease: copy trunk to community-staging-x86_64
Added:
paraview/repos/community-staging-x86_64/
paraview/repos/community-staging-x86_64/PKGBUILD
(from rev 723908, paraview/trunk/PKGBUILD)
paraview/repos/community-staging-x86_64/paraview-vtk-freetype-2.10.3.patch
(from rev 723908, paraview/trunk/paraview-vtk-freetype-2.10.3.patch)
------------------------------------+
PKGBUILD | 69 +++++++++++++++++++++++++++++++++++
paraview-vtk-freetype-2.10.3.patch | 18 +++++++++
2 files changed, 87 insertions(+)
Copied: paraview/repos/community-staging-x86_64/PKGBUILD (from rev 723908, paraview/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-10-14 14:27:41 UTC (rev 723909)
@@ -0,0 +1,69 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Maintainer: Mathieu Westphal <mathieu.westphal at kitware.com>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: <xantares09 at hotmail.com>
+
+_pkg=paraview
+_mpi=openmpi
+pkgname=${_pkg}
+#-${_mpi}
+pkgver=5.8.1
+pkgrel=2
+pkgdesc="Parallel Visualization application using VTK (${_mpi} version)"
+arch=(x86_64)
+url="https://www.paraview.org"
+license=(BSD custom)
+depends=(boost-libs qt5-tools qt5-x11extras qt5-svg intel-tbb openmpi ffmpeg
+ ospray python-numpy cgns protobuf
+ double-conversion expat freetype2 gdal gl2ps glew hdf5 libjpeg jsoncpp
+ libjsoncpp.so libharu libxml2 lz4 xz python-mpi4py netcdf libogg
+ libpng pdal pugixml libtheora libtiff zlib)
+optdepends=(python-matplotlib)
+makedepends=(cmake boost mesa gcc-fortran ninja qt5-tools qt5-xmlpatterns eigen pegtl utf8cpp)
+conflicts=(vtk)
+source=("${url}/files/v${pkgver:0:3}/ParaView-v${pkgver/R/-R}.tar.xz"
+ paraview-cgns-4.1.patch::https://gitlab.kitware.com/paraview/paraview/-/commit/3d48a287141eb911b4888440e09c262743b4db3c.patch
+ paraview-vtk-freetype-2.10.3.patch)
+sha256sums=('7653950392a0d7c0287c26f1d3a25cdbaa11baa7524b0af0e6a1a0d7d487d034'
+ '9760a7ba33c6f46e3cb8dc8d0e2370ee1208d759b3c8c6c304e7e4b366391a13'
+ 'b547a665eaf980669b929f3a95e61cc8af4892ba3a41441ef98f8487886081ce')
+
+prepare() {
+ cd ParaView-v${pkgver/R/-R}
+ patch -p1 -i ../paraview-cgns-4.1.patch
+ # We have a patched libharu
+ sed -i "s|2.4.0|2.3.0|" VTK/ThirdParty/libharu/CMakeLists.txt
+ # https://bugs.archlinux.org/task/68244
+ patch -Np1 -i ../paraview-vtk-freetype-2.10.3.patch
+}
+
+build() {
+ export CPPFLAGS+=" -DH5_USE_110_API"
+ cmake -B build -S ParaView-v${pkgver/R/-R} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPARAVIEW_ENABLE_FFMPEG=ON \
+ -DPARAVIEW_ENABLE_GDAL=ON \
+ -DPARAVIEW_ENABLE_MOTIONFX=ON \
+ -DPARAVIEW_ENABLE_PDAL=ON \
+ -DPARAVIEW_ENABLE_VISITBRIDGE=ON \
+ -DPARAVIEW_ENABLE_XDMF3=ON \
+ -DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON \
+ -DPARAVIEW_USE_MPI=ON \
+ -DPARAVIEW_USE_PYTHON=ON \
+ -DPARAVIEW_USE_RAYTRACING=ON \
+ -DPARAVIEW_BUILD_WITH_EXTERNAL=ON \
+ -DVTK_SMP_IMPLEMENTATION_TYPE=TBB \
+ -DVTKm_ENABLE_MPI=ON \
+ -DVTK_MODULE_ENABLE_VTK_IOGDAL=YES \
+ -DVTK_MODULE_ENABLE_VTK_IOPDAL=YES \
+ -GNinja
+
+ ninja -C build ${MAKEFLAGS}
+}
+
+package() {
+ DESTDIR="${pkgdir}" ninja -C build install
+ # Fix licenses install
+ mv "${pkgdir}"/usr/share/licenses/{ParaView,paraview}
+}
Copied: paraview/repos/community-staging-x86_64/paraview-vtk-freetype-2.10.3.patch (from rev 723908, paraview/trunk/paraview-vtk-freetype-2.10.3.patch)
===================================================================
--- community-staging-x86_64/paraview-vtk-freetype-2.10.3.patch (rev 0)
+++ community-staging-x86_64/paraview-vtk-freetype-2.10.3.patch 2020-10-14 14:27:41 UTC (rev 723909)
@@ -0,0 +1,18 @@
+diff --git a/VTK/ThirdParty/freetype/vtk_freetype.h.in b/VTK/ThirdParty/freetype/vtk_freetype.h.in
+index c3f6f4f3..fd525e55 100644
+--- a/VTK/ThirdParty/freetype/vtk_freetype.h.in
++++ b/VTK/ThirdParty/freetype/vtk_freetype.h.in
+@@ -20,6 +20,13 @@
+
+ #ifdef VTK_USE_SYSTEM_FREETYPE
+ # include <ft2build.h>
++#ifndef FT_CALLBACK_DEF
++#ifdef __cplusplus
++#define FT_CALLBACK_DEF( x ) extern "C" x
++#else
++#define FT_CALLBACK_DEF( x ) static x
++#endif
++#endif /* FT_CALLBACK_DEF */
+ #else
+ # include <vtkfreetype/include/ft2build.h>
+ #endif
More information about the arch-commits
mailing list