Browse Source

l/vtk: Updated.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
d2345cae1e
  1. 9
      l/vtk/vtk-5.8.0-cmake-policy-cmp0022.diff
  2. 4
      l/vtk/vtk.SlackBuild

9
l/vtk/vtk-5.8.0-cmake-policy-cmp0022.diff

@ -0,0 +1,9 @@
diff -Naur VTK.orig/CMakeLists.txt VTK/CMakeLists.txt
--- VTK.orig/CMakeLists.txt 2011-08-24 15:37:07.000000000 +0200
+++ VTK/CMakeLists.txt 2013-12-23 23:45:39.298822656 +0100
@@ -1,4 +1,5 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR)
+CMAKE_POLICY(SET CMP0022 OLD)
FOREACH(policy CMP0012 CMP0013 CMP0014)
IF(POLICY ${policy})

4
l/vtk/vtk.SlackBuild

@ -84,10 +84,9 @@ echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
patch -p 1 < $CWD/vtk-5.8.0-cmake-linux-3.0.diff
patch -p 1 < $CWD/vtk-5.8.0-cmake-policy-cmp0022.diff
mkdir build
cd build
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
@ -97,6 +96,7 @@ cmake \
-DVTK_WRAP_PYTHON=ON \
-DVTK_INSTALL_NO_PYTHON:BOOL=ON \
-DVTK_WRAP_JAVA=ON \
-DCMAKE_CXX_FLAGS="$CPUOPT -DUSE_INTERP_ERRORLINE -fpermissive" \
..
make
make install DESTDIR=$PKG

Loading…
Cancel
Save