aboutsummaryrefslogtreecommitdiff
path: root/graphics/paraview/paraview.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@iinet.net.au>2016-08-15 10:55:04 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-20 07:51:25 +0700
commitd249509fe97be3988358cf9d5880be51c7e9608c (patch)
tree10d111264b3e703f48bfb2bd59d23265d88fd1e4 /graphics/paraview/paraview.SlackBuild
parent5546d36a934ec89816d0ca3fc45da00f77c26a40 (diff)
graphics/paraview: Enable optional PythonQt embedding support
Signed-off-by: Christoph Willing <chris.willing@iinet.net.au>
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 093f9302bdf66..eb50b246b5b61 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