Ticket #11661: Portfile

File Portfile, 1.7 KB (added by mmoll@…, 18 years ago)

Portfile

Line 
1PortSystem 1.0
2
3name          arpack
4version       1
5revision      1
6categories    math
7platforms     darwin
8maintainers             mmoll@cs.rice.edu
9description             Package for solving large scale eigenvalue problems
10long_description  \
11        ARPACK is a collection of Fortran77 subroutines designed to solve large \
12        scale eigenvalue problems.
13homepage        http://www.caam.rice.edu/software/ARPACK
14master_sites    ${homepage}/SRC/
15distfiles     arpack96.tar.gz patch.tar.gz
16checksums     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.
22depends_build port:gcc42
23use_configure   no
24worksrcdir      ARPACK
25patchfiles      patch-arpack.diff
26build.args      all FC=gfortran-dp-4.2 home=${worksrcpath}
27destroot    {
28   xinstall -m 644 -v -W ${worksrcpath} libarpack.a ${destroot}${prefix}/lib
29}
30post-destroot {
31        system "ranlib ${destroot}${prefix}/lib/libarpack.a"
32}
33
34variant 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}