Ticket #41504: Portfile-octopus.diff
File Portfile-octopus.diff, 2.9 KB (added by dstrubbe (David Strubbe), 11 years ago) |
---|
-
Portfile
old new 5 5 PortGroup active_variants 1.1 6 6 7 7 name octopus 8 version 4.1. 18 version 4.1.2 9 9 categories science 10 10 platforms darwin 11 11 license GPL-2+ … … 21 21 homepage http://www.tddft.org/programs/octopus 22 22 master_sites ${homepage}/download/${version} 23 23 24 checksums rmd160 14dd5ce6677e5d6b303ebf311fd3d8f1538060f6\25 sha256 0d16aa3265711fee5dffc5763830de7022ba1bcc9df6dd522264a7aa3840171324 checksums rmd160 0ce62e38bed99e436b83489375fe55e53e64a538 \ 25 sha256 c43ac301ff035caee667292841c5d9f166da986634cf2623e3f5a8aa86fe7a69 26 26 27 27 depends_lib port:atlas port:libxc port:fftw-3 port:gsl 28 28 … … 35 35 # configure will find and use these other libraries unless they are explicitly disabled 36 36 configure.optflags -O3 37 37 38 pre-configure {39 configure.args-append FCCPP="${configure.cc} -E -ansi -x c"40 }41 42 38 default_variants +newuoa 43 39 if {![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48] && ![variant_isset openmpi] && ![variant_isset mpich]} { 44 40 default_variants +gcc48 … … 74 70 return -code error "Internal error: cannot determine Fortran compiler." 75 71 } 76 72 } 77 ui_msg "Fortran compiler is ${fortran}."78 73 79 74 if { ![active_variants libxc ${fortran}] } { 80 75 ui_error "libxc must have been built with +${fortran}." … … 118 113 119 114 variant gcc46 conflicts gcc47 gcc48 openmpi mpich description {Build with GCC 4.6} { 120 115 configure.compiler macports-gcc-4.6 116 configure.args-append FCCPP="${configure.cpp} -ansi" 121 117 } 122 118 123 119 variant gcc47 conflicts gcc46 gcc48 openmpi mpich description {Build with GCC 4.7} { 124 120 configure.compiler macports-gcc-4.7 121 configure.args-append FCCPP="${configure.cpp} -ansi" 125 122 } 126 123 127 124 variant gcc48 conflicts gcc46 gcc47 openmpi mpich description {Build with GCC 4.8} { 128 125 configure.compiler macports-gcc-4.8 126 configure.args-append FCCPP="${configure.cpp} -ansi" 129 127 } 130 128 131 129 variant openmpi conflicts gcc46 gcc47 gcc48 mpich description {Build with OpenMPI} { 132 130 configure.cc openmpicc 133 131 configure.fc openmpif90 132 configure.args-append FCCPP="${configure.cc} -E -ansi" 134 133 configure.args-delete --disable-mpi 135 134 # an in-place allreduce of lxyz_inv in mesh_init.F90 leads to zeroes afterwards with MPI2 136 135 configure.args-append --enable-mpi --without-external_zoltan --disable-mpi2 … … 141 140 variant mpich conflicts gcc46 gcc47 gcc48 openmpi description {Build with MPICH} { 142 141 configure.cc mpicc-mp 143 142 configure.fc mpif90-mp 143 configure.args-append FCCPP="${configure.cc} -E -ansi" 144 144 configure.args-delete --disable-mpi 145 145 configure.args-append --enable-mpi --without-external_zoltan 146 146 test.env-append MPIEXEC=${prefix}/bin/mpiexec-mp