summaryrefslogtreecommitdiff
path: root/community/vtk
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-11 22:34:26 +0000
committerroot <root@rshg047.dnsready.net>2011-05-11 22:34:26 +0000
commit8867b1d4d0601b21618d44d015460739590ca01d (patch)
treee67076b8591d23942739891c69b2f5459ff9e909 /community/vtk
parent01b47af6474ac094ec199c7d75208874f8842d87 (diff)
Wed May 11 22:34:25 UTC 2011
Diffstat (limited to 'community/vtk')
-rw-r--r--community/vtk/PKGBUILD18
-rw-r--r--community/vtk/missingheader.diff28
2 files changed, 42 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 \
diff --git a/community/vtk/missingheader.diff b/community/vtk/missingheader.diff
new file mode 100644
index 000000000..47956d81d
--- /dev/null
+++ b/community/vtk/missingheader.diff
@@ -0,0 +1,28 @@
+From be4c4f115793598f6c8937a98bdd1f227d471540 Mon Sep 17 00:00:00 2001
+From: Brad King <brad.king@kitware.com>
+Date: Tue, 19 Apr 2011 15:25:09 -0400
+Subject: [PATCH] MetaIO: Add missing include <stddef.h> for ptrdiff_t
+
+Fixes error "ptrdiff_t was not declared in this scope".
+
+Author: David Doria <daviddoria@gmail.com>
+Change-Id: I1e0dee67d26681f4119ac1fd00ecec3d139eb726
+---
+ Utilities/vtkmetaio/metaUtils.cxx | 1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/Utilities/vtkmetaio/metaUtils.cxx b/Utilities/vtkmetaio/metaUtils.cxx
+index dcb26ca..27bde1e 100644
+--- a/Utilities/vtkmetaio/metaUtils.cxx
++++ b/Utilities/vtkmetaio/metaUtils.cxx
+@@ -18,6 +18,7 @@
+
+ #include <stdio.h>
+ #include <ctype.h>
++#include <stddef.h>
+
+ #include <sys/stat.h>
+ #include <fcntl.h>
+--
+1.7.0
+