updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / zoltan / PKGBUILD
blobfdbbdc4fe6953d5575b4d4b1dcaa1fe0fe5cdff8
1 # Contributor: Jed Brown <jed@59A2.org>
2 pkgname=(zoltan)
3 _prefix=/usr
4 pkgver=3.1
5 pkgrel=2
6 pkgdesc="Parallel Partitioning, Load Balancing and Data-Management Services"
7 url="http://www.cs.sandia.gov/Zoltan/"
8 arch=('i686' 'x86_64')
9 license=('LGPL')
10 depends=()
11 makedepends=(parmetis openmpi)
12 conflicts=()
13 replaces=()
14 backup=()
15 source=(http://www.cs.sandia.gov/~kddevin/Zoltan_Distributions/zoltan_distrib_v3.1.tar.gz)
17 build() {
18   cd $srcdir/Zoltan_v3.1 || exit 1
19   patch -Np0 <<EOF
20 --- src/include/zoltan_cpp.h.orig       2009-01-27 09:15:49.000000000 -0900
21 +++ src/include/zoltan_cpp.h    2009-01-27 09:16:32.000000000 -0900
22 @@ -25,6 +25,7 @@
23  #include "zoltan.h"
24  #include "zoltan_comm_cpp.h"
25  #include "zoltan_dd_cpp.h"
26 +#include <cstdlib>
28  /* F90 names must be less than 31 characters, support old name */
29  #define Set_HG_Size_Edge_Weights_Fn    Set_HG_Size_Edge_Wts_Fn 
30 @@ -604,7 +605,7 @@
31      int rc = Zoltan_Generate_Files( ZZ_Ptr, fn, base_index,
32                                    gen_geom, gen_graph, gen_hg );
34 -    free(fn);
35 +    std::free(fn);
37      return rc;
38    }
39 EOF
40   mkdir -p $srcdir/build
41   cd $srcdir/build
42   ../Zoltan_v3.1/configure CC=${_prefix}/bin/mpicc CXX=${_prefix}/bin/mpiCC F77=${_prefix}/bin/mpif77 FC=${_prefix}/bin/mpif90 --with-mpi-compilers=${_prefix}/bin --with-parmetis --with-parmetis-libdir=${_prefix}/lib --with-parmetis-incdir=${_prefix}/include --prefix=${_prefix} || exit 1
43   make || exit 1
44   make prefix=${pkgdir}${_prefix} install || exit 1
46 md5sums=('2322512b79df3d66c10c0d26ce94fca7')