[87257] trunk/dports/lang/erlang/Portfile

Ryan Schmidt ryandesign at macports.org
Tue Nov 15 20:21:27 PST 2011


On Nov 15, 2011, at 22:16, Brent Fulgham wrote:

> On Nov 15, 2011, at 10:34 AM, Ryan Schmidt wrote:
> 
>> On Nov 15, 2011, at 00:06, bfulgham at macports.org wrote:
>>> 
>>> +    # Erlang seems to have an on-again/off-again relationship with Clang.
>>> +    # As of XCode 4.2, it's off again.
>>> +    if {${configure.compiler} == "clang"} { 
>>> +        configure.compiler llvm-gcc-4.2 
>>> +    } 
>> 
>> This block should probably not be restricted to platform darwin 11; Xcode 4.2 exists for darwin 10 too (for paid Apple developer program members).
> 
> Is it possible to have a stanza like this apply to both darwin 10 and 11 in a common area? Or do I need to copy/paste the code in both places?

Just do it as https://trac.macports.org/PortfileRecipes#compiler shows: just put it in the top level of the portfile, like we've already done in dozens of other ports:

if {${configure.compiler} == "clang"} { 
    configure.compiler llvm-gcc-4.2 
} 




More information about the macports-dev mailing list