Skip to content

Commit

Permalink
ape: Select cc and cpp from compilers PortGroup rather than preproces…
Browse files Browse the repository at this point in the history
…sing with default cc, which did not work on some OS versions.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@131696 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
dstrubbe committed Jan 15, 2015
1 parent ff84870 commit c385bb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions science/ape/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ depends_lib port:libxc port:gsl
configure.args --with-libxc-prefix=${prefix}
configure.optflags -O3

# uses C too, could introduce variants for that too.
compilers.choose fc
compilers.setup require_fortran -g95
# uses C too, could introduce variants for that too. would need to sort out FCCPP usage.
compilers.choose fc cc cpp
compilers.setup require_fortran -g95 -clang -gfortran -llvm

# g95 is disabled because of constructs regarded as illegal by this compiler.
# :info:build In file mesh_ape.f90:58
Expand All @@ -54,7 +54,7 @@ pre-configure {
# if {[variant_isset g95]} {
# configure.args-append FCCPP="${configure.cc} -P -E -ansi"
# } else {
configure.args-append FCCPP="${configure.cc} -E -ansi"
configure.args-append FCCPP="${configure.cpp} -ansi"
# }
}

Expand Down

0 comments on commit c385bb2

Please sign in to comment.