Browse Source

l/vtk: Downgraded to vtk-5.8.0.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
07102a23a6
  1. 20
      l/vtk/vtk-5.8.0-cmake-linux-3.0.diff
  2. 1
      l/vtk/vtk-5.8.0.tar.gz.sha1
  3. 1
      l/vtk/vtk-6.0.0.tar.gz.sha1
  4. 24
      l/vtk/vtk.SlackBuild

20
l/vtk/vtk-5.8.0-cmake-linux-3.0.diff

@ -0,0 +1,20 @@
diff -Naur VTK.orig/Utilities/vtkhdf5/ConfigureChecks.cmake VTK/Utilities/vtkhdf5/ConfigureChecks.cmake
--- VTK.orig/Utilities/vtkhdf5/ConfigureChecks.cmake 2011-08-24 15:37:13.000000000 +0200
+++ VTK/Utilities/vtkhdf5/ConfigureChecks.cmake 2013-09-03 00:08:19.649484717 +0200
@@ -75,14 +75,14 @@
ENDIF (HDF5_WANT_DCONV_EXCEPTION)
SET (LINUX_LFS 0)
-IF (CMAKE_SYSTEM MATCHES "Linux-([3-9]\\.[0-9]|2\\.[4-9])\\.")
+IF (CMAKE_SYSTEM MATCHES "Linux")
# Linux Specific flags
ADD_DEFINITIONS (-D_POSIX_SOURCE -D_BSD_SOURCE)
OPTION (HDF5_ENABLE_LARGE_FILE "Enable support for large (64-bit) files on Linux." ON)
IF (HDF5_ENABLE_LARGE_FILE)
SET (LARGEFILE 1)
ENDIF (HDF5_ENABLE_LARGE_FILE)
-ENDIF (CMAKE_SYSTEM MATCHES "Linux-([3-9]\\.[0-9]|2\\.[4-9])\\.")
+ENDIF (CMAKE_SYSTEM MATCHES "Linux")
SET (HDF5_EXTRA_FLAGS)
IF (LINUX_LFS)
SET (HDF5_EXTRA_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE)

1
l/vtk/vtk-5.8.0.tar.gz.sha1

@ -0,0 +1 @@
ece52f4fa92811fe927581e60ecb39a8a5f68cd9 vtk-5.8.0.tar.gz

1
l/vtk/vtk-6.0.0.tar.gz.sha1

@ -1 +0,0 @@
51dd3b4a779d5442dd74375363f0f0c2d6eaf3fa vtk-6.0.0.tar.gz

24
l/vtk/vtk.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010,2011,2013 Damien Goutte-Gattat
# Copyright (C) 2010,2013 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -26,13 +26,13 @@
# Source package infos
NAMESRC=${NAMESRC:-vtk}
VERSION=${VERSION:-6.0.0}
VERSION=${VERSION:-5.8.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://www.vtk.org/files/release/6.0/$ARCHIVE}
WGET=${WGET:-http://www.vtk.org/files/release/5.8/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-vtk}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-3GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -82,13 +82,17 @@ NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
mkdir $NAME/build
cd $NAME/build
cd $NAME
patch -p 1 < $CWD/vtk-5.8.0-cmake-linux-3.0.diff
mkdir build
cd build
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-DVTK_INSTALL_LIB_DIR:PATH=/lib$LIBDIRSUFFIX/vtk-5.8 \
-DVTK_INSTALL_PACKAGE_DIR:PATH=/lib$LIBDIRSUFFIX/vtk-5.8 \
-DVTK_WRAP_TCL=ON \
-DVTK_WRAP_PYTHON=ON \
-DVTK_INSTALL_NO_PYTHON:BOOL=ON \
@ -97,13 +101,6 @@ cmake \
make
make install DESTDIR=$PKG
# Move libdir to the right place on x86_64 system
# (congratulations to CMake for being unable to do that,
# and unable even to provide a suitable option!)
if [ "x$ARCH" = xx86_64 ]; then
mv $PKG/usr/lib $PKG/usr/lib64
fi
# Build and install Python modules
(
cd Wrapping/Python
@ -116,7 +113,6 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
rm -rf $PKG/usr/share
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 ../Copyright.txt ../README.html $PKG/usr/doc/$NAMEPKG-$VERSION

Loading…
Cancel
Save