Changeset 97607 for trunk/dports


Ignore:
Timestamp:
Sep 9, 2012, 9:42:39 PM (7 years ago)
Author:
jeremyhu@…
Message:

clang-3.2: Install C++ headers and build fix for Leopard. See #34288

Location:
trunk/dports/lang/clang-3.2
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/clang-3.2/Portfile

    r97523 r97607  
    55
    66set llvm_version        3.2
    7 revision                0
     7revision                1
    88name                    clang-${llvm_version}
    99set suffix              mp-${llvm_version}
     
    3737version                 ${llvm_version}-r${svn.revision}
    3838set compiler_rt_rev     ${svn.revision}
     39set libcxx_rev          ${svn.revision}
    3940worksrcdir              trunk
    4041svn.url                 http://llvm.org/svn/llvm-project/llvm/trunk
     
    4546#version                 ${llvm_version}
    4647#set compiler_rt_rev     150641
     48#set libcxx_rev          ${compiler_rt_rev}
    4749#epoch                   1
    4850#master_sites            http://llvm.org/releases/${version}/
     
    125127        configure.args-append --with-optimize-option=-Os
    126128    }
     129
     130    if {${os.major} <= 9} {
     131        patchfiles-append       leopard-no-asan.patch
     132    }
    127133}
    128134
     
    143149    #system "cd ${worksrcpath}/tools && svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/cfe/branches/release_32 clang"
    144150    #file rename ${workpath}/clang-${llvm_version}.src ${worksrcpath}/tools/clang
     151
    145152    system "cd ${worksrcpath}/projects && svn co -r ${compiler_rt_rev} http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt"
    146153    #system "cd ${worksrcpath}/projects && svn co -r ${compiler_rt_rev} http://llvm.org/svn/llvm-project/compiler-rt/branches/release_32 compiler-rt"
    147154    #file rename ${workpath}/compiler-rt-${llvm_version}.src ${worksrcpath}/projects/compiler-rt
     155
     156    system "cd ${worksrcpath}/projects && svn co -r ${libcxx_rev} http://llvm.org/svn/llvm-project/libcxx/trunk libcxx"
     157    #system "cd ${worksrcpath}/projects && svn co -r ${libcxx_rev} http://llvm.org/svn/llvm-project/libcxx/branches/release_32 libcxx"
     158    #file rename ${workpath}/libcxx-${llvm_version}.src ${worksrcpath}/projects/libcxx
    148159}
    149160
     
    233244    }
    234245
     246    system "ditto ${worksrcpath}/projects/libcxx/include ${destroot}${sub_prefix}/lib/c++/v1"
     247
    235248    # http://trac.macports.org/ticket/33207
    236249    ln -s ${prefix}/libexec/ld64/ld ${destroot}${sub_prefix}/bin/ld
Note: See TracChangeset for help on using the changeset viewer.