Ticket #34370: Portfile.diff

File Portfile.diff, 3.4 KB (added by eborisch (Eric A. Borisch), 12 years ago)
  • Portfile

     
    114114        file delete ${destroot}${prefix}/share/info/fftw3.info-3
    115115        file delete ${destroot}${prefix}/share/info/fftw3.info-4
    116116        file delete ${destroot}${prefix}/share/info/fftw3.info-5
     117
     118        if {[variant_isset mpich2] || [variant_isset openmpi]} {
     119          file delete ${destroot}${prefix}/include/fftw3-mpi.f03
     120          file delete ${destroot}${prefix}/include/fftw3-mpi.h
     121          file delete ${destroot}${prefix}/include/fftw3l-mpi.f03
     122        }
    117123    }
    118124}
    119125
     
    155161        file delete ${destroot}${prefix}/share/info/fftw3.info-3
    156162        file delete ${destroot}${prefix}/share/info/fftw3.info-4
    157163        file delete ${destroot}${prefix}/share/info/fftw3.info-5
     164
     165        if {[variant_isset mpich2] || [variant_isset openmpi]} {
     166          file delete ${destroot}${prefix}/include/fftw3-mpi.f03
     167          file delete ${destroot}${prefix}/include/fftw3-mpi.h
     168          file delete ${destroot}${prefix}/include/fftw3l-mpi.f03
     169        }
    158170    }
    159171}
    160172
     
    174186
    175187variant gcc43 description {compile using gcc43 toolchain} conflicts gcc42 gcc44 gcc45 gcc46 gcc47 g95 {
    176188    depends_lib-append    port:gcc43
    177     configure.compiler    macports-mp-4.3
     189    configure.compiler    macports-gcc-4.3
    178190    configure.args-delete --disable-fortran
    179191    if { ${os.arch} == "i386" } {
    180192        lappend merger_configure_args(ppc)     "--disable-fortran"
     
    187199
    188200variant gcc44 description {compile using gcc44 toolchain} conflicts gcc42 gcc43 gcc45 gcc46 gcc47 g95 {
    189201    depends_lib-append    port:gcc44
    190     configure.compiler    macports-mp-4.4
     202    configure.compiler    macports-gcc-4.4
    191203    configure.args-delete --disable-fortran
    192204    if { ${os.arch} == "i386" } {
    193205        lappend merger_configure_args(ppc)     "--disable-fortran"
     
    200212
    201213variant gcc45 description {compile using gcc45 toolchain} conflicts gcc42 gcc43 gcc44 gcc46 gcc47 g95 {
    202214    depends_lib-append    port:gcc45
    203     configure.compiler    macports-mp-4.5
     215    configure.compiler    macports-gcc-4.5
    204216    configure.args-delete --disable-fortran
    205217    if { ${os.arch} == "i386" } {
    206218        lappend merger_configure_args(ppc)     "--disable-fortran"
     
    213225
    214226variant gcc46 description {compile using gcc46 toolchain} conflicts gcc42 gcc43 gcc44 gcc45 gcc47 g95 {
    215227    depends_lib-append    port:gcc46
    216     configure.compiler    macports-mp-4.6
     228    configure.compiler    macports-gcc-4.6
    217229    configure.args-delete --disable-fortran
    218230    if { ${os.arch} == "i386" } {
    219231        lappend merger_configure_args(ppc)     "--disable-fortran"
     
    226238
    227239variant gcc47 description {compile using gcc47 toolchain} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 g95 {
    228240    depends_lib-append    port:gcc47
    229     configure.compiler    macports-mp-4.7
     241    configure.compiler    macports-gcc-4.7
    230242    configure.args-delete --disable-fortran
    231243    if { ${os.arch} == "i386" } {
    232244        lappend merger_configure_args(ppc)     "--disable-fortran"
     
    260272}
    261273
    262274variant mpich2 description {compile FFTW MPI library with MPICH2} conflicts openmpi {
    263     depends_lib-append      port:mpich2
     275    depends_lib-append      path:bin/mpicc:mpich2
    264276    configure.env           MPICC=${prefix}/bin/mpicc
    265277    configure.args-append   --enable-mpi
    266278}