libraries/VTK: Add qt5 option

Signed-off-by: Christoph Willing <chris.willing@iinet.net.au>
This commit is contained in:
Christoph Willing 2016-11-22 14:28:02 +10:00 committed by Willy Sudiarto Raharjo
parent 2d26a478ee
commit 31038d3c84
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 6 additions and 1 deletions

View file

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

View file

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