Browse Source

l/vtk: Upgraded to vtk-8.1.1.

slackware-14.2
Damien Goutte-Gattat 3 years ago
parent
commit
bc38bb723f
  1. 1
      l/vtk/VTK-8.1.1.tar.gz.sha256
  2. 20
      l/vtk/vtk-5.8.0-cmake-linux-3.0.diff
  3. 9
      l/vtk/vtk-5.8.0-cmake-policy-cmp0022.diff
  4. 1
      l/vtk/vtk-5.8.0.tar.gz.sha1
  5. 59
      l/vtk/vtk.SlackBuild

1
l/vtk/VTK-8.1.1.tar.gz.sha256

@ -0,0 +1 @@
71a09b4340f0a9c58559fe946dc745ab68a866cf20636a41d97b6046cb736324 VTK-8.1.1.tar.gz

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

@ -1,20 +0,0 @@
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)

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

@ -1,9 +0,0 @@
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})

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

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

59
l/vtk/vtk.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010,2013 Damien Goutte-Gattat
# Copyright (C) 2010,2013,2018 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -22,17 +22,19 @@
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest vtk sourcecode is available at: <http://www.vtk.org/>.
# Latest vtk sourcecode is available at: <https://www.vtk.org/>.
#
# Depends: l/qt5
# Source package infos
NAMESRC=${NAMESRC:-vtk}
VERSION=${VERSION:-5.8.0}
NAMESRC=${NAMESRC:-VTK}
VERSION=${VERSION:-8.1.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://www.vtk.org/files/release/5.8/$ARCHIVE}
WGET=${WGET:-https://www.vtk.org/files/release/8.1/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-vtk}
BUILD=${BUILD:-3GGD}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -75,7 +77,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -83,42 +85,41 @@ cd $TMP
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
cmake \
-DCMAKE_BUILD_TYPE=Release \
-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_INSTALL_LIBRARY_DIR=lib$LIBDIRSUFFIX \
-DVTK_INSTALL_ARCHIVE_DIR=lib$LIBDIRSUFFIX \
-DVTK_INSTALL_DOC_DIR=doc/$NAMEPKG-$VERSION \
-DVTK_INSTALL_PACKAGE_DIR=lib$LIBDIRSUFFIX/cmake/vtk-8.1 \
-DVTK_INSTALL_PYTHON_MODULE_DIR=lib$LIBDIRSUFFIX/python2.7/site-packages \
-DVTK_INSTALL_QT_PLUGIN_DIR=lib$LIBDIRSUFFIX/qt5/plugins/designer \
-DVTK_WRAP_PYTHON=ON \
-DVTK_INSTALL_NO_PYTHON:BOOL=ON \
-DVTK_WRAP_JAVA=ON \
-DCMAKE_CXX_FLAGS="$CPUOPT -DUSE_INTERP_ERRORLINE -fpermissive" \
-DVTK_Group_Imaging=ON \
-DVTK_Group_Qt=ON \
-DVTK_Group_Rendering=ON \
-DVTK_Group_StandAlone=ON \
-DVTK_Group_Views=ON \
-DVTK_Group_Web=ON \
-DCMAKE_CXX_FLAGS="$CPUOPT" \
..
make
make install DESTDIR=$PKG
# Build and install Python modules
(
cd Wrapping/Python
python setup.py build
python setup.py install --root=$PKG
)
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
make install/strip DESTDIR=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 ../Copyright.txt ../README.html $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 ../CONTRIBUTING.md ../README.md $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
qt5
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save