summaryrefslogtreecommitdiff
path: root/community/paraview
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-06-06 12:03:23 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-06-06 12:03:23 -0300
commit602bbc9f8ca0debe0fe88aac1ddc969c405f96b0 (patch)
tree34c0b1890fadd22588d98422a3cc2c2909094216 /community/paraview
parenta356d89e91e7ce1dd622d6dfe1b13412923d3b96 (diff)
parent664b1c2195b2884102cc2d5a56a13702f8ee44fe (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: extra/postgresql/PKGBUILD libre/gstreamer0.10-bad-libre/PKGBUILD
Diffstat (limited to 'community/paraview')
-rw-r--r--community/paraview/PKGBUILD66
-rw-r--r--community/paraview/doubletostring.patch11
-rw-r--r--community/paraview/fix_FTBFS_boost149.patch27
-rw-r--r--community/paraview/kwprocessxml_rpath.patch26
-rw-r--r--community/paraview/paraview-3.14.1-gcc47.patch36
5 files changed, 138 insertions, 28 deletions
diff --git a/community/paraview/PKGBUILD b/community/paraview/PKGBUILD
index 3e55bf594..efa138d53 100644
--- a/community/paraview/PKGBUILD
+++ b/community/paraview/PKGBUILD
@@ -1,17 +1,19 @@
-# Maintainer: Thomas Dziedzic < gostrc at gmail >
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Michele Mocciola <mickele>
# Contributor: Simon Zilliken <simon____AT____zilliken____DOT____name>
pkgname=paraview
-pkgver=3.14.0
-pkgrel=2
+pkgver=3.14.1
+pkgrel=1
pkgdesc='Parallel Visualization Application using VTK'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.paraview.org'
license=('custom')
-depends=('qt' 'python2' 'libgl' 'unixodbc' 'postgresql-libs' 'libxt' 'qtwebkit' 'libmysqlclient' 'mesa' 'openmpi' 'boost-libs' 'libcgns2'
+depends=('qt' 'python2' 'libgl' 'unixodbc' 'postgresql-libs' 'libxt' 'qtwebkit'
+ 'libmysqlclient' 'mesa' 'openmpi' 'boost-libs' 'libcgns2'
# export as avi support
- 'ffmpeg'
+ #'ffmpeg'
# The following is a list of libraries we explicitly tell cmake to use the system library of
'hdf5' 'freetype2' 'libjpeg' 'libpng' 'libtiff' 'zlib' 'expat' 'libxml2' 'libtheora'
)
@@ -19,26 +21,32 @@ makedepends=('cmake' 'desktop-file-utils' 'boost')
source=("http://paraview.org/files/v${pkgver:0:4}/ParaView-${pkgver}-Source.tar.gz"
'paraview.png'
'paraview.desktop'
- 'fix-build-with-zlib-1.2.6.diff'
- 'ffmpeg-0.8.diff')
-md5sums=('a260bd891fd75d0e276a581a3603edff'
- 'db623002bc71a257ddfdd0c9c7b14c3f'
- '4e4b7172ed18171c37446fd7c4f1e8f5'
- 'e4506b4ed0d2ae60072388f098be6c33'
- 'e992321c9d1def6034d0fa6607b40c5a')
+ 'paraview-3.14.1-gcc47.patch'
+ 'doubletostring.patch'
+ 'fix_FTBFS_boost149.patch'
+ 'kwprocessxml_rpath.patch')
+sha1sums=('1326c6e941fb9d12c548b14ca10932b49b5e3ffd'
+ 'a2dff014e1235dfaa93cd523286f9c97601d3bbc'
+ '9cd5b19b4072d8d5512bb97a141eb878adf73ab5'
+ 'dd8486082733bb6d13a741b52f4bbea804862295'
+ '9e85e47337ef66de7263b3d2f80a56e0cc307d61'
+ 'a9982155202b2cc93597e1fa66d12f2ffbbf287a'
+ '9e04dc858f0e8f30ce4595d6e5691f0463a02ea7')
build() {
- cd ${srcdir}/ParaView-${pkgver}-Source
+ cd "${srcdir}"/ParaView-${pkgver}-Source
+
+ patch -Np1 -i ../paraview-3.14.1-gcc47.patch
- # fix http://paraview.org/Bug/view.php?id=12924
- patch -Np0 -i ${srcdir}/fix-build-with-zlib-1.2.6.diff
+ # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640305
+ patch -Np1 -i ../kwprocessxml_rpath.patch
- # fix http://www.vtk.org/Bug/view.php?id=12691
- cd VTK
- patch -Np1 -i ${srcdir}/ffmpeg-0.8.diff
+ patch -Np1 -i ../fix_FTBFS_boost149.patch
- mkdir ${srcdir}/build
- cd ${srcdir}/build
+ patch -Np1 -i ../doubletostring.patch
+
+ mkdir "${srcdir}"/build
+ cd "${srcdir}"/build
# flags to enable using system libs
local cmake_system_flags=""
@@ -47,13 +55,15 @@ build() {
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"
+ 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"
- # enable when http://paraview.org/Bug/view.php?id=12718 gets fixed
+ # enable when http://paraview.org/Bug/view.php?id=12852 gets fixed
#-DCMAKE_SKIP_RPATH:BOOL=YES \
# the following flags enable the feature request at https://bugs.archlinux.org/task/27525
# -DPARAVIEW_USE_VISITBRIDGE:BOOL=ON -DVISIT_BUILD_READER_CGNS:BOOL=ON
cmake \
+ -DCMAKE_SKIP_RPATH:BOOL=YES \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DVTK_USE_BOOST:BOOL=ON \
@@ -62,7 +72,7 @@ build() {
-DPARAVIEW_BUILD_QT_GUI:BOOL=ON \
-DPARAVIEW_USE_VISITBRIDGE:BOOL=ON \
-DVISIT_BUILD_READER_CGNS:BOOL=ON \
- -DVTK_USE_FFMPEG_ENCODER:BOOL=ON \
+ -DVTK_USE_FFMPEG_ENCODER:BOOL=OFF \
${cmake_system_flags} \
${cmake_system_python_flags} \
../ParaView-${pkgver}-Source
@@ -71,14 +81,14 @@ build() {
}
package() {
- cd build
+ cd "${srcdir}"/build
- make DESTDIR=${pkgdir} install
+ make DESTDIR="${pkgdir}" install
# Install license
- install -Dm644 ${srcdir}/ParaView-${pkgver}-Source/License_v1.2.txt ${pkgdir}/usr/share/licenses/paraview/LICENSE
+ install -Dm644 "${srcdir}"/ParaView-${pkgver}-Source/License_v1.2.txt "${pkgdir}"/usr/share/licenses/paraview/LICENSE
# Install desktop shortcuts
- install -Dm644 ${srcdir}/paraview.png ${pkgdir}/usr/share/pixmaps/paraview.png
- desktop-file-install --dir=${pkgdir}/usr/share/applications ${srcdir}/paraview.desktop
+ install -Dm644 "${srcdir}"/paraview.png ${pkgdir}/usr/share/pixmaps/paraview.png
+ desktop-file-install --dir="${pkgdir}"/usr/share/applications "${srcdir}"/paraview.desktop
}
diff --git a/community/paraview/doubletostring.patch b/community/paraview/doubletostring.patch
new file mode 100644
index 000000000..5aaa398fd
--- /dev/null
+++ b/community/paraview/doubletostring.patch
@@ -0,0 +1,11 @@
+diff -Naur ParaView-3.14.1-Source.ori/Utilities/VisItBridge/databases/paraDIS/RC_cpp_lib/RCLibPoint.h ParaView-3.14.1-Source/Utilities/VisItBridge/databases/paraDIS/RC_cpp_lib/RCLibPoint.h
+--- ParaView-3.14.1-Source.ori/Utilities/VisItBridge/databases/paraDIS/RC_cpp_lib/RCLibPoint.h 2012-04-02 12:56:35.000000000 -0400
++++ ParaView-3.14.1-Source/Utilities/VisItBridge/databases/paraDIS/RC_cpp_lib/RCLibPoint.h 2012-06-04 12:27:44.184445953 -0400
+@@ -6,6 +6,7 @@
+ #include <iomanip>
+ #include <istream>
+ #include "DebugStream.h"
++#include "stringutil.h"
+
+ namespace rclib {
+ using namespace std;
diff --git a/community/paraview/fix_FTBFS_boost149.patch b/community/paraview/fix_FTBFS_boost149.patch
new file mode 100644
index 000000000..b04d3917c
--- /dev/null
+++ b/community/paraview/fix_FTBFS_boost149.patch
@@ -0,0 +1,27 @@
+Description: fix FTBFS with boost 1.49
+Author: Dominique Belhachemi <domibel@debian.org>
+Origin: http://anonscm.debian.org/gitweb/?p=collab-maint/vtk.git;a=commitdiff;h=55084a11b450e53b2e8786e23dd64a6a6b846e6b
+Last-Update: 2012-05-07
+
+--- a/VTK/Infovis/vtkBoostBreadthFirstSearchTree.cxx
++++ b/VTK/Infovis/vtkBoostBreadthFirstSearchTree.cxx
+@@ -49,11 +49,17 @@
+
+ #if BOOST_VERSION >= 104800 // Boost 1.48.x
+ namespace {
+- vtkIdType unwrap_edge_id(vtkEdgeType const &e) {
++ vtkIdType unwrap_edge_id(vtkEdgeType const &e)
++ {
+ return e.Id;
+ }
+- vtkIdType unwrap_edge_id(boost::detail::reverse_graph_edge_descriptor<vtkEdgeType> const &e) {
++ vtkIdType unwrap_edge_id(boost::detail::reverse_graph_edge_descriptor<vtkEdgeType> const &e)
++ {
++# if BOOST_VERSION == 104800
+ return e.underlying_desc.Id;
++# else
++ return e.underlying_descx.Id;
++# endif
+ }
+ }
+ #endif
diff --git a/community/paraview/kwprocessxml_rpath.patch b/community/paraview/kwprocessxml_rpath.patch
new file mode 100644
index 000000000..b36feb6fc
--- /dev/null
+++ b/community/paraview/kwprocessxml_rpath.patch
@@ -0,0 +1,26 @@
+Description: This patch forces building of kwProcessXML as shared forwarded
+ executable in our case (even is CMAKE_SKIP_RPATH is OFF in debian)
+Author: Mathieu Malaterre <mathieu.malaterre@gmail.com>
+Bug-Debian: http://bugs.debian.org/640305
+Last-Update: 2011-09-13
+
+--- a/Common/KWCommon/CMakeLists.txt
++++ b/Common/KWCommon/CMakeLists.txt
+@@ -225,7 +225,7 @@
+ IF(KWCOMMON_BUILD_PROCESSXML)
+ # For shared libraries on non-windows systems use the KWSys shared-forward
+ # implementation to make sure shared libraries are found.
+- IF(BUILD_SHARED_LIBS AND CMAKE_SKIP_RPATH)
++ IF(BUILD_SHARED_LIBS )
+ IF(NOT WIN32)
+ SET(KWCommon_FORWARD_DIR_BUILD ${EXECUTABLE_OUTPUT_PATH})
+ SET(KWCommon_FORWARD_BIN_TO_LIB "..${KWCommon_INSTALL_LIB_DIR}")
+@@ -248,7 +248,7 @@
+ COMPONENT Development)
+ ENDIF(NOT KWCommon_INSTALL_NO_DEVELOPMENT)
+ ENDIF(NOT WIN32)
+- ENDIF(BUILD_SHARED_LIBS AND CMAKE_SKIP_RPATH)
++ ENDIF(BUILD_SHARED_LIBS )
+
+ ADD_EXECUTABLE(kwProcessXML${KWCommon_EXE_SUFFIX} ProcessXML.cxx)
+ TARGET_LINK_LIBRARIES(kwProcessXML${KWCommon_EXE_SUFFIX} vtkCommon vtksys)
diff --git a/community/paraview/paraview-3.14.1-gcc47.patch b/community/paraview/paraview-3.14.1-gcc47.patch
new file mode 100644
index 000000000..792926719
--- /dev/null
+++ b/community/paraview/paraview-3.14.1-gcc47.patch
@@ -0,0 +1,36 @@
+diff -Naur ParaView-3.14.1-Source.ori/Utilities/Xdmf2/vtk/Testing/Cxx/XdmfTestVTKIO.cxx ParaView-3.14.1-Source/Utilities/Xdmf2/vtk/Testing/Cxx/XdmfTestVTKIO.cxx
+--- ParaView-3.14.1-Source.ori/Utilities/Xdmf2/vtk/Testing/Cxx/XdmfTestVTKIO.cxx 2012-04-02 12:56:37.000000000 -0400
++++ ParaView-3.14.1-Source/Utilities/Xdmf2/vtk/Testing/Cxx/XdmfTestVTKIO.cxx 2012-05-10 11:40:21.101841603 -0400
+@@ -21,6 +21,8 @@
+ //files around for inspection. Otherwise it deletes the temporary files it
+ //creates and returns success.
+
++#include <unistd.h>
++
+ #include "vtkXdmfWriter.h"
+
+ #include "vtkCellData.h"
+diff -Naur ParaView-3.14.1-Source.ori/VTK/Rendering/vtkFreeTypeTools.cxx ParaView-3.14.1-Source/VTK/Rendering/vtkFreeTypeTools.cxx
+--- ParaView-3.14.1-Source.ori/VTK/Rendering/vtkFreeTypeTools.cxx 2012-04-02 12:57:30.000000000 -0400
++++ ParaView-3.14.1-Source/VTK/Rendering/vtkFreeTypeTools.cxx 2012-05-10 11:38:48.618504485 -0400
+@@ -35,6 +35,8 @@
+ using namespace ftgl;
+ #endif
+
++#include <stdint.h>
++
+ // Print debug info
+ #define VTK_FTFC_DEBUG 0
+ #define VTK_FTFC_DEBUG_CD 0
+diff -Naur ParaView-3.14.1-Source.ori/VTK/Rendering/vtkFreeTypeUtilities.cxx ParaView-3.14.1-Source/VTK/Rendering/vtkFreeTypeUtilities.cxx
+--- ParaView-3.14.1-Source.ori/VTK/Rendering/vtkFreeTypeUtilities.cxx 2012-04-02 12:57:30.000000000 -0400
++++ ParaView-3.14.1-Source/VTK/Rendering/vtkFreeTypeUtilities.cxx 2012-05-10 11:38:48.618504485 -0400
+@@ -36,6 +36,8 @@
+ using namespace ftgl;
+ #endif
+
++#include <stdint.h>
++
+ // Print debug info
+
+ #define VTK_FTFC_DEBUG 0