Ticket #14913: Portfile.diff

File Portfile.diff, 2.4 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 17 years ago)
  • Portfile

    old new  
    1717                    rmd160 2dbbcccd32986dcd66ce804c5e90ac6c949b71f6
    1818
    1919depends_lib         port:zlib
    20 patchfiles              patch-commence.in patch-c-commence.in
     20patchfiles              patch-commence.in patch-c-commence.in \
     21                    patch-fortran-commence.in patch-H5f90i.h
    2122
    2223use_parallel_build  yes
    2324configure.args      --enable-cxx --with-zlib=yes --with-szlib=no
    24 configure.ldflags   "-L${worksrcpath}/src/.libs -L${prefix}/lib"
     25configure.ldflags   -L${worksrcpath}/src/.libs -L${prefix}/lib
    2526destroot.destdir    prefix=${destroot}${prefix}
    2627test.run            yes
    2728test.target         check
    2829
    29 variant szip description "Enable szip compression support" {
     30variant szip description {Enable szip compression support} {
    3031    configure.args-delete       --with-szlib=no
    3132        configure.args-append   --with-szlib=yes
    3233        depends_lib-append          port:szip
    3334}
    3435
    35 variant gcc43 description "Use GCC 4.3 for compilation of HDF-5 - optimized for host machine (+ Fotran support)" {
     36variant optimized description {Use GCC 4.3 for compilation of HDF-5 - optimized for host machine} {
    3637    depends_build-append        port:gcc43
    37     configure.args-append       --enable-fortran
    3838    configure.compiler          macports-gcc-4.3
    39     configure.cflags-append     "-ftree-vectorize -march=native -O3"
    40     configure.cxxflags-append   "-ftree-vectorize -march=native -O3"
     39    configure.cflags-delete     -O2
     40    configure.cxxflags-delete   -O2
     41    configure.cflags-append     -ftree-vectorize -march=native -O3
     42    configure.cxxflags-append   -ftree-vectorize -march=native -O3
     43    if { [variant_isset gcc43] } {
     44        configure.fflags-delete     -O2
     45        configure.fflags-append     -ftree-vectorize -march=native -O3
     46    } else {
     47        configure.fflags-delete     -O2
     48        configure.fflags-append     -ftree-vectorize -O3
     49    }
     50}
     51
     52variant gcc43 description {compile the Fortran interface using GCC 4.3} conflicts g95 {
     53    depends_build-append        port:gcc43
     54    configure.args-append       --enable-fortran
     55    configure.fc                ${prefix}/bin/gfortran-mp-4.3
     56}
     57
     58variant g95 description {compile the Fortran interface using G95} conflicts gcc43 {
     59    depends_build-append        port:g95
     60    configure.args-append       --enable-fortran
     61    configure.fc                ${prefix}/bin/g95
    4162}