Ignore:
Timestamp:
Apr 21, 2012, 8:59:34 AM (7 years ago)
Author:
jeremyhu@…
Message:

{cctools,ld64}: Provide variants for choosing which version of llvm to use for LTO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/cctools/Portfile

    r92178 r92180  
    66version                 822
    77revision                2
    8 set llvm_version        3.0
    98categories              devel
    109platforms               darwin
     
    2423depends_lib             port:cctools-headers
    2524depends_build           path:lib/libprunetrie.a:ld64
    26 depends_run             port:llvm-${llvm_version}
    2725
    2826patchfiles              PR-11136237.patch lto.patch
     
    5452                        sha256  03ba62749b843b131c7304a044a98c6ffacd65b1399b921d69add0375f79d8ad
    5553    supported_archs     i386 x86_64
     54}
     55
     56if {![variant_isset llvm-2.9] && ![variant_isset llvm-3.0] && ![variant_isset llvm-3.1]} {
     57    default_variants +llvm-3.0
     58}
     59
     60set llvm_version {}
     61variant llvm29 conflicts llvm30 llvm31 description {Use llvm-2.9 for libLTO and llvm-mc} {
     62    set llvm_version        2.9
     63    depends_run-append      port:llvm-${llvm_version}
     64}
     65
     66variant llvm30 conflicts llvm29 llvm31 description {Use llvm-3.0 for libLTO and llvm-mc} {
     67    set llvm_version        3.0
     68    depends_run-append      port:llvm-${llvm_version}
     69}
     70
     71variant llvm31 conflicts llvm29 llvm30 description {Use llvm-3.1 for libLTO and llvm-mc} {
     72    set llvm_version        3.1
     73    depends_run-append      port:llvm-${llvm_version}
    5674}
    5775
Note: See TracChangeset for help on using the changeset viewer.