Ticket #41504: Portfile-octopus.diff

File Portfile-octopus.diff, 2.9 KB (added by dstrubbe (David Strubbe), 11 years ago)
  • Portfile

    old new  
    55PortGroup           active_variants 1.1
    66
    77name                octopus
    8 version             4.1.1
     8version             4.1.2
    99categories          science
    1010platforms           darwin
    1111license             GPL-2+
     
    2121homepage            http://www.tddft.org/programs/octopus
    2222master_sites        ${homepage}/download/${version}
    2323
    24 checksums           rmd160  14dd5ce6677e5d6b303ebf311fd3d8f1538060f6 \
    25                     sha256  0d16aa3265711fee5dffc5763830de7022ba1bcc9df6dd522264a7aa38401713
     24checksums           rmd160  0ce62e38bed99e436b83489375fe55e53e64a538 \
     25                    sha256  c43ac301ff035caee667292841c5d9f166da986634cf2623e3f5a8aa86fe7a69
    2626
    2727depends_lib         port:atlas port:libxc port:fftw-3 port:gsl
    2828
     
    3535# configure will find and use these other libraries unless they are explicitly disabled
    3636configure.optflags  -O3
    3737
    38 pre-configure {
    39     configure.args-append  FCCPP="${configure.cc} -E -ansi -x c"
    40 }
    41 
    4238default_variants +newuoa
    4339if {![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48] && ![variant_isset openmpi] && ![variant_isset mpich]} {
    4440    default_variants    +gcc48
     
    7470            return -code error "Internal error: cannot determine Fortran compiler."
    7571        }
    7672    }
    77     ui_msg "Fortran compiler is ${fortran}."
    7873
    7974    if { ![active_variants libxc ${fortran}] } {
    8075        ui_error "libxc must have been built with +${fortran}."
     
    118113
    119114variant gcc46 conflicts gcc47 gcc48 openmpi mpich description {Build with GCC 4.6} {
    120115    configure.compiler  macports-gcc-4.6
     116    configure.args-append  FCCPP="${configure.cpp} -ansi"
    121117}
    122118
    123119variant gcc47 conflicts gcc46 gcc48 openmpi mpich description {Build with GCC 4.7} {
    124120    configure.compiler  macports-gcc-4.7
     121    configure.args-append  FCCPP="${configure.cpp} -ansi"
    125122}
    126123
    127124variant gcc48 conflicts gcc46 gcc47 openmpi mpich description {Build with GCC 4.8} {
    128125    configure.compiler  macports-gcc-4.8
     126    configure.args-append  FCCPP="${configure.cpp} -ansi"
    129127}
    130128
    131129variant openmpi conflicts gcc46 gcc47 gcc48 mpich description {Build with OpenMPI} {
    132130    configure.cc           openmpicc
    133131    configure.fc           openmpif90
     132    configure.args-append  FCCPP="${configure.cc} -E -ansi"
    134133    configure.args-delete  --disable-mpi
    135134    # an in-place allreduce of lxyz_inv in mesh_init.F90 leads to zeroes afterwards with MPI2
    136135    configure.args-append  --enable-mpi --without-external_zoltan --disable-mpi2
     
    141140variant mpich conflicts gcc46 gcc47 gcc48 openmpi description {Build with MPICH} {
    142141    configure.cc           mpicc-mp
    143142    configure.fc           mpif90-mp
     143    configure.args-append  FCCPP="${configure.cc} -E -ansi"
    144144    configure.args-delete  --disable-mpi
    145145    configure.args-append  --enable-mpi --without-external_zoltan
    146146    test.env-append        MPIEXEC=${prefix}/bin/mpiexec-mp