From 5ebda94788e319f28a5a44344a9a4fbeeadd9183 Mon Sep 17 00:00:00 2001 From: Youjie Zhou Date: Tue, 18 Nov 2014 01:48:27 +0700 Subject: libraries/VTK: provide switches to enable features. Signed-off-by: Willy Sudiarto Raharjo --- libraries/VTK/VTK.SlackBuild | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'libraries/VTK/VTK.SlackBuild') diff --git a/libraries/VTK/VTK.SlackBuild b/libraries/VTK/VTK.SlackBuild index 6c2b8c7d99..4391f4add5 100644 --- a/libraries/VTK/VTK.SlackBuild +++ b/libraries/VTK/VTK.SlackBuild @@ -24,6 +24,7 @@ # # 2014-02-14 Merge lib64 patch from Christoph Willing # 2014-02-16 Update to 6.1.0 +# 2014-11-16 Support VTK features PRGNAM=VTK VERSION=${VERSION:-6.1.0} @@ -57,6 +58,17 @@ else LIBDIRSUFFIX="" fi +# configure VTK features +group_imaging="" ; [ "${IMAGING:-no}" != "no" ] && group_imaging="-DVTK_Group_Imaging=true" +group_mpi="" ; [ "${MPI:-no}" != "no" ] && group_mpi="-DVTK_Group_MPI=true" +group_qt="" ; [ "${QT:-yes}" != "no" ] && group_qt="-DVTK_Group_Qt=true" +group_tk="" ; [ "${TK:-no}" != "no" ] && group_tk="-DVTK_Group_Tk=true" +group_views="" ; [ "${VIEWS:-no}" != "no" ] && group_views="-DVTK_Group_Views=true" +group_web="" ; [ "${WEB:-no}" != "no" ] && group_web="-DVTK_Group_Web=true" +wrap_python="" ; [ "${PYTHON:-yes}" != "no" ] && wrap_python="-DVTK_WRAP_PYTHON=true" +wrap_java="" ; [ "${JAVA:-no}" != "no" ] && wrap_java="-DVTK_WRAP_JAVA=true" +wrap_tcl="" ; [ "${TCL:-no}" != "no" ] && wrap_tcl="-DVTK_WRAP_TCL=true" + set -e rm -rf $PKG @@ -83,10 +95,19 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DLIB_SUFFIX=$LIBDIRSUFFIX \ - -DVTK_Group_Qt=ON \ - -DBUILD_SHARED_LIBS=ON .. + -DBUILD_SHARED_LIBS=ON \ + $group_imaging \ + $group_mpi \ + $group_qt \ + $group_tk \ + $group_views \ + $group_web \ + $wrap_python \ + $wrap_java \ + $wrap_tcl \ + .. - make -j4 + make make install DESTDIR=$PKG cd .. -- cgit v1.2.3