paraview: fix build on ppc32

This commit is contained in:
q66 2020-01-10 17:44:04 +01:00
parent 860fe37513
commit a09c19d4ad
1 changed files with 15 additions and 0 deletions

View File

@ -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
}