Ticket #11160: openmpi_v2.patch

File openmpi_v2.patch, 1.3 KB (added by 0xced (Cédric Luthi), 18 years ago)

openmpi Portfile patch (diff -u format)

  • Portfile

    old new  
    33PortSystem 1.0
    44
    55name                    openmpi
    6 version                 1.1.1
     6version                 1.1.2
    77categories              science parallel net
    88platforms               darwin
    99maintainers             mww@opendarwin.org
     
    1717
    1818homepage                http://www.open-mpi.org/
    1919master_sites    http://www.open-mpi.org/software/ompi/v1.1/downloads/ freebsd
    20 checksums               md5 498b9322ae0ad512026a008a30c7e0b5 \
    21                                 sha1 3bd9eb1fd4af5d4f89df028a6cd6861ed1839b01
     20checksums               md5 53877ec8bca5f6e505496b6b94b1d850 \
     21                                sha1 5a427c66c432c2d7c5a6f8bd458ca02a39ae3756
    2222use_bzip2               yes
    2323
    2424pre-extract { file mkdir ${workpath}/build }
     
    4545        configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
    4646}
    4747
     48variant fortran {
     49        configure.args-delete --disable-f77 --disable-f90
     50        configure.args-append --enable-f77 --enable-f90
     51        configure.env-append F77=gfortran-dp-4.2 FC=gfortran-dp-4.2
     52        # We need gfortran. Gcc41 doesn't seem to compile on Intel Mac, so we'll take
     53        # gcc42. Too bad that the actual gfortran binary in gcc42 is called
     54        # gfortran-dp-4.2, otherwise we could just say bin:gfortran:gcc42.
     55        depends_build port:gcc42
     56}