Ticket #14639: Portfile.diff

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

    old new  
    2626checksums       sha1 ff2d11d2708df08a2370999b19e2c277607afc06
    2727use_bzip2       yes
    2828
    29 configure.cppflags      "-DNDEBUG -Df2cFortran"
    30 configure.cxxflags      "-O2 -fno-common"
    31 configure.cflags        "-O2 -fno-common"
    32 configure.args  --enable-shared
     29configure.cppflags-append       "-DNDEBUG"
     30configure.cxxflags-append       "-fno-common"
     31configure.cflags-append         "-fno-common"
     32configure.args  --enable-shared \
     33                --disable-fortran-compiler-check \
     34                --disable-f77 --disable-f90
    3335
    3436test.run        yes
    3537test.target     check
     
    4143        file delete -force ${destroot}${prefix}/share/man/whatis.db
    4244}
    4345
    44 variant g95 {
    45         depends_lib             port:g95
    46         configure.fc            ${prefix}/bin/g95
    47         configure.env-append    FCFLAGS=-O2
     46variant gcc42 description {enable Fortran 77/90 API using gcc42} conflicts gcc43 g95 {
     47        configure.args-delete     --disable-fortran-compiler-check --disable-f77 --disable-f90
     48        depends_lib-append        port:gcc42
     49        configure.cppflags-append "-DpgiFortran"
     50        configure.fc              ${prefix}/bin/gfortran-mp-4.2
     51        configure.f77             ${configure.fc}
     52}
     53
     54variant gcc43 description {enable Fortran 77/90 API using gcc43} conflicts gcc42 g95 {
     55        configure.args-delete     --disable-fortran-compiler-check --disable-f77 --disable-f90
     56        depends_lib-append        port:gcc43
     57        configure.cppflags-append "-DpgiFortran"
     58        configure.fc              ${prefix}/bin/gfortran-mp-4.3
     59        configure.f77             ${configure.fc}
     60}
     61
     62variant g95 description {enable Fortran 77/90 API using g95} conflicts gcc42 gcc43 {
     63        configure.args-delete    --disable-fortran-compiler-check --disable-f77 --disable-f90
     64        depends_lib-append       port:g95
     65        #-lf95 required or the tests fail
     66        configure.ldflags-append -lf95
     67        configure.fc             ${prefix}/bin/g95
     68        configure.f77            ${configure.fc}
     69}
     70
     71variant docs description {install documentation} {
     72        configure.args-append --enable-docs-install
    4873}