Ticket #19679: llvm-global_lto.diff

File llvm-global_lto.diff, 1.2 KB (added by macports@…, 15 years ago)
  • llvm/Portfile

    old new  
    44
    55name                    llvm
    66version                 2.6
    7 revision                2
     7revision                3
    88categories              lang
    99platforms               darwin
    1010use_parallel_build      yes
    1111maintainers             erickt openmaintainer
     12license                 University of Illinois/NCSA Open Source License
    1213description             llvm is a next generation compiler infrastructure
    1314long_description        llvm brings tools to work on the llvm intermediate \
    1415                        language incl. a C and C++ frontend.
     
    8586    configure.args-append --enable-targets=host-only
    8687}
    8788
     89# possibly conditionalize this to be available on darwin 9 and 10 only
     90variant global_lto description {Install libLTO globally to enable -flto and -O4 everywhere} {
     91    post-destroot {
     92        file mkdir ${destroot}/usr/lib
     93        file link -symbolic ${destroot}/usr/lib/libLTO.dylib ${prefix}/lib/libLTO.dylib
     94    }
     95}
     96
    8897livecheck.type  regex
    8998livecheck.url   ${homepage}releases/
    90 livecheck.regex {'(\d+(?:\.\d+)*)'}
     99livecheck.regex {'(\d+\.\d+)'}