libraries/VTK: Fix MPI option

Signed-off-by: Christoph Willing <chris.willing@linux.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Christoph Willing 2022-03-29 07:55:46 +10:00 committed by Willy Sudiarto Raharjo
parent 9fae5df5c1
commit 7d7a6ca0f6
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 4 additions and 17 deletions

View file

@ -21,7 +21,7 @@ IMAGING=yes|no (default: no)
MPI=yes|no (default: no), requires openmpi MPI=yes|no (default: no), requires openmpi
TK=yes|no (default: yes) TK=yes|no (default: yes)
VIEWS=yes|no (default: no) VIEWS=yes|no (default: no)
WEB=yes|no (default: no), requires python-twisted WEB=yes|no (default: no), requires python3-twisted
JAVA=yes|no (default: no), requires jdk JAVA=yes|no (default: no), requires jdk
PYTHON=yes|no (default: yes) PYTHON=yes|no (default: yes)
QT=yes|no (default: yes) QT=yes|no (default: yes)

View file

@ -4,7 +4,7 @@
# Copyright 2013,2014 Youjie Zhou <jmpopush@gmail.com> # Copyright 2013,2014 Youjie Zhou <jmpopush@gmail.com>
# All rights reserved. # All rights reserved.
# Copyright 2016-2021 Christoph Willing, Brisbane Australia # Copyright 2016-2022 Christoph Willing, Brisbane Australia
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=VTK PRGNAM=VTK
VERSION=${VERSION:-9.0.3} VERSION=${VERSION:-9.0.3}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -41,9 +41,6 @@ if [ -z "$ARCH" ]; then
esac esac
fi fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0 exit 0
@ -70,7 +67,7 @@ fi
# configure VTK features # configure VTK features
# (defaults suitable for OpenCASCADE, it's the only SBo package that depends on VTK) # (defaults suitable for OpenCASCADE, it's the only SBo package that depends on VTK)
group_imaging="" ; [ "${IMAGING:-yes}" != "no" ] && group_imaging="-DVTK_GROUP_ENABLE_Imaging=YES" group_imaging="" ; [ "${IMAGING:-yes}" != "no" ] && group_imaging="-DVTK_GROUP_ENABLE_Imaging=YES"
group_mpi="" ; [ "${MPI:-no}" != "no" ] && group_mpi="-DVTK_GROUP_ENABLE_MPI=YES" group_mpi="" ; [ "${MPI:-no}" != "no" ] && group_mpi="-DVTK_GROUP_ENABLE_MPI=YES -DVTK_USE_MPI=yes"
group_qt="" ; [ "${QT:-yes}" != "no" ] && group_qt="-DVTK_GROUP_ENABLE_Qt=YES" group_qt="" ; [ "${QT:-yes}" != "no" ] && group_qt="-DVTK_GROUP_ENABLE_Qt=YES"
group_views="" ; [ "${VIEWS:-no}" != "no" ] && group_views="-DVTK_GROUP_ENABLE_Views=YES" group_views="" ; [ "${VIEWS:-no}" != "no" ] && group_views="-DVTK_GROUP_ENABLE_Views=YES"
group_web="" ; [ "${WEB:-no}" != "no" ] && group_web="-DVTK_GROUP_ENABLE_Web=YES" group_web="" ; [ "${WEB:-no}" != "no" ] && group_web="-DVTK_GROUP_ENABLE_Web=YES"
@ -139,16 +136,6 @@ cd build
$wrap_java \ $wrap_java \
$wrap_python \ $wrap_python \
$python_version \ $python_version \
-DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
-DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \
-DVTK_USE_SYSTEM_GLEW:BOOL=ON \
-DVTK_USE_SYSTEM_JPEG:BOOL=ON \
-DVTK_USE_SYSTEM_LIBXML2:BOOL=ON \
-DVTK_USE_SYSTEM_OGG:BOOL=ON \
-DVTK_USE_SYSTEM_THEORA:BOOL=ON \
-DVTK_USE_SYSTEM_PNG:BOOL=ON \
-DVTK_USE_SYSTEM_TIFF:BOOL=ON \
-DVTK_USE_SYSTEM_ZLIB:BOOL=ON \
$jsoncpp \ $jsoncpp \
$proj \ $proj \
$gl2ps \ $gl2ps \