aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/VTK/README1
-rw-r--r--libraries/VTK/VTK.SlackBuild6
2 files changed, 6 insertions, 1 deletions
diff --git a/libraries/VTK/README b/libraries/VTK/README
index 1515bc81e143..966599f6e9c9 100644
--- a/libraries/VTK/README
+++ b/libraries/VTK/README
@@ -20,3 +20,4 @@ WEB=yes|no (default: no), requires python-twisted
JAVA=yes|no (default: no), requires jdk
PYTHON=yes|no (default: yes)
QT=yes|no (default: yes)
+VTKQT5=yes|no (default: no), requires qt5
diff --git a/libraries/VTK/VTK.SlackBuild b/libraries/VTK/VTK.SlackBuild
index 68dce971fe0a..f63d33d452f3 100644
--- a/libraries/VTK/VTK.SlackBuild
+++ b/libraries/VTK/VTK.SlackBuild
@@ -28,7 +28,7 @@
PRGNAM=VTK
VERSION=${VERSION:-7.1.0}
SHORT_VERSION=${SHORT_VERSION:-7.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -70,6 +70,9 @@ wrap_python="" ; [ "${PYTHON:-yes}" != "no" ] && wrap_python="-DVTK_WRAP_PYTH
wrap_java="" ; [ "${JAVA:-no}" != "no" ] && wrap_java="-DVTK_WRAP_JAVA=true"
wrap_tcl="" ; [ "${TCL:-yes}" != "no" ] && wrap_tcl="-DVTK_WRAP_TCL=true"
+# Also
+vtk_qt_version=""; [ "${VTKQT5:-no}" = "yes" ] && vtk_qt_version="-DVTK_QT_VERSION=5"
+
set -e
rm -rf $PKG
@@ -115,6 +118,7 @@ cd build
$wrap_python \
$wrap_java \
$wrap_tcl \
+ $vtk_qt_version \
-DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
-DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \
-DVTK_USE_SYSTEM_JPEG:BOOL=ON \