aboutsummaryrefslogtreecommitdiff
path: root/libraries/VTK/VTK.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/VTK/VTK.SlackBuild')
-rw-r--r--libraries/VTK/VTK.SlackBuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/libraries/VTK/VTK.SlackBuild b/libraries/VTK/VTK.SlackBuild
index 7a216d4c0f..e9167ae916 100644
--- a/libraries/VTK/VTK.SlackBuild
+++ b/libraries/VTK/VTK.SlackBuild
@@ -28,7 +28,7 @@
PRGNAM=VTK
VERSION=${VERSION:-8.2.0}
SHORT_VERSION=${SHORT_VERSION:-8.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -70,7 +70,6 @@ wrap_python="" ; [ "${PYTHON:-yes}" != "no" ] && wrap_python="-DVTK_WRAP_PYTH
wrap_java="" ; [ "${JAVA:-no}" != "no" ] && wrap_java="-DVTK_WRAP_JAVA=true"
if pkg-config --exists jsoncpp ; then jsoncpp="-DVTK_USE_SYSTEM_JSONCPP:BOOL=ON" ; else jsoncpp="" ; fi
-if pkg-config --exists proj ; then proj="-DVTK_USE_SYSTEM_LIBPROJ:BOOL=ON" ; else proj="" ; fi
# TODO: netcdf, hdf5, gl2ps
#if test -e /usr/include/hdf5.h ; then hdf5="-DVTK_USE_SYSTEM_HDF5:BOOL=ON" ; else hdf5="" ; fi
@@ -97,6 +96,15 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+if pkg-config --exists proj ; then
+ proj="-DVTK_USE_SYSTEM_LIBPROJ:BOOL=ON"
+ # proj6 patch courtesy of
+ # https://git.archlinux.org/svntogit/community.git/plain/trunk/proj6.patch?h=packages/vtk
+ patch -p1 < $CWD/patch-proj6.diff
+else
+ proj=""
+fi
+
mkdir -p build
cd build
cmake \