aboutsummaryrefslogtreecommitdiff
path: root/libraries/VTK/VTK.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2019-12-09 20:28:41 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-12-15 17:06:33 +0700
commit65fe9f9cc9b6e6303fb879c74681bb244772831a (patch)
tree527ec74181da2d1a43fd4ad8940853b4a52ca98c /libraries/VTK/VTK.SlackBuild
parent5108a397000df6213cb6dce61558452247273328 (diff)
libraries/VTK: Patched for proj version 6
Signed-off-by: Christoph Willing <chris.willing@linux.com>
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 7a216d4c0f3c..e9167ae916a8 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 \