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/lang/swi-prolog/Portfile

    r85594 r89315  
    6666        --with-world
    6767
    68 if {${configure.compiler} == "clang" ||
    69         ${configure.compiler} == "llvm-gcc-4.2"} {
     68if {${configure.compiler} == "llvm-gcc-4.2"} {
    7069        configure.compiler gcc-4.2
    71         if {![file executable ${configure.cc}]} {
    72                 depends_build-append port:apple-gcc42
    73                 configure.compiler apple-gcc-4.2
    74         }
     70} elseif {${configure.compiler} == "clang"} {
     71        depends_build-append port:apple-gcc42
     72        configure.compiler apple-gcc-4.2
     73        # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
     74        configure.cxx ${prefix}/bin/g++-apple-4.2
    7575}
    7676
Note: See TracChangeset for help on using the changeset viewer.