New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82646


Ignore:
Timestamp:
08/17/11 08:16:06 (4 years ago)
Author:
eborisch@…
Message:

mpich2: Document conflict with lammpi and check before building. Fixes #30825. Adds clang and system_gcc variants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/mpich2/Portfile

    r79615 r82646  
    55name                mpich2 
    66version             1.4 
     7revision            1 
    78license             BSD 
    89categories          science parallel net 
     
    2627                    rmd160  ecd60567d80ad08ecd06e8fe8cfaeb626941f768 
    2728 
     29# Don't build if lammpi is around. 
     30if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} { 
     31  ui_error "Cannot co-exist with lammpi; please deactivate lammpi before building." 
     32  return -code error 
     33} 
     34 
    2835# Puts all entries in <prefix>/share into appropriate mpich2 subdirs 
    2936destroot.args       PACKAGE=mpich2 
     
    4653                    --enable-base-cache 
    4754 
     55build.args-append   VERBOSE=1 
     56 
    4857universal_variant   no 
     58use_parallel_build  no 
     59conflicts           lammpi 
    4960 
    50 use_parallel_build  no 
     61# As MPICH creates compiler wrappers, there are lots of 
     62# variants for what compiler the user would like to wrap. 
    5163 
    52 variant gcc45 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc45} conflicts gcc42 gcc43 gcc44 llvm { 
     64variant gcc45 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc45} conflicts gcc42 gcc43 gcc44 sustem_gcc llvm clang { 
    5365    depends_lib-append      port:gcc45 
    5466    configure.compiler      macports-gcc-4.5 
    5567} 
    5668 
    57 variant gcc44 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc44} conflicts gcc42 gcc43 gcc45 llvm { 
     69variant gcc44 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc44} conflicts gcc42 gcc43 gcc45 sustem_gcc llvm clang { 
    5870    depends_lib-append      port:gcc44 
    5971    configure.compiler      macports-gcc-4.4 
    6072} 
    6173 
    62 variant gcc43 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc43} conflicts gcc42 gcc44 gcc45 llvm { 
     74variant gcc43 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc43} conflicts gcc42 gcc44 gcc45 sustem_gcc llvm clang { 
    6375    depends_lib-append      port:gcc43 
    6476    configure.compiler      macports-gcc-4.3 
    6577} 
    6678 
    67 variant gcc42 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc42} conflicts gcc43 gcc44 gcc45 llvm { 
     79variant gcc42 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc42} conflicts gcc43 gcc44 gcc45 sustem_gcc llvm clang { 
    6880    depends_lib-append      port:gcc42 
    6981    configure.compiler      macports-gcc-4.2 
     
    7890} 
    7991 
    80 variant llvm description {Use llvm-gcc} conflicts gcc42 gcc43 gcc44 gcc45 { 
     92variant system_gcc description {Use system gcc (no Fortran)} conflicts gcc42 gcc43 gcc44 gcc45 llvm clang { 
     93    configure.compiler      gcc-4.2  
     94} 
     95 
     96variant llvm description {Use llvm-gcc} conflicts gcc42 gcc43 gcc44 gcc45 system_gcc clang { 
    8197    configure.compiler      llvm-gcc-4.2 
     98} 
     99 
     100variant clang description {Use clang} conflicts gcc42 gcc43 gcc44 gcc45 sustem_gcc llvm {  
     101    configure.compiler      clang 
     102    configure.cxx           clang++ 
     103    configure.cflags-append -w 
     104    configure.cxxflags-append -w 
    82105} 
    83106 
     
    93116variant default_mpi description {Install as defalt MPI -- conflict with OpenMPI} { 
    94117    configure.args-delete   --includedir=${prefix}/include/${name} 
     118    conflicts-append        openmpi 
    95119} 
    96120 
Note: See TracChangeset for help on using the changeset viewer.