From a09c19d4addf5dc8eeb90991ad871489fbb5ddc6 Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 10 Jan 2020 17:44:04 +0100 Subject: [PATCH] paraview: fix build on ppc32 --- srcpkgs/paraview/template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/srcpkgs/paraview/template b/srcpkgs/paraview/template index 8b2f97d808e..615f8d9b0cf 100644 --- a/srcpkgs/paraview/template +++ b/srcpkgs/paraview/template @@ -59,6 +59,21 @@ patch_args="-Np1" CFLAGS="-D_GNU_SOURCE" CXXFLAGS="-D_GNU_SOURCE" +case "$XBPS_TARGET_MACHINE" in + ppc64*) ;; + ppc*) makedepends+=" libatomic-devel" ;; +esac + +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 }