summaryrefslogtreecommitdiff
path: root/community/paraview/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/paraview/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/paraview/PKGBUILD')
-rw-r--r--community/paraview/PKGBUILD80
1 files changed, 80 insertions, 0 deletions
diff --git a/community/paraview/PKGBUILD b/community/paraview/PKGBUILD
new file mode 100644
index 000000000..e28da76c2
--- /dev/null
+++ b/community/paraview/PKGBUILD
@@ -0,0 +1,80 @@
+# Maintainer: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Michele Mocciola <mickele>
+# Contributor: Simon Zilliken <simon____AT____zilliken____DOT____name>
+
+pkgname=paraview
+pkgver=3.10.0
+pkgrel=2
+pkgdesc='Parallel Visualization Application using VTK.'
+arch=('i686' 'x86_64')
+url='http://www.paraview.org'
+license=('custom')
+depends=('qt' 'python2' 'libgl' 'hdf5' 'libxml2' 'unixodbc' 'postgresql-libs' 'libxt' 'libmysqlclient' 'mesa' 'openmpi')
+makedepends=('cmake' 'desktop-file-utils')
+source=("http://paraview.org/files/v${pkgver:0:4}/ParaView-${pkgver}.tar.gz"
+ "${pkgname}.profile"
+ "${pkgname}.png"
+ "${pkgname}.desktop")
+md5sums=('5369f05667f1ad8aaca7a879208aeb3c'
+ '534ef49689a7f630c98380f5ab4bf915'
+ 'db623002bc71a257ddfdd0c9c7b14c3f'
+ '4e4b7172ed18171c37446fd7c4f1e8f5')
+
+build() {
+ cd ParaView-${pkgver}
+
+ # Paraview wants to be built out of source
+ mkdir -p build
+ cd build
+
+ # use -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF \ to fix make install error: http://www.cmake.org/pipermail/paraview/2011-February/020268.html
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_USE_PTHREADS:BOOL=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCMAKE_SKIP_RPATH:BOOL=YES \
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF \
+ -DCMAKE_COLOR_MAKEFILE:BOOL=TRUE \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DBUILD_DOCUMENTATION:BOOL=OFF \
+ -DBUILD_EXAMPLES:BOOL=OFF \
+ -DVTK_USE_RPATH:BOOL=OFF \
+ -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \
+ -DVTK_USE_SYSTEM_JPEG:BOOL=ON \
+ -DVTK_USE_SYSTEM_PNG:BOOL=ON \
+ -DVTK_USE_SYSTEM_TIFF:BOOL=ON \
+ -DVTK_USE_SYSTEM_ZLIB:BOOL=ON \
+ -DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
+ -DVTK_USE_SYSTEM_LIBXML2:BOOL=ON \
+ -DVTK_USE_BOOST:BOOL=OFF \
+ -DVTK_USE_OFFSCREEN=TRUE \
+ -DPARAVIEW_USE_SYSTEM_HDF5:BOOL=ON \
+ -DPARAVIEW_USE_MPI:BOOL=ON \
+ -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
+ -DPARAVIEW_BUILD_QT_GUI:BOOL=ON \
+ -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
+ -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
+ -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF \
+ ..
+
+ make
+}
+
+package() {
+ cd ParaView-${pkgver}/build
+
+ make DESTDIR=${pkgdir} install
+
+ # Install file to set PATH
+ install -D ${srcdir}/${pkgname}.profile ${pkgdir}/etc/profile.d/${pkgname}.sh
+
+ # Install license
+ install -Dm644 ${srcdir}/ParaView-${pkgver}/License_v1.2.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+
+ # Install desktop shortcuts
+ install -Dm644 ${srcdir}/paraview.png ${pkgdir}/usr/share/pixmaps/paraview.png
+ desktop-file-install --dir=${pkgdir}/usr/share/applications ${srcdir}/${pkgname}.desktop
+
+ # Removes VTK plugin for designer - if you need, you can install vtk
+ rm -rf ${pkgdir}/opt/${pkgname}/plugins
+}