Browse Source

l/vtk: Make sure to build against Qt5.

slackware-14.2
Damien Goutte-Gattat 3 years ago
parent
commit
2bb592c2f3
  1. 9
      l/vtk/vtk.SlackBuild

9
l/vtk/vtk.SlackBuild

@ -24,7 +24,7 @@
#
# Latest vtk sourcecode is available at: <https://www.vtk.org/>.
#
# Depends: l/qt5
# Depends: l/PyQt5
# Source package infos
NAMESRC=${NAMESRC:-VTK}
@ -34,7 +34,7 @@ WGET=${WGET:-https://www.vtk.org/files/release/6.3/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-vtk}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -91,6 +91,8 @@ cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-DVTK_QT_VERSION=5 \
-DVTK_QT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 \
-DVTK_INSTALL_LIBRARY_DIR=lib$LIBDIRSUFFIX \
-DVTK_INSTALL_ARCHIVE_DIR=lib$LIBDIRSUFFIX \
-DVTK_INSTALL_DOC_DIR=doc/$NAMEPKG-$VERSION \
@ -103,7 +105,6 @@ cmake \
-DVTK_Group_Rendering=ON \
-DVTK_Group_StandAlone=ON \
-DVTK_Group_Views=ON \
-DVTK_Group_Web=ON \
-DCMAKE_CXX_FLAGS="$CPUOPT" \
..
make
@ -121,7 +122,7 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
qt5
PyQt5
EOF
# Package the tree

Loading…
Cancel
Save