29 | | configure.cppflags "-DNDEBUG -Df2cFortran" |
30 | | configure.cxxflags "-O2 -fno-common" |
31 | | configure.cflags "-O2 -fno-common" |
32 | | configure.args --enable-shared |
| 29 | configure.cppflags-append "-DNDEBUG" |
| 30 | configure.cxxflags-append "-fno-common" |
| 31 | configure.cflags-append "-fno-common" |
| 32 | configure.args --enable-shared \ |
| 33 | --disable-fortran-compiler-check \ |
| 34 | --disable-f77 --disable-f90 |
44 | | variant g95 { |
45 | | depends_lib port:g95 |
46 | | configure.fc ${prefix}/bin/g95 |
47 | | configure.env-append FCFLAGS=-O2 |
| 46 | variant 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 | |
| 54 | variant 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 | |
| 62 | variant 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 | |
| 71 | variant docs description {install documentation} { |
| 72 | configure.args-append --enable-docs-install |