Ticket #15175: patch-arpack.diff

File patch-arpack.diff, 2.0 KB (added by mmoll@…, 17 years ago)

Patch for the arpack Portfile

  • Portfile

    old new  
    44
    55name          arpack
    66version       1
    7 revision      1
     7revision      2
    88categories    math
    99platforms     darwin
    1010maintainers             mmoll@cs.rice.edu
     
    1818checksums     arpack96.tar.gz md5 fffaa970198b285676f4156cebc8626e \
    1919              patch.tar.gz md5 14830d758f195f272b8594a493501fa2
    2020
    21 # We need gfortran. Gcc41 doesn't seem to compile on Intel Mac, so we'll take
    22 # gcc42. Too bad that the actual gfortran binary in gcc42 is called
    23 # gfortran-mp-4.2, otherwise we could just say bin:gfortran:gcc42.
    24 depends_build port:gcc42
    2521use_configure   no
    2622worksrcdir      ARPACK
    2723patchfiles      patch-arpack.diff
    28 build.args      all FC=gfortran-mp-4.2 home=${worksrcpath}
     24build.args      all home=${worksrcpath}
    2925destroot    {
    3026   xinstall -m 644 -v -W ${worksrcpath} libarpack.a ${destroot}${prefix}/lib
    3127}
     
    3329        system "ranlib ${destroot}${prefix}/lib/libarpack.a"
    3430}
    3531
     32variant gcc42 description {build with gfortran-mp-4.2} conflicts gcc43 g95 {
     33        configure.f77         ${prefix}/bin/gfortran-mp-4.2
     34        configure.fc          ${prefix}/bin/gfortran-mp-4.2
     35        depends_build-append    port:gcc42
     36}
     37
     38variant gcc43 description {build with gfortran-mp-4.3} conflicts gcc42 g95 {
     39        configure.f77         ${prefix}/bin/gfortran-mp-4.3
     40        configure.fc          ${prefix}/bin/gfortran-mp-4.3
     41        depends_build-append    port:gcc43
     42}
     43
     44variant g95 description {build with gfortran-mp-4.2} conflicts gcc42 gcc43 {
     45        configure.f77         ${prefix}/bin/g95
     46        configure.fc          ${prefix}/bin/g95
     47        depends_build-append    port:g95
     48}
     49
    3650variant mpi {
    3751  distfiles-append parpack96.tar.gz ppatch.tar.gz
    3852  checksums-append parpack96.tar.gz md5 598d0453b938ccd99a078246be5927f3 \
     
    4862                system "ranlib ${destroot}${prefix}/lib/libparpack.a"
    4963        }
    5064}
     65
     66if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset g95] } {
     67        default_variants      +gcc42
     68}