1 | PortSystem 1.0 |
---|
2 | |
---|
3 | name arpack |
---|
4 | version 1 |
---|
5 | revision 1 |
---|
6 | categories math |
---|
7 | platforms darwin |
---|
8 | maintainers mmoll@cs.rice.edu |
---|
9 | description Package for solving large scale eigenvalue problems |
---|
10 | long_description \ |
---|
11 | ARPACK is a collection of Fortran77 subroutines designed to solve large \ |
---|
12 | scale eigenvalue problems. |
---|
13 | homepage http://www.caam.rice.edu/software/ARPACK |
---|
14 | master_sites ${homepage}/SRC/ |
---|
15 | distfiles arpack96.tar.gz patch.tar.gz |
---|
16 | checksums arpack96.tar.gz md5 fffaa970198b285676f4156cebc8626e \ |
---|
17 | patch.tar.gz md5 14830d758f195f272b8594a493501fa2 |
---|
18 | |
---|
19 | # We need gfortran. Gcc41 doesn't seem to compile on Intel Mac, so we'll take |
---|
20 | # gcc42. Too bad that the actual gfortran binary in gcc42 is called |
---|
21 | # gfortran-dp-4.2, otherwise we could just say bin:gfortran:gcc42. |
---|
22 | depends_build port:gcc42 |
---|
23 | use_configure no |
---|
24 | worksrcdir ARPACK |
---|
25 | patchfiles patch-arpack.diff |
---|
26 | build.args all FC=gfortran-dp-4.2 home=${worksrcpath} |
---|
27 | destroot { |
---|
28 | xinstall -m 644 -v -W ${worksrcpath} libarpack.a ${destroot}${prefix}/lib |
---|
29 | } |
---|
30 | post-destroot { |
---|
31 | system "ranlib ${destroot}${prefix}/lib/libarpack.a" |
---|
32 | } |
---|
33 | |
---|
34 | variant mpi { |
---|
35 | distfiles-append parpack96.tar.gz ppatch.tar.gz |
---|
36 | checksums-append parpack96.tar.gz md5 598d0453b938ccd99a078246be5927f3 \ |
---|
37 | ppatch.tar.gz md5 e6f0d70dd99f719c0efee351d0875c96 |
---|
38 | pre-build { foreach entry [glob -directory ${worksrcpath}/PARPACK */MPI/mpif.h] { delete $entry } } |
---|
39 | depends_build bin:mpif77:openmpi |
---|
40 | build.args all FC=${prefix}/lib/openmpi/bin/mpif77 home=${worksrcpath} |
---|
41 | destroot { |
---|
42 | xinstall -m 644 -v -W ${worksrcpath} libarpack.a libparpack.a ${destroot}${prefix}/lib |
---|
43 | } |
---|
44 | post-destroot { |
---|
45 | system "ranlib ${destroot}${prefix}/lib/libarpack.a" |
---|
46 | system "ranlib ${destroot}${prefix}/lib/libparpack.a" |
---|
47 | } |
---|
48 | } |
---|