Date: Monday, November 24, 2014 @ 20:50:23 Author: aginiewicz Revision: 123083
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: vtk/repos/community-staging-i686/ vtk/repos/community-staging-i686/PKGBUILD (from rev 123082, vtk/trunk/PKGBUILD) vtk/repos/community-staging-i686/hdf5.diff (from rev 123082, vtk/trunk/hdf5.diff) vtk/repos/community-staging-i686/mesa.diff (from rev 123082, vtk/trunk/mesa.diff) vtk/repos/community-staging-x86_64/ vtk/repos/community-staging-x86_64/PKGBUILD (from rev 123082, vtk/trunk/PKGBUILD) vtk/repos/community-staging-x86_64/hdf5.diff (from rev 123082, vtk/trunk/hdf5.diff) vtk/repos/community-staging-x86_64/mesa.diff (from rev 123082, vtk/trunk/mesa.diff) ------------------------------------+ community-staging-i686/PKGBUILD | 105 +++++++++++++++++++++++++++++++++++ community-staging-i686/hdf5.diff | 11 +++ community-staging-i686/mesa.diff | 11 +++ community-staging-x86_64/PKGBUILD | 105 +++++++++++++++++++++++++++++++++++ community-staging-x86_64/hdf5.diff | 11 +++ community-staging-x86_64/mesa.diff | 11 +++ 6 files changed, 254 insertions(+) Copied: vtk/repos/community-staging-i686/PKGBUILD (from rev 123082, vtk/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2014-11-24 19:50:23 UTC (rev 123083) @@ -0,0 +1,105 @@ +# $Id$ +# Maintainer: Andrzej Giniewicz <ggi...@gmail.com> +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Christofer Bertonha <christoferbertonha at gmail dot com> +# Contributor: leepesjee <lpeschier at xs4all dot nl> +# Contributor: Olivier Medoc +# Contributor: ignotus +# Contributor: Fabian Moser +# Contributor: djscholl + +# Qt5 support status: http://vtk.org/Bug/view.php?id=12945 + +pkgname=vtk +pkgver=6.1.0 +_majorver=6.1 +pkgrel=1 +pkgdesc='A software system for 3D computer graphics, image processing, and visualization.' +arch=('i686' 'x86_64') +url='http://www.vtk.org/' +license=('BSD') +depends=('libjpeg-turbo' 'boost' 'ffmpeg' 'qt4' 'lesstif' 'mariadb' 'hdf5' 'libgl') +makedepends=('cmake' 'java-environment' 'doxygen' 'gnuplot' 'mesa-libgl' 'python2' 'tk' 'wget') +optdepends=('python2: python bindings' + 'java-runtime: java bindings' + 'tk: tcl bindings' + 'gnuplot: plotting tools' + 'graphviz: drawing tools') +source=("http://www.vtk.org/files/release/${_majorver}/VTK-${pkgver}.tar.gz" + "http://www.vtk.org/files/release/${_majorver}/VTKData-${pkgver}.tar.gz" + "http://www.vtk.org/files/release/${_majorver}/VTKLargeData-${pkgver}.tar.gz" + mesa.diff hdf5.diff) +md5sums=('25e4dfb3bad778722dcaec80cd5dab7d' + 'f82c8fe151279c0422ab8a6cfe991c94' + '5bc47885923ef30e3ac77fcdf6d4e599' + '381921f3169facf5d6ef22de3cb3fbe5' + '1cf6b69312ed424a3595c3c11c82750d') + +prepare() { + cd "${srcdir}"/VTK-$pkgver + + # fix compilation errors: + patch -Np1 -i "${srcdir}/mesa.diff" + patch -Np1 -i "${srcdir}/hdf5.diff" + + sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ + -i $(find . -name '*.py') +} + +build() { + cd "${srcdir}" + rm -rf build + mkdir build + cd build + + # to help cmake find java + export JAVA_HOME=/usr/lib/jvm/default + + # flags to enable using system libs + local cmake_system_flags="" + for lib in HDF5 EXPAT FREETYPE JPEG PNG TIFF ZLIB LIBXML2 OGGTHEORA; do + cmake_system_flags+="-DVTK_USE_SYSTEM_${lib}:BOOL=ON " + done + + # flags to use python2 instead of python which is 3.x.x on archlinux + local cmake_system_python_flags="-DPYTHON_EXECUTABLE:PATH=/usr/bin/python2 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7 -DPYTHON_LIBRARY:PATH=/usr/lib/libpython2.7.so" + + cmake \ + -Wno-dev \ + -DBUILD_SHARED_LIBS:BOOL=ON \ + -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \ + -DBUILD_DOCUMENTATION:BOOL=ON \ + -DDOCUMENTATION_HTML_HELP:BOOL=ON \ + -DDOCUMENTATION_HTML_TARZ:BOOL=ON \ + -DBUILD_EXAMPLES:BOOL=ON \ + -DVTK_USE_FFMPEG_ENCODER:BOOL=ON \ + -DVTK_WRAP_JAVA:BOOL=ON \ + -DVTK_WRAP_PYTHON:BOOL=ON \ + -DVTK_WRAP_TCL:BOOL=ON \ + -DCMAKE_CXX_FLAGS="-D__STDC_CONSTANT_MACROS" \ + ${cmake_system_flags} \ + ${cmake_system_python_flags} \ + "${srcdir}/VTK-$pkgver" + + make +} + +package() { + cd "${srcdir}/build" + + make DESTDIR="${pkgdir}" install + + # Move the vtk.jar to the arch-specific location + install -dv "${pkgdir}/usr/share/java/vtk" + mv -v "${pkgdir}/usr/lib/vtk.jar" \ + "${pkgdir}/usr/share/java/vtk" + rm -rf "${pkgdir}/usr/lib/vtk-${_majorver}/java" + + # Install license + install -dv "${pkgdir}/usr/share/licenses/vtk" + install -m644 "${srcdir}/VTK-$pkgver/Copyright.txt" \ + "${pkgdir}/usr/share/licenses/vtk" +} + Copied: vtk/repos/community-staging-i686/hdf5.diff (from rev 123082, vtk/trunk/hdf5.diff) =================================================================== --- community-staging-i686/hdf5.diff (rev 0) +++ community-staging-i686/hdf5.diff 2014-11-24 19:50:23 UTC (rev 123083) @@ -0,0 +1,11 @@ +--- a/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt.orig 2014-11-24 19:29:00.084619157 +0100 ++++ b/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt 2014-11-24 19:29:22.824443117 +0100 +@@ -233,7 +233,7 @@ + if (NOT VTK_USE_SYSTEM_HDF5) + # using VTK's HDF5, we always build that with HL support. + set (USE_NETCDF4 ON) +-elseif(HDF5_HL_LIBRARY OR HDF5_hdf5_hl_LIBRARY) ++elseif(HDF5_HL_LIBRARY OR HDF5_hdf5_hl_LIBRARY OR HDF5_hdf5_hl_LIBRARY_RELEASE) + set (USE_NETCDF4 ON) + else() + message(STATUS "Disabling NETCDF4 support since HDF5_HL or HDF5_hdf5_hl is missing.") Copied: vtk/repos/community-staging-i686/mesa.diff (from rev 123082, vtk/trunk/mesa.diff) =================================================================== --- community-staging-i686/mesa.diff (rev 0) +++ community-staging-i686/mesa.diff 2014-11-24 19:50:23 UTC (rev 123083) @@ -0,0 +1,11 @@ +--- a/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx.orig 2014-11-23 22:16:50.000000000 +0100 ++++ b/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx 2014-11-23 22:16:59.000000000 +0100 +@@ -27,7 +27,7 @@ + + // define GLX_GLXEXT_LEGACY to prevent glx.h to include glxext.h provided by + // the system +-//#define GLX_GLXEXT_LEGACY ++#define GLX_GLXEXT_LEGACY + #include "GL/glx.h" + + #include "vtkgl.h" Copied: vtk/repos/community-staging-x86_64/PKGBUILD (from rev 123082, vtk/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2014-11-24 19:50:23 UTC (rev 123083) @@ -0,0 +1,105 @@ +# $Id$ +# Maintainer: Andrzej Giniewicz <ggi...@gmail.com> +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Christofer Bertonha <christoferbertonha at gmail dot com> +# Contributor: leepesjee <lpeschier at xs4all dot nl> +# Contributor: Olivier Medoc +# Contributor: ignotus +# Contributor: Fabian Moser +# Contributor: djscholl + +# Qt5 support status: http://vtk.org/Bug/view.php?id=12945 + +pkgname=vtk +pkgver=6.1.0 +_majorver=6.1 +pkgrel=1 +pkgdesc='A software system for 3D computer graphics, image processing, and visualization.' +arch=('i686' 'x86_64') +url='http://www.vtk.org/' +license=('BSD') +depends=('libjpeg-turbo' 'boost' 'ffmpeg' 'qt4' 'lesstif' 'mariadb' 'hdf5' 'libgl') +makedepends=('cmake' 'java-environment' 'doxygen' 'gnuplot' 'mesa-libgl' 'python2' 'tk' 'wget') +optdepends=('python2: python bindings' + 'java-runtime: java bindings' + 'tk: tcl bindings' + 'gnuplot: plotting tools' + 'graphviz: drawing tools') +source=("http://www.vtk.org/files/release/${_majorver}/VTK-${pkgver}.tar.gz" + "http://www.vtk.org/files/release/${_majorver}/VTKData-${pkgver}.tar.gz" + "http://www.vtk.org/files/release/${_majorver}/VTKLargeData-${pkgver}.tar.gz" + mesa.diff hdf5.diff) +md5sums=('25e4dfb3bad778722dcaec80cd5dab7d' + 'f82c8fe151279c0422ab8a6cfe991c94' + '5bc47885923ef30e3ac77fcdf6d4e599' + '381921f3169facf5d6ef22de3cb3fbe5' + '1cf6b69312ed424a3595c3c11c82750d') + +prepare() { + cd "${srcdir}"/VTK-$pkgver + + # fix compilation errors: + patch -Np1 -i "${srcdir}/mesa.diff" + patch -Np1 -i "${srcdir}/hdf5.diff" + + sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ + -i $(find . -name '*.py') +} + +build() { + cd "${srcdir}" + rm -rf build + mkdir build + cd build + + # to help cmake find java + export JAVA_HOME=/usr/lib/jvm/default + + # flags to enable using system libs + local cmake_system_flags="" + for lib in HDF5 EXPAT FREETYPE JPEG PNG TIFF ZLIB LIBXML2 OGGTHEORA; do + cmake_system_flags+="-DVTK_USE_SYSTEM_${lib}:BOOL=ON " + done + + # flags to use python2 instead of python which is 3.x.x on archlinux + local cmake_system_python_flags="-DPYTHON_EXECUTABLE:PATH=/usr/bin/python2 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7 -DPYTHON_LIBRARY:PATH=/usr/lib/libpython2.7.so" + + cmake \ + -Wno-dev \ + -DBUILD_SHARED_LIBS:BOOL=ON \ + -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \ + -DBUILD_DOCUMENTATION:BOOL=ON \ + -DDOCUMENTATION_HTML_HELP:BOOL=ON \ + -DDOCUMENTATION_HTML_TARZ:BOOL=ON \ + -DBUILD_EXAMPLES:BOOL=ON \ + -DVTK_USE_FFMPEG_ENCODER:BOOL=ON \ + -DVTK_WRAP_JAVA:BOOL=ON \ + -DVTK_WRAP_PYTHON:BOOL=ON \ + -DVTK_WRAP_TCL:BOOL=ON \ + -DCMAKE_CXX_FLAGS="-D__STDC_CONSTANT_MACROS" \ + ${cmake_system_flags} \ + ${cmake_system_python_flags} \ + "${srcdir}/VTK-$pkgver" + + make +} + +package() { + cd "${srcdir}/build" + + make DESTDIR="${pkgdir}" install + + # Move the vtk.jar to the arch-specific location + install -dv "${pkgdir}/usr/share/java/vtk" + mv -v "${pkgdir}/usr/lib/vtk.jar" \ + "${pkgdir}/usr/share/java/vtk" + rm -rf "${pkgdir}/usr/lib/vtk-${_majorver}/java" + + # Install license + install -dv "${pkgdir}/usr/share/licenses/vtk" + install -m644 "${srcdir}/VTK-$pkgver/Copyright.txt" \ + "${pkgdir}/usr/share/licenses/vtk" +} + Copied: vtk/repos/community-staging-x86_64/hdf5.diff (from rev 123082, vtk/trunk/hdf5.diff) =================================================================== --- community-staging-x86_64/hdf5.diff (rev 0) +++ community-staging-x86_64/hdf5.diff 2014-11-24 19:50:23 UTC (rev 123083) @@ -0,0 +1,11 @@ +--- a/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt.orig 2014-11-24 19:29:00.084619157 +0100 ++++ b/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt 2014-11-24 19:29:22.824443117 +0100 +@@ -233,7 +233,7 @@ + if (NOT VTK_USE_SYSTEM_HDF5) + # using VTK's HDF5, we always build that with HL support. + set (USE_NETCDF4 ON) +-elseif(HDF5_HL_LIBRARY OR HDF5_hdf5_hl_LIBRARY) ++elseif(HDF5_HL_LIBRARY OR HDF5_hdf5_hl_LIBRARY OR HDF5_hdf5_hl_LIBRARY_RELEASE) + set (USE_NETCDF4 ON) + else() + message(STATUS "Disabling NETCDF4 support since HDF5_HL or HDF5_hdf5_hl is missing.") Copied: vtk/repos/community-staging-x86_64/mesa.diff (from rev 123082, vtk/trunk/mesa.diff) =================================================================== --- community-staging-x86_64/mesa.diff (rev 0) +++ community-staging-x86_64/mesa.diff 2014-11-24 19:50:23 UTC (rev 123083) @@ -0,0 +1,11 @@ +--- a/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx.orig 2014-11-23 22:16:50.000000000 +0100 ++++ b/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx 2014-11-23 22:16:59.000000000 +0100 +@@ -27,7 +27,7 @@ + + // define GLX_GLXEXT_LEGACY to prevent glx.h to include glxext.h provided by + // the system +-//#define GLX_GLXEXT_LEGACY ++#define GLX_GLXEXT_LEGACY + #include "GL/glx.h" + + #include "vtkgl.h"