summaryrefslogtreecommitdiff
path: root/community/vtk/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/vtk/PKGBUILD')
-rw-r--r--community/vtk/PKGBUILD18
1 files changed, 14 insertions, 4 deletions
diff --git a/community/vtk/PKGBUILD b/community/vtk/PKGBUILD
index b09bf289f..359ebf5f1 100644
--- a/community/vtk/PKGBUILD
+++ b/community/vtk/PKGBUILD
@@ -7,23 +7,32 @@
pkgname=vtk
pkgver=5.6.1
-pkgrel=5
+pkgrel=6
pkgdesc='A software system for 3D computer graphics, image processing, and visualization which supports a wide variety of visualization algorithms and advanced modeling techniques.'
arch=('i686' 'x86_64')
url='http://www.vtk.org'
license=('BSD')
-depends=('libpng' 'libtiff' 'freetype2' 'python2' 'java-runtime' 'tk' 'boost' 'ffmpeg' 'qt' 'lesstif')
+depends=('libpng' 'libtiff' 'freetype2' 'python2' 'java-runtime' 'tk' 'boost' 'ffmpeg' 'qt' 'lesstif' 'mysql')
optdepends=('gnuplot: plotting tools'
'graphviz: drawing tools')
makedepends=('cmake' 'java-environment' 'doxygen' 'gnuplot' 'mesa')
source=("http://www.vtk.org/files/release/${pkgver:0:3}/${pkgname}-${pkgver}.tar.gz"
- "http://www.vtk.org/files/release/${pkgver:0:3}/vtkdata-${pkgver}.tar.gz")
+ "http://www.vtk.org/files/release/${pkgver:0:3}/vtkdata-${pkgver}.tar.gz"
+ 'missingheader.diff')
md5sums=('b80a76435207c5d0f74dfcab15b75181'
- '67263bd972f923d39a60f01104368779')
+ '67263bd972f923d39a60f01104368779'
+ 'f7c60ac3ccaf61c41ca508e53d895d3e')
build() {
cd VTK
+ # remove next time version bump
+ patch -Np1 -i ${srcdir}/missingheader.diff
+
+ # remove next time version bump
+ sed -i '31 i#include <vtksys/cstddef>' Common/vtkPythonUtil.cxx
+
+ # fix for libpng 1.4
for _FILE in `grep -Rl "png_set_gray_1_2_4_to_8" *`
do
sed -i 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' ${_FILE}
@@ -57,6 +66,7 @@ build() {
-DVTK_USE_BOOST:BOOL=ON \
-DVTK_USE_INFOVIS:BOOL=ON \
-DVTK_USE_GL2PS:BOOL=ON \
+ -DVTK_USE_MYSQL:BOOL=ON \
-DVTK_USE_FFMPEG_ENCODER:BOOL=ON \
-DVTK_USE_TEXT_ANALYSIS:BOOL=ON \
-DVTK_WRAP_JAVA:BOOL=ON \