[MacPorts] #21353: Add a gcc44 variant to openmpi

MacPorts noreply at macports.org
Mon Sep 14 07:44:02 PDT 2009


#21353: Add a gcc44 variant to openmpi
---------------------------------+------------------------------------------
 Reporter:  luis.beca@…          |       Owner:  mww@…           
     Type:  enhancement          |      Status:  new             
 Priority:  Normal               |   Milestone:                  
Component:  ports                |     Version:                  
 Keywords:                       |        Port:  openmpi         
---------------------------------+------------------------------------------

Comment(by dechaume@…):

 Replying to [comment:2 dechaume@…]:
 > Replying to [ticket:21353 luis.beca@…]:
 > > Please add a gcc44 variant to openmpi.
 >
 > The configure options --enable-f77 and --enable-f90 are not valid as
 well.

 Here is a patch for the portfile:

 --- Portfile.orig       2009-09-14 15:37:10.000000000 +0200
 +++ Portfile    2009-09-14 15:55:50.000000000 +0200
 @@ -4,6 +4,7 @@

  name                   openmpi
  version                        1.3.3
 +revision    1
  categories             science parallel net
  platforms              darwin
  maintainers            mww
 @@ -63,27 +64,32 @@
         configure.args-append --enable-progress-threads
  }

 -variant gcc42 description {build mpif77 and mpif90 using gcc42} conflicts
 gcc43 g95 {
 +variant gcc42 description {build mpif77 and mpif90 using gcc42} conflicts
 gcc43 gcc44 g95 {
         configure.args-delete --disable-f77 --disable-f90
 -       configure.args-append --enable-f77 --enable-f90
         configure.f77         ${prefix}/bin/gfortran-mp-4.2
         configure.fc          ${prefix}/bin/gfortran-mp-4.2
         depends_lib-append    port:gcc42
         lappend wrappers mpif77 mpif90
  }

 -variant gcc43 description {build mpif77 and mpif90 using gcc43} conflicts
 gcc42 g95 {
 +variant gcc43 description {build mpif77 and mpif90 using gcc43} conflicts
 gcc42 gcc44 g95 {
         configure.args-delete --disable-f77 --disable-f90
 -       configure.args-append --enable-f77 --enable-f90
         configure.f77         ${prefix}/bin/gfortran-mp-4.3
         configure.fc          ${prefix}/bin/gfortran-mp-4.3
         depends_lib-append    port:gcc43
         lappend wrappers mpif77 mpif90
  }

 -variant g95 description {build mpif77 and mpif90 using g95} conflicts
 gcc42 gcc43 {
 +variant gcc44 description {build mpif77 and mpif90 using gcc44} conflicts
 gcc42 gcc43 g95 {
 +       configure.args-delete --disable-f77 --disable-f90
 +       configure.f77         ${prefix}/bin/gfortran-mp-4.4
 +       configure.fc          ${prefix}/bin/gfortran-mp-4.4
 +       depends_lib-append    port:gcc44
 +       lappend wrappers mpif77 mpif90
 +}
 +
 +variant g95 description {build mpif77 and mpif90 using g95} conflicts
 gcc42 gcc43 gcc44 {
         configure.args-delete --disable-f77 --disable-f90
 -       configure.args-append --enable-f77 --enable-f90
         configure.f77         ${prefix}/bin/g95
         configure.fc          ${prefix}/bin/g95
         depends_lib-append    port:g95
 @@ -91,8 +97,8 @@
  }

  # dependents like netcdf need some form of fortran
 -if {![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset
 g95]} {
 -    default_variants +gcc43
 +if {![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset
 gcc44] && ![variant_isset g95]} {
 +    default_variants +gcc44
  }

  livecheck.type regex

-- 
Ticket URL: <http://trac.macports.org/ticket/21353#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list