[arch-commits] Commit in vtk/repos (12 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Sat Dec 6 19:24:29 UTC 2014


    Date: Saturday, December 6, 2014 @ 20:24:29
  Author: aginiewicz
Revision: 123548

archrelease: copy trunk to community-i686, community-x86_64

Added:
  vtk/repos/community-i686/PKGBUILD
    (from rev 123547, vtk/trunk/PKGBUILD)
  vtk/repos/community-i686/hdf5.diff
    (from rev 123547, vtk/trunk/hdf5.diff)
  vtk/repos/community-i686/mesa.diff
    (from rev 123547, vtk/trunk/mesa.diff)
  vtk/repos/community-x86_64/PKGBUILD
    (from rev 123547, vtk/trunk/PKGBUILD)
  vtk/repos/community-x86_64/hdf5.diff
    (from rev 123547, vtk/trunk/hdf5.diff)
  vtk/repos/community-x86_64/mesa.diff
    (from rev 123547, vtk/trunk/mesa.diff)
Deleted:
  vtk/repos/community-i686/PKGBUILD
  vtk/repos/community-i686/hdf5.diff
  vtk/repos/community-i686/mesa.diff
  vtk/repos/community-x86_64/PKGBUILD
  vtk/repos/community-x86_64/hdf5.diff
  vtk/repos/community-x86_64/mesa.diff

----------------------------+
 /PKGBUILD                  |  230 +++++++++++++++++++++++++++++++++++++++++++
 /hdf5.diff                 |   22 ++++
 /mesa.diff                 |   22 ++++
 community-i686/PKGBUILD    |  113 ---------------------
 community-i686/hdf5.diff   |   11 --
 community-i686/mesa.diff   |   11 --
 community-x86_64/PKGBUILD  |  113 ---------------------
 community-x86_64/hdf5.diff |   11 --
 community-x86_64/mesa.diff |   11 --
 9 files changed, 274 insertions(+), 270 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2014-12-06 19:24:16 UTC (rev 123547)
+++ community-i686/PKGBUILD	2014-12-06 19:24:29 UTC (rev 123548)
@@ -1,113 +0,0 @@
-# $Id$
-# Maintainer: Andrzej Giniewicz <gginiu at 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: see FS#43007
-
-pkgname=vtk
-pkgver=6.1.0
-_majorver=6.1
-pkgrel=6
-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' 'qtwebkit' 'lesstif' 'mariadb' 'hdf5' 'libgl' 'gdal' 'unixodbc' 'openmpi')
-makedepends=('cmake' 'java-environment' 'doxygen' 'gnuplot' 'python2' 'tk' 'wget' 'python2-matplotlib' 'python2-twisted')
-optdepends=('python2: python bindings'
-            'java-runtime: java bindings'
-            'tk: tcl bindings'
-            'gnuplot: plotting tools'
-            'graphviz: drawing tools'
-            'python2-matplotlib: for Matplotlib rendering'
-            'python2-twisted: for vtkWeb')
-provides=('python2-autobahn') # TODO: move it from AUR to make it an optdepend of vtkWeb instead of twisted
-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)
-options=(staticlibs)
-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_BUILD_ALL_MODULES:BOOL=ON \
-    -DVTK_USE_LARGE_DATA:BOOL=ON \
-    -DVTK_QT_VERSION:STRING="4" \
-    -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"
-
-  # Get rid of twisted and zope-interface (FS#43000), because adding them as makedepends was not enough
-  rm -rf "${pkgdir}"/usr/lib/python2.7/site-packages/{twisted,zope}
-}
-

Copied: vtk/repos/community-i686/PKGBUILD (from rev 123547, vtk/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2014-12-06 19:24:29 UTC (rev 123548)
@@ -0,0 +1,115 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at 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
+
+# TODO: for Qt5 see FS#43007
+
+pkgname=vtk
+pkgver=6.1.0
+_majorver=6.1
+pkgrel=7
+pkgdesc='A software system for 3D computer graphics, image processing, and visualization.'
+arch=('i686' 'x86_64')
+url='http://www.vtk.org/'
+license=('BSD')
+depends=('boost' 'ffmpeg' 'qtwebkit' 'lesstif' 'mariadb' 'gdal' 'unixodbc' 'openmpi' 'jsoncpp')
+makedepends=('cmake' 'java-environment' 'doxygen' 'gnuplot' 'tk' 'wget' 'python2-matplotlib' 'python2-twisted')
+optdepends=('python2: python bindings'
+            'java-runtime: java bindings'
+            'tk: tcl bindings'
+            'gnuplot: plotting tools'
+            'graphviz: drawing tools'
+            'python2-matplotlib: for Matplotlib rendering'
+            'python2-twisted: for vtkWeb')
+provides=('python2-autobahn')
+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)
+options=(staticlibs)
+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=""
+  # TODO: try to use system provided AUTOBAHN, GL2PS, XDMF2, LIBPROJ4 and NETCDF
+  for lib in HDF5 EXPAT FREETYPE JPEG PNG TIFF ZLIB LIBXML2 OGGTHEORA TWISTED ZOPE JSONCPP; 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_BUILD_ALL_MODULES:BOOL=ON \
+    -DVTK_USE_LARGE_DATA:BOOL=ON \
+    -DVTK_QT_VERSION:STRING="4" \
+    -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"
+
+  # Fix path of QtDesigner plugin
+  install -dv "${pkgdir}/usr/lib/qt4"
+  mv "$pkgdir"/usr/plugins "$pkgdir"/usr/lib/qt4/plugins
+}
+

Deleted: community-i686/hdf5.diff
===================================================================
--- community-i686/hdf5.diff	2014-12-06 19:24:16 UTC (rev 123547)
+++ community-i686/hdf5.diff	2014-12-06 19:24:29 UTC (rev 123548)
@@ -1,11 +0,0 @@
---- 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-i686/hdf5.diff (from rev 123547, vtk/trunk/hdf5.diff)
===================================================================
--- community-i686/hdf5.diff	                        (rev 0)
+++ community-i686/hdf5.diff	2014-12-06 19:24:29 UTC (rev 123548)
@@ -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.")

Deleted: community-i686/mesa.diff
===================================================================
--- community-i686/mesa.diff	2014-12-06 19:24:16 UTC (rev 123547)
+++ community-i686/mesa.diff	2014-12-06 19:24:29 UTC (rev 123548)
@@ -1,11 +0,0 @@
---- 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-i686/mesa.diff (from rev 123547, vtk/trunk/mesa.diff)
===================================================================
--- community-i686/mesa.diff	                        (rev 0)
+++ community-i686/mesa.diff	2014-12-06 19:24:29 UTC (rev 123548)
@@ -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"

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2014-12-06 19:24:16 UTC (rev 123547)
+++ community-x86_64/PKGBUILD	2014-12-06 19:24:29 UTC (rev 123548)
@@ -1,113 +0,0 @@
-# $Id$
-# Maintainer: Andrzej Giniewicz <gginiu at 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: see FS#43007
-
-pkgname=vtk
-pkgver=6.1.0
-_majorver=6.1
-pkgrel=6
-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' 'qtwebkit' 'lesstif' 'mariadb' 'hdf5' 'libgl' 'gdal' 'unixodbc' 'openmpi')
-makedepends=('cmake' 'java-environment' 'doxygen' 'gnuplot' 'python2' 'tk' 'wget' 'python2-matplotlib' 'python2-twisted')
-optdepends=('python2: python bindings'
-            'java-runtime: java bindings'
-            'tk: tcl bindings'
-            'gnuplot: plotting tools'
-            'graphviz: drawing tools'
-            'python2-matplotlib: for Matplotlib rendering'
-            'python2-twisted: for vtkWeb')
-provides=('python2-autobahn') # TODO: move it from AUR to make it an optdepend of vtkWeb instead of twisted
-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)
-options=(staticlibs)
-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_BUILD_ALL_MODULES:BOOL=ON \
-    -DVTK_USE_LARGE_DATA:BOOL=ON \
-    -DVTK_QT_VERSION:STRING="4" \
-    -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"
-
-  # Get rid of twisted and zope-interface (FS#43000), because adding them as makedepends was not enough
-  rm -rf "${pkgdir}"/usr/lib/python2.7/site-packages/{twisted,zope}
-}
-

Copied: vtk/repos/community-x86_64/PKGBUILD (from rev 123547, vtk/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2014-12-06 19:24:29 UTC (rev 123548)
@@ -0,0 +1,115 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at 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
+
+# TODO: for Qt5 see FS#43007
+
+pkgname=vtk
+pkgver=6.1.0
+_majorver=6.1
+pkgrel=7
+pkgdesc='A software system for 3D computer graphics, image processing, and visualization.'
+arch=('i686' 'x86_64')
+url='http://www.vtk.org/'
+license=('BSD')
+depends=('boost' 'ffmpeg' 'qtwebkit' 'lesstif' 'mariadb' 'gdal' 'unixodbc' 'openmpi' 'jsoncpp')
+makedepends=('cmake' 'java-environment' 'doxygen' 'gnuplot' 'tk' 'wget' 'python2-matplotlib' 'python2-twisted')
+optdepends=('python2: python bindings'
+            'java-runtime: java bindings'
+            'tk: tcl bindings'
+            'gnuplot: plotting tools'
+            'graphviz: drawing tools'
+            'python2-matplotlib: for Matplotlib rendering'
+            'python2-twisted: for vtkWeb')
+provides=('python2-autobahn')
+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)
+options=(staticlibs)
+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=""
+  # TODO: try to use system provided AUTOBAHN, GL2PS, XDMF2, LIBPROJ4 and NETCDF
+  for lib in HDF5 EXPAT FREETYPE JPEG PNG TIFF ZLIB LIBXML2 OGGTHEORA TWISTED ZOPE JSONCPP; 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_BUILD_ALL_MODULES:BOOL=ON \
+    -DVTK_USE_LARGE_DATA:BOOL=ON \
+    -DVTK_QT_VERSION:STRING="4" \
+    -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"
+
+  # Fix path of QtDesigner plugin
+  install -dv "${pkgdir}/usr/lib/qt4"
+  mv "$pkgdir"/usr/plugins "$pkgdir"/usr/lib/qt4/plugins
+}
+

Deleted: community-x86_64/hdf5.diff
===================================================================
--- community-x86_64/hdf5.diff	2014-12-06 19:24:16 UTC (rev 123547)
+++ community-x86_64/hdf5.diff	2014-12-06 19:24:29 UTC (rev 123548)
@@ -1,11 +0,0 @@
---- 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-x86_64/hdf5.diff (from rev 123547, vtk/trunk/hdf5.diff)
===================================================================
--- community-x86_64/hdf5.diff	                        (rev 0)
+++ community-x86_64/hdf5.diff	2014-12-06 19:24:29 UTC (rev 123548)
@@ -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.")

Deleted: community-x86_64/mesa.diff
===================================================================
--- community-x86_64/mesa.diff	2014-12-06 19:24:16 UTC (rev 123547)
+++ community-x86_64/mesa.diff	2014-12-06 19:24:29 UTC (rev 123548)
@@ -1,11 +0,0 @@
---- 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-x86_64/mesa.diff (from rev 123547, vtk/trunk/mesa.diff)
===================================================================
--- community-x86_64/mesa.diff	                        (rev 0)
+++ community-x86_64/mesa.diff	2014-12-06 19:24:29 UTC (rev 123548)
@@ -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"



More information about the arch-commits mailing list