summaryrefslogtreecommitdiff
path: root/graphics/paraview/paraview.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/paraview/paraview.SlackBuild')
-rw-r--r--graphics/paraview/paraview.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/graphics/paraview/paraview.SlackBuild b/graphics/paraview/paraview.SlackBuild
index 093f9302bd..eb50b246b5 100644
--- a/graphics/paraview/paraview.SlackBuild
+++ b/graphics/paraview/paraview.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=paraview
VERSION=${VERSION:-5.1.2}
SHORT_VERSION=${SHORT_VERSION:-5.1}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -55,8 +55,14 @@ else
LIBDIRSUFFIX=""
fi
-mpich="-DPARAVIEW_USE_MPI=ON -DVTK_VPIC_USE_MPI=ON -DVTK_XDMF_USE_MPI=ON" ; [ "${MPICH:-yes}" != "yes" ] && mpich=""
-matplotlib="-DPARAVIEW_ENABLE_MATPLOTLIB=ON" ; [ "${MATPLOTLIB:-yes}" != "yes" ] && matplotlib=""
+mpich="-DPARAVIEW_USE_MPI=ON \
+ -DVTK_VPIC_USE_MPI=ON -DVTK_XDMF_USE_MPI=ON" ; [ "${MPICH:-yes}" != "yes" ] && mpich=""
+matplotlib="-DPARAVIEW_ENABLE_MATPLOTLIB=ON" ; [ "${MATPLOTLIB:-yes}" != "yes" ] && matplotlib=""
+pythonqt="-DPARAVIEW_BUILD_PLUGIN_PythonQtPlugin=ON \
+ -DPythonQt_Wrap_Qtcore=ON \
+ -DPythonQt_Wrap_Qtgui=ON \
+ -DPythonQt_Wrap_Qtuitools=ON \
+ -DPYTHONQT_INCLUDE_DIR=/usr/include/PythonQt" ; [ "${PYTHONQT:-no}" != "yes" ] && pythonqt=""
set -e
@@ -68,6 +74,7 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
patch -p0 < $CWD/010_doc_path.diff
patch -p0 < $CWD/020_fmmmesh_lib_path.diff
+patch -p0 < $CWD/030_pythonqt-getWidget.diff
sed -i -e 's/@PARAVIEW_VERSION_FULL@/1.0/' Applications/ParaView/paraview.desktop.in
echo "Exec=paraview" >> Applications/ParaView/paraview.desktop.in
echo "Categories=Development;Graphics" >> Applications/ParaView/paraview.desktop.in
@@ -113,6 +120,7 @@ cd build
-DQtTesting_INSTALL_CMAKE_DIR=lib${LIBDIRSUFFIX}/cmake/qttesting \
$matplotlib \
$mpich \
+ $pythonqt \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG