Ignore:
Timestamp:
Jan 24, 2012, 10:31:47 PM (8 years ago)
Author:
ryandesign@…
Message:

Use new gcc-4.2 compiler selection block recommended at wiki:PortfileRecipes#compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/pwman/Portfile

    r87073 r89315  
    2929configure.args  --mandir=${prefix}/share/man
    3030
    31 if {${configure.compiler} == "clang" ||
    32     ${configure.compiler} == "llvm-gcc-4.2"} {
     31if {${configure.compiler} == "llvm-gcc-4.2"} {
    3332    configure.compiler gcc-4.2
    34     if {![file executable ${configure.cc}]} {
    35         depends_build-append port:apple-gcc42
    36         configure.compiler apple-gcc-4.2
    37         # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
    38         configure.cxx ${prefix}/bin/g++-apple-4.2
    39     }
     33} elseif {${configure.compiler} == "clang"} {
     34    depends_build-append port:apple-gcc42
     35    configure.compiler apple-gcc-4.2
     36    # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
     37    configure.cxx ${prefix}/bin/g++-apple-4.2
    4038}
    4139
Note: See TracChangeset for help on using the changeset viewer.