summaryrefslogtreecommitdiff
path: root/libraries/vtk/vtk.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/vtk/vtk.SlackBuild')
-rw-r--r--libraries/vtk/vtk.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/libraries/vtk/vtk.SlackBuild b/libraries/vtk/vtk.SlackBuild
index f9a0962d0f..2aa9e40a3d 100644
--- a/libraries/vtk/vtk.SlackBuild
+++ b/libraries/vtk/vtk.SlackBuild
@@ -76,7 +76,10 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release ..
+ -DCMAKE_BUILD_TYPE=Release \
+ -DVTK_Group_Qt=ON \
+ -DBUILD_SHARED_LIBS=ON ..
+
make
make install DESTDIR=$PKG
cd ..
@@ -84,15 +87,18 @@ cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# move lib/ to the proper location
+# Move lib/ to the proper location
if [ "$ARCH" = "x86_64" ]; then
mv $PKG/usr/lib $PKG/usr/lib$LIBDIRSUFFIX
+ # We also need to patch lib/ strings to lib64/ in cmake files
+ cd $PKG/usr/lib$LIBDIRSUFFIX/cmake/$PRGNAM-*/
+
+ patch -p2 < $CWD/lib64-fix-patch/VTKConfig.diff
+ patch -p2 < $CWD/lib64-fix-patch/VTKTargets.diff
+ patch -p2 < $CWD/lib64-fix-patch/VTKTargets-release.diff
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- $TMP/$PKGNAM$VERSION/Examples \
- $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install