blob: 01483e7fc3328cf8fe2b00a000515ff7ac6c0972 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# 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.1
pkgrel=2
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' 'openmpi' 'boost-libs' 'libcgns2'
# export as avi support
#'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'
)
makedepends=('cmake' 'desktop-file-utils' 'boost' 'mesa')
source=("http://paraview.org/files/v${pkgver:0:4}/ParaView-${pkgver}-Source.tar.gz"
'paraview.png'
'paraview.desktop'
'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
patch -Np1 -i ../paraview-3.14.1-gcc47.patch
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640305
patch -Np1 -i ../kwprocessxml_rpath.patch
patch -Np1 -i ../fix_FTBFS_boost149.patch
patch -Np1 -i ../doubletostring.patch
mkdir "${srcdir}"/build
cd "${srcdir}"/build
# flags to enable using system libs
local cmake_system_flags=""
for lib in HDF5 FREETYPE JPEG PNG TIFF ZLIB EXPAT 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"
# 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 \
-DPARAVIEW_USE_MPI:BOOL=ON \
-DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
-DPARAVIEW_BUILD_QT_GUI:BOOL=ON \
-DPARAVIEW_USE_VISITBRIDGE:BOOL=ON \
-DVISIT_BUILD_READER_CGNS:BOOL=ON \
-DVTK_USE_FFMPEG_ENCODER:BOOL=OFF \
${cmake_system_flags} \
${cmake_system_python_flags} \
../ParaView-${pkgver}-Source
make
}
package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
# Install 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
}
|