prefix="$2"
shift
;;
+ -suffix)
+ suffix="$2"
+ shift
+ ;;
-build_dir)
build_dir="$2"
shift
if [ -z "$build_dir" ] ; then
build_dir="$HOME/.tmp"
fi
+if [ ! -z "$suffix" ] ; then
+ qt_suffix="-qtlibinfix $suffix"
+fi
curr_dir=`pwd`
## -- Configure, build and install Qt5
-skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport \
-skip qtspeech -skip qtsvg -skip qttranslations -skip qtvirtualkeyboard \
-skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets \
- -skip qtwebview -skip qtxmlpatterns \
- -qtlibinfix _cpPlugins
-make -j$cores -k
-make -j -k install
+ -skip qtwebview -skip qtxmlpatterns $qt_suffix
+make -s -j$cores -k
+make -s -j -k install
## -- Configure, build and install CMake
mkdir -p $build_dir/cmake
cd $build_dir/cmake
$cmake/bootstrap --parallel=$cores --prefix=$prefix --no-qt-gui
-make -j$cores -k
-make -j -k install
+make -s -j$cores -k
+make -s -j -k install
## -- Configure, build and install VTK
+cd $vtk
+patch -s -p1 < $curr_dir/vtk.patch
mkdir -p $build_dir/vtk
cd $build_dir/vtk
$prefix/bin/cmake \
-DQt5_DIR:PATH=$prefix/lib/cmake/Qt5 \
-DQT_QMAKE_EXECUTABLE:PATH=$prefix/bin/qmake \
-DModule_vtkGUISupportQtOpenGL:BOOL=ON \
- -DCMAKE_DEBUG_POSTFIX:STRING="_cpPlugins" \
- -DCMAKE_RELEASE_POSTFIX:STRING="_cpPlugins" \
+ -DCMAKE_DEBUG_POSTFIX:STRING=$suffix \
+ -DCMAKE_RELEASE_POSTFIX:STRING=$suffix \
-DCMAKE_MACOSX_RPATH:BOOL=ON \
$vtk
-make -j$cores -k
-make -j -k install
+make -s -j$cores -k
+make -s -j -k install
## -- Configure, build and install VTK
mkdir -p $build_dir/itk
-DBUILD_TESTING:BOOL=OFF \
-DModule_ITKReview:BOOL=ON \
-DModule_ITKVtkGlue:BOOL=ON \
- -DCMAKE_DEBUG_POSTFIX:STRING="_cpPlugins" \
- -DCMAKE_RELEASE_POSTFIX:STRING="_cpPlugins" \
+ -DCMAKE_DEBUG_POSTFIX:STRING=$suffix \
+ -DCMAKE_RELEASE_POSTFIX:STRING=$suffix \
-DCMAKE_MACOSX_RPATH:BOOL=ON \
$itk
-make -j$cores -k
-make -j -k install
+make -s -j$cores -k
+make -s -j -k install
## -- End
cd $curr_dir