<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[122798] trunk/dports/lang</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/122798">122798</a></dd>
<dt>Author</dt> <dd>jeremyhu@macports.org</dd>
<dt>Date</dt> <dd>2014-07-29 23:09:13 -0700 (Tue, 29 Jul 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>{clang,llvm}-3.6: New port</pre>

<h3>Added Paths</h3>
<ul>
<li>trunk/dports/lang/llvm-3.6/</li>
<li><a href="#trunkdportslangllvm36Portfile">trunk/dports/lang/llvm-3.6/Portfile</a></li>
<li>trunk/dports/lang/llvm-3.6/files/</li>
<li><a href="#trunkdportslangllvm36files0001CommentoutSLcctoolsworkaroundpatch">trunk/dports/lang/llvm-3.6/files/0001-Comment-out-SL-cctools-workaround.patch</a></li>
<li><a href="#trunkdportslangllvm36filesclangformatpatch">trunk/dports/lang/llvm-3.6/files/clang-format.patch</a></li>
<li><a href="#trunkdportslangllvm36filesclangmodernizepatch">trunk/dports/lang/llvm-3.6/files/clang-modernize.patch</a></li>
<li><a href="#trunkdportslangllvm36filesinstall_targetpatch">trunk/dports/lang/llvm-3.6/files/install_target.patch</a></li>
<li><a href="#trunkdportslangllvm36filesleopardnoasanpatch">trunk/dports/lang/llvm-3.6/files/leopard-no-asan.patch</a></li>
<li><a href="#trunkdportslangllvm36filesllvmbin">trunk/dports/lang/llvm-3.6/files/llvm-bin</a></li>
<li><a href="#trunkdportslangllvm36filesmpclang36">trunk/dports/lang/llvm-3.6/files/mp-clang-3.6</a></li>
<li><a href="#trunkdportslangllvm36filesmpllvm36">trunk/dports/lang/llvm-3.6/files/mp-llvm-3.6</a></li>
<li><a href="#trunkdportslangllvm36filesscanbuildPR35006patch">trunk/dports/lang/llvm-3.6/files/scan-build-PR-35006.patch</a></li>
<li><a href="#trunkdportslangllvm36filessnowleopardcmathpatch">trunk/dports/lang/llvm-3.6/files/snowleopard-cmath.patch</a></li>
<li><a href="#trunkdportslangllvm36filestigerlibclangpatch">trunk/dports/lang/llvm-3.6/files/tiger-libclang.patch</a></li>
<li><a href="#trunkdportslangllvm36filesyosemitedeploymenttargetpatch">trunk/dports/lang/llvm-3.6/files/yosemite-deployment-target.patch</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportslangllvm36Portfile"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/llvm-3.6/Portfile (0 => 122798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/llvm-3.6/Portfile                                (rev 0)
+++ trunk/dports/lang/llvm-3.6/Portfile        2014-07-30 06:09:13 UTC (rev 122798)
</span><span class="lines">@@ -0,0 +1,383 @@
</span><ins>+# $Id$
+
+PortSystem              1.0
+PortGroup select        1.0
+PortGroup compiler_blacklist_versions 1.0
+
+set llvm_version        3.6
+set llvm_version_no_dot 36
+name                    llvm-${llvm_version}
+subport                 clang-${llvm_version} { }
+set suffix              mp-${llvm_version}
+set sub_prefix          ${prefix}/libexec/llvm-${llvm_version}
+dist_subdir             llvm
+categories              lang
+platforms               darwin
+license                 NCSA
+maintainers             jeremyhu
+
+if {${subport} == &quot;llvm-${llvm_version}&quot;} {
+    homepage            http://llvm.org/
+    description         llvm is a next generation compiler infrastructure
+    long_description    The LLVM Core libraries provide a modern source- and \
+                        target-independent optimizer, along with code \
+                        generation support for many popular CPUs (as well as \
+                        some less common ones!) These libraries are built \
+                        around a well specified code representation known as \
+                        the LLVM intermediate representation (&quot;LLVM IR&quot;).
+
+    depends_lib         port:libffi
+    depends_run         bin:perl:perl5 port:llvm_select
+} elseif {${subport} == &quot;clang-${llvm_version}&quot;} {
+    homepage            http://clang.llvm.org/
+    description         C, C++, Objective C and Objective C++ compiler
+    long_description    Clang is an &quot;LLVM native&quot; C/C++/Objective-C compiler, \
+                        which aims to deliver amazingly fast compiles (e.g. \
+                        about 3x faster than GCC when compiling Objective-C \
+                        code in a debug configuration), extremely useful error \
+                        and warning messages and to provide a platform for \
+                        building great source level tools. The included Clang \
+                        Static Analyzer is a tool that automatically finds bugs in \
+                        your code, and is a great example of the sort of tool \
+                        that can be built using the Clang frontend as a \
+                        library to parse C/C++ code.
+
+    depends_lib         port:llvm-${llvm_version} port:libffi port:python27
+    depends_run         port:clang_select port:ld64
+    depends_extract     bin:svn:subversion
+    depends_build       port:cctools
+    depends_skip_archcheck-append cctools ld64 subversion
+
+    default_variants    +analyzer
+}
+
+fetch.type              svn
+svn.revision            214285
+
+set compiler_rt_rev     ${svn.revision}
+set libcxx_rev          ${svn.revision}
+set clang-modernize_rev ${svn.revision}
+version                 ${llvm_version}-r${svn.revision}
+worksrcdir              trunk
+svn.url                 http://llvm.org/svn/llvm-project/llvm/trunk
+#worksrcdir              release_${llvm_version_no_dot}
+#svn.url                 http://llvm.org/svn/llvm-project/llvm/branches/release_${llvm_version_no_dot}
+default_variants-append +assertions
+
+#version                 ${llvm_version}
+#epoch                   1
+#master_sites            http://llvm.org/releases/${version}
+#extract.suffix          .tar.gz
+#distfiles               llvm-${version}.src${extract.suffix}
+#worksrcdir              llvm-${version}
+
+if {${distfiles} != &quot;&quot;} {
+    if {${subport} == &quot;llvm-${llvm_version}&quot;} {
+        if {[variant_isset polly]} {
+            distfiles-append     polly-${version}.src${extract.suffix}
+        }
+    } elseif {${subport} == &quot;clang-${llvm_version}&quot;} {
+        distfiles-append     clang-${version}.src${extract.suffix} compiler-rt-${version}.src${extract.suffix} libcxx-${version}.src${extract.suffix} clang-tools-extra-${version}.src${extract.suffix}
+    }
+}
+
+patchfiles      install_target.patch
+
+patch.pre_args  -p1
+
+if {${subport} == &quot;clang-${llvm_version}&quot;} {
+    patchfiles-append    scan-build-PR-35006.patch \
+                         0001-Comment-out-SL-cctools-workaround.patch \
+                         clang-format.patch \
+                         clang-modernize.patch \
+                         yosemite-deployment-target.patch \
+                         snowleopard-cmath.patch
+
+    build.target        clang-only
+    destroot.target     install-clang
+}
+
+build.env-append        VERBOSE=1 \
+                        REQUIRES_RTTI=1
+destroot.env-append     VERBOSE=1 \
+                        REQUIRES_RTTI=1
+configure.pre_args-delete --prefix=${prefix}
+configure.args          --enable-bindings=none --enable-libffi --enable-shared --enable-jit \
+                        --enable-optimized --disable-profiling --enable-pic \
+                        --enable-debug-symbols --disable-debug-runtime \
+                        --prefix=&quot;${sub_prefix}&quot;
+
+if {${subport} == &quot;llvm-${llvm_version}&quot;} {
+    select.group        llvm
+    select.file         ${filespath}/mp-${subport}
+} elseif {${subport} == &quot;clang-${llvm_version}&quot;} {
+    select.group        clang
+    select.file         ${filespath}/mp-${subport}
+
+    configure.args-append --with-python=${prefix}/bin/python2.7
+}
+
+# llvm-3.5 and later requires a C++11 runtime
+# XCode 4.3's clang (318.x) fails per https://trac.macports.org/ticket/44161
+compiler.blacklist *gcc* {clang &lt; 421}
+
+platform darwin {
+    # Note that we are forcing this choice.  This means that anything linking
+    # against llvm-3.5 needs to also be using libc++.  This is possibly
+    # problematic, but luckily there is just a limited set of such dependents.
+
+    configure.cxx_stdlib libc++
+    depends_lib-append port:libcxx
+
+    pre-fetch {
+        if {![file exists /usr/lib/libc++.dylib]} {
+            ui_error &quot;$name requires a C++11 runtime, which your configuration does not allow&quot;
+            error &quot;unsupported configuration&quot;
+        }
+    }
+}
+
+variant universal {
+    build.env-append \
+        UNIVERSAL=1 \
+        UNIVERSAL_ARCH=&quot;[get_canonical_archs]&quot;
+    destroot.env-append \
+        UNIVERSAL=1 \
+        UNIVERSAL_ARCH=&quot;[get_canonical_archs]&quot;
+
+    post-extract {
+        # workaround a bug in Apple's shipped gcc driver-driver, patched in
+        # ours with driverdriver-num_infiles.patch
+        if {${configure.compiler} == &quot;gcc-4.0&quot; ||
+            ${configure.compiler} == &quot;gcc-4.2&quot; ||
+            ${configure.compiler} == &quot;llvm-gcc-4.2&quot;} {
+            system &quot;echo \&quot;static int ___ignoreme;\&quot; &gt; ${worksrcpath}/tools/llvm-shlib/ignore.c&quot;
+        }
+    }
+}
+
+variant assertions description &quot;Enable assertions for error detection (has performance impacts, especially on JIT)&quot; {
+    configure.args-append --enable-assertions
+}
+
+platform darwin {
+    if {${build_arch} eq &quot;i386&quot;} {
+        configure.pre_args-append --build=i686-apple-darwin${os.major}
+    } elseif {${build_arch} eq &quot;ppc&quot;} {
+        configure.pre_args-append --build=powerpc-apple-darwin${os.major}
+    } elseif {${build_arch} eq &quot;ppc64&quot;} {
+        configure.pre_args-append --build=powerpc64-apple-darwin${os.major}
+    } else {
+        configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
+    }
+
+    if {[string match &quot;*ppc*&quot; [get_canonical_archs]]} {
+        # http://trac.macports.org/ticket/33987
+        configure.args-append --with-optimize-option=-Os
+        configure.optflags    -Os
+    }
+
+    if {${subport} == &quot;clang-${llvm_version}&quot; &amp;&amp; ${os.major} &lt;= 9} {
+        patchfiles-append leopard-no-asan.patch
+    }
+
+    # TODO: The llvm build system sets a 10.1 deployment target on Yosemite
+    if {[vercmp ${macosx_deployment_target} 10.10] &gt;= 0} {
+        macosx_deployment_target 10.9
+    }
+
+    if {${os.major} &lt; 10} {
+        post-patch {
+            reinplace &quot;/TARGETS_TO_BUILD=/s/R600//&quot; ${worksrcpath}/configure
+        }
+    }
+
+    if {${os.major} &lt; 9} {
+        # Tiger's DevTools make has issues with the nested ifs in compiler-rt
+        depends_run-append      port:gmake
+        build.cmd               ${prefix}/bin/gmake
+
+        post-configure {
+            reinplace &quot;/^RPATH/s/=.*/=/&quot; ${worksrcpath}/Makefile.config
+        }
+    }
+}
+
+post-extract {
+    if {${subport} == &quot;llvm-${llvm_version}&quot;} {
+        if {[variant_isset polly]} {
+            if {${worksrcdir} == &quot;trunk&quot;} {
+                system &quot;cd ${worksrcpath}/tools &amp;&amp; svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/polly/trunk polly&quot;
+            } elseif {${worksrcdir} == &quot;release_${llvm_version_no_dot}&quot; } {
+                system &quot;cd ${worksrcpath}/tools &amp;&amp; svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/polly/branches/release_${llvm_version_no_dot} polly&quot;
+            } else {
+                file rename ${workpath}/polly-${llvm_version} ${worksrcpath}/tools/polly
+            }
+        }
+    } elseif {${subport} == &quot;clang-${llvm_version}&quot;} {
+        if {${worksrcdir} == &quot;trunk&quot;} {
+            system &quot;cd ${worksrcpath}/tools &amp;&amp; svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/cfe/trunk clang&quot;
+            system &quot;cd ${worksrcpath}/projects &amp;&amp; svn co -r ${compiler_rt_rev} http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt&quot;
+            system &quot;cd ${worksrcpath}/projects &amp;&amp; svn co -r ${libcxx_rev} http://llvm.org/svn/llvm-project/libcxx/trunk libcxx&quot;
+            system &quot;cd ${worksrcpath}/tools/clang/tools &amp;&amp; svn co -r ${clang-modernize_rev} http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra&quot;
+        } elseif {${worksrcdir} == &quot;release_${llvm_version_no_dot}&quot; } {
+            system &quot;cd ${worksrcpath}/tools &amp;&amp; svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/cfe/branches/release_${llvm_version_no_dot} clang&quot;
+            system &quot;cd ${worksrcpath}/projects &amp;&amp; svn co -r ${compiler_rt_rev} http://llvm.org/svn/llvm-project/compiler-rt/branches/release_${llvm_version_no_dot} compiler-rt&quot;
+            system &quot;cd ${worksrcpath}/projects &amp;&amp; svn co -r ${libcxx_rev} http://llvm.org/svn/llvm-project/libcxx/branches/release_${llvm_version_no_dot} libcxx&quot;
+            system &quot;cd ${worksrcpath}/tools/clang/tools &amp;&amp; svn co -r ${clang-modernize_rev} http://llvm.org/svn/llvm-project/clang-tools-extra/branches/release_${llvm_version_no_dot} extra&quot;
+        } else {
+            file rename ${workpath}/clang-${llvm_version} ${worksrcpath}/tools/clang
+            file rename ${workpath}/compiler-rt-${llvm_version} ${worksrcpath}/projects/compiler-rt
+            file rename ${workpath}/libcxx-${llvm_version} ${worksrcpath}/projects/libcxx
+            file rename ${workpath}/clang-tools-extra-${llvm_version} ${worksrcpath}/tools/clang/tools/extra
+        }
+    }
+}
+
+post-patch {
+    if {${subport} == &quot;clang-${llvm_version}&quot;} {
+        # http://trac.macports.org/ticket/33272
+        if {![variant_isset arm_runtime]} {
+            reinplace {/^SubDirs/ s/arm//} ${worksrcpath}/projects/compiler-rt/lib/Makefile.mk
+            reinplace {/^UniversalArchs/ s/arm[^ )]* *//g} ${worksrcpath}/projects/compiler-rt/make/platform/clang_darwin.mk
+
+            reinplace {/cc_kext_ios5/ s/^/#/} ${worksrcpath}/projects/compiler-rt/make/platform/clang_darwin.mk
+            reinplace {s/cc_kext_ios5.a//} ${worksrcpath}/tools/clang/runtime/compiler-rt/Makefile
+        }
+
+        reinplace {s/VERBOSE := 0/VERBOSE := 1/} ${worksrcpath}/projects/compiler-rt/make/config.mk
+
+        reinplace &quot;s|@@PREFIX@@|${prefix}|g&quot; \
+            ${worksrcpath}/projects/compiler-rt/make/platform/clang_darwin.mk \
+            ${worksrcpath}/projects/compiler-rt/make/platform/clang_macho_embedded.mk
+    }
+}
+
+post-destroot {
+    file mkdir ${destroot}${prefix}/share/doc
+    file rename ${destroot}${sub_prefix}/docs/llvm ${destroot}${prefix}/share/doc/${subport}
+
+    foreach bin [glob ${destroot}${sub_prefix}/bin/*] {
+        set bin_filename [string map &quot;${sub_prefix} ${prefix}&quot; ${bin}]-${suffix}
+        set exec_path [string map &quot;${destroot}${sub_prefix} ${sub_prefix}&quot; ${bin}]
+
+        xinstall -m 755 &quot;${filespath}/llvm-bin&quot; &quot;${bin_filename}&quot;
+        reinplace &quot;s:EXEC_PATH:${exec_path}:&quot; &quot;${bin_filename}&quot;
+    }
+
+    if {${subport} == &quot;llvm-${llvm_version}&quot;} {
+        # r156389 (a5d2435409858728970202226d0bbbee508fe408) temporarilary removed llvm man pages
+        #foreach man [glob ${destroot}${sub_prefix}/share/man/man1/*.1] {
+        #    set basename [string map &quot;${destroot}${sub_prefix}/share/man/man1/ {}&quot; ${man}]
+        #    file rename ${man} ${destroot}${prefix}/share/man/man1/[string map &quot;.1 -${suffix}.1&quot; ${basename}]
+        #}
+
+        foreach liba [glob ${destroot}${sub_prefix}/lib/*dylib] {
+            set liba_nodr [string map &quot;${destroot} {}&quot; ${liba}]
+            system &quot;install_name_tool -id ${liba_nodr} ${liba}&quot;
+
+            foreach libb [glob ${destroot}${sub_prefix}/lib/*dylib] {
+                set libb_base [string map &quot;${destroot}${sub_prefix}/lib/ {}&quot; ${libb}]
+                set libb_nodr [string map &quot;${destroot} {}&quot; ${libb}]
+
+                system &quot;install_name_tool -change @executable_path/../lib/${libb_base} ${libb_nodr} ${liba}&quot;
+                system &quot;install_name_tool -change @rpath/${libb_base} ${libb_nodr} ${liba}&quot;
+            }
+        }
+    } elseif {${subport} == &quot;clang-${llvm_version}&quot;} {
+        system &quot;ditto ${worksrcpath}/projects/libcxx/include ${destroot}${sub_prefix}/lib/c++/v1&quot;
+
+        # http://trac.macports.org/ticket/33207
+        ln -s ${prefix}/libexec/ld64/ld ${destroot}${sub_prefix}/bin/ld
+
+        system &quot;install_name_tool -id ${sub_prefix}/lib/libclang.dylib ${destroot}${sub_prefix}/lib/libclang.dylib&quot;
+        system &quot;install_name_tool -change @executable_path/../lib/libLLVM-${llvm_version}svn.dylib ${sub_prefix}/lib/libLLVM-${llvm_version}svn.dylib ${destroot}${sub_prefix}/lib/libclang.dylib&quot;
+        system &quot;install_name_tool -change @executable_path/../lib/libLLVM-${llvm_version}.dylib ${sub_prefix}/lib/libLLVM-${llvm_version}.dylib ${destroot}${sub_prefix}/lib/libclang.dylib&quot;
+        system &quot;install_name_tool -change @rpath/libLLVM-${llvm_version}svn.dylib ${sub_prefix}/lib/libLLVM-${llvm_version}svn.dylib ${destroot}${sub_prefix}/lib/libclang.dylib&quot;
+        system &quot;install_name_tool -change @rpath/libLLVM-${llvm_version}.dylib ${sub_prefix}/lib/libLLVM-${llvm_version}.dylib ${destroot}${sub_prefix}/lib/libclang.dylib&quot;
+
+        if {${os.major} &gt; 9} {
+            # http://trac.macports.org/ticket/38527
+            system &quot;install_name_tool -id ${sub_prefix}/lib/clang/${llvm_version}.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib ${destroot}${sub_prefix}/lib/clang/${llvm_version}.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib&quot;
+        }
+    }
+}
+
+if {${subport} == &quot;llvm-${llvm_version}&quot;} {
+    variant polly description {Provide the polly polyhedral optimizer} {
+        depends_lib-append port:isl-devel port:gmp port:cloog-devel
+    }
+
+    variant ocaml description {Enable generation of OCaml binding} {
+        depends_lib-append   port:ocaml
+
+        configure.args-delete --enable-bindings=none
+        configure.args-append --enable-bindings=ocaml
+
+        destroot.args-append  OVERRIDE_libdir=${sub_prefix}/lib
+    }
+} elseif {${subport} == &quot;clang-${llvm_version}&quot;} {
+    variant arm_runtime description {Build and install the arm runtime for iOS development (requires iOS SDK)} {}
+
+    # The iOS SDK was shipped with all Xcode releases after 4.0
+    if {[info exists xcodeversion] &amp;&amp; [vercmp &quot;4.0&quot; ${xcodeversion}] &lt;= 0} {
+       default_variants-append +arm_runtime
+    }
+
+    variant analyzer description {Install clang static analyzer} {
+        depends_run-append port:perl5
+
+        post-patch {
+            reinplace &quot;s|/usr/bin/env perl|${prefix}/bin/perl5|g&quot; \
+                ${worksrcpath}/tools/clang/tools/scan-build/ccc-analyzer \
+                ${worksrcpath}/tools/clang/tools/scan-build/c++-analyzer \
+                ${worksrcpath}/tools/clang/tools/scan-build/scan-build
+            reinplace &quot;s|/usr/bin/env python|${prefix}/bin/python2.7|g&quot; \
+                ${worksrcpath}/tools/clang/tools/scan-build/set-xcode-analyzer \
+                ${worksrcpath}/tools/clang/tools/scan-view/scan-view
+        }
+
+        post-destroot {
+            file mkdir ${destroot}${sub_prefix}/libexec
+            file copy ${worksrcpath}/tools/clang/tools/scan-build ${destroot}${sub_prefix}/libexec/scan-build
+            file copy ${worksrcpath}/tools/clang/tools/scan-view ${destroot}${sub_prefix}/libexec/scan-view
+
+            file delete -force ${destroot}${sub_prefix}/libexec/scan-build/.svn
+            file delete -force ${destroot}${sub_prefix}/libexec/scan-view/.svn
+            file delete -force ${destroot}${sub_prefix}/libexec/scan-view/Resources/.svn
+
+            ln -s ${sub_prefix}/libexec/scan-build/scan-build ${destroot}${sub_prefix}/bin/scan-build
+            ln -s ${sub_prefix}/libexec/scan-view/scan-view ${destroot}${sub_prefix}/bin/scan-view
+            ln -s ${sub_prefix}/bin ${destroot}${sub_prefix}/libexec/scan-build/bin
+
+            xinstall -m 755 &quot;${filespath}/llvm-bin&quot; &quot;${destroot}${prefix}/bin/scan-build-${suffix}&quot;
+            reinplace &quot;s:EXEC_PATH:${sub_prefix}/bin/scan-build:&quot; &quot;${destroot}${prefix}/bin/scan-build-${suffix}&quot;
+
+            xinstall -m 755 &quot;${filespath}/llvm-bin&quot; &quot;${destroot}${prefix}/bin/scan-view-${suffix}&quot;
+            reinplace &quot;s:EXEC_PATH:${sub_prefix}/bin/scan-view:&quot; &quot;${destroot}${prefix}/bin/scan-view-${suffix}&quot;
+        }
+    }
+
+
+    post-patch {
+        reinplace &quot;s|@CLANG_FORMAT_PATH@|${prefix}/bin/clang-format-${suffix}|g&quot; \
+            ${worksrcpath}/tools/clang/tools/clang-format/clang-format-bbedit.applescript \
+            ${worksrcpath}/tools/clang/tools/clang-format/clang-format-diff.py            \
+            ${worksrcpath}/tools/clang/tools/clang-format/clang-format-sublime.py         \
+            ${worksrcpath}/tools/clang/tools/clang-format/clang-format.el                 \
+            ${worksrcpath}/tools/clang/tools/clang-format/clang-format.py
+    }
+
+    post-destroot {
+        file mkdir ${destroot}${sub_prefix}/libexec
+        file copy ${worksrcpath}/tools/clang/tools/clang-format ${destroot}${sub_prefix}/libexec/clang-format
+
+        file delete -force ${destroot}${sub_prefix}/libexec/clang-format/.svn
+        file delete -force ${destroot}${sub_prefix}/libexec/clang-format/Makefile
+        file delete -force ${destroot}${sub_prefix}/libexec/clang-format/Release+Debug+Asserts
+        file delete -force ${destroot}${sub_prefix}/libexec/clang-format/CMakeLists.txt
+        file delete -force ${destroot}${sub_prefix}/libexec/clang-format/ClangFormat.cpp
+    }
+}
+
+livecheck.type          none
</ins><span class="cx">Property changes on: trunk/dports/lang/llvm-3.6/Portfile
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkdportslangllvm36files0001CommentoutSLcctoolsworkaroundpatch"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/llvm-3.6/files/0001-Comment-out-SL-cctools-workaround.patch (0 => 122798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/llvm-3.6/files/0001-Comment-out-SL-cctools-workaround.patch                                (rev 0)
+++ trunk/dports/lang/llvm-3.6/files/0001-Comment-out-SL-cctools-workaround.patch        2014-07-30 06:09:13 UTC (rev 122798)
</span><span class="lines">@@ -0,0 +1,57 @@
</span><ins>+--- a/projects/compiler-rt/make/platform/clang_darwin.mk
++++ a/projects/compiler-rt/make/platform/clang_darwin.mk
+@@ -47,11 +47,11 @@ XCRunSdkPath = \

+ CC       := $(call XCRun,clang)
+ LD       := $(shell $(CC) -print-prog-name=ld)
+-AR       := $(call XCRun,ar)
+-RANLIB   := $(call XCRun,ranlib)
+-STRIP    := $(call XCRun,strip)
+-LIPO     := $(call XCRun,lipo)
+-DSYMUTIL := $(call XCRun,dsymutil)
++AR       := @@PREFIX@@/bin/ar
++RANLIB   := @@PREFIX@@/bin/ranlib
++STRIP    := @@PREFIX@@/bin/strip
++LIPO     := @@PREFIX@@/bin/lipo
++DSYMUTIL := @@PREFIX@@/bin/dsymutil

+ Configs :=
+ UniversalArchs :=
+@@ -83,12 +83,12 @@ UniversalArchs.ubsan_osx := $(call Check
+ # object files. If we are on that platform, strip out all ARM archs. We still
+ # build the libraries themselves so that Clang can find them where it expects
+ # them, even though they might not have an expected slice.
+-ifneq ($(shell test -x /usr/bin/sw_vers &amp;&amp; sw_vers -productVersion | grep 10.6),)
+-UniversalArchs.ios := $(filter-out armv7, $(UniversalArchs.ios))
+-UniversalArchs.cc_kext := $(filter-out armv7, $(UniversalArchs.cc_kext))
+-UniversalArchs.cc_kext_ios5 := $(filter-out armv7, $(UniversalArchs.cc_kext_ios5))
+-UniversalArchs.profile_ios := $(filter-out armv7, $(UniversalArchs.profile_ios))
+-endif
++#ifneq ($(shell test -x /usr/bin/sw_vers &amp;&amp; sw_vers -productVersion | grep 10.6),)
++#UniversalArchs.ios := $(filter-out armv7, $(UniversalArchs.ios))
++#UniversalArchs.cc_kext := $(filter-out armv7, $(UniversalArchs.cc_kext))
++#UniversalArchs.cc_kext_ios5 := $(filter-out armv7, $(UniversalArchs.cc_kext_ios5))
++#UniversalArchs.profile_ios := $(filter-out armv7, $(UniversalArchs.profile_ios))
++#endif

+ # If RC_SUPPORTED_ARCHS is defined, treat it as a list of the architectures we
+ # are intended to support and limit what we try to build to that.
+--- a/projects/compiler-rt/make/platform/clang_macho_embedded.mk        2014-03-03 10:11:37.000000000 -0800
++++ a/projects/compiler-rt/make/platform/clang_macho_embedded.mk        2014-03-03 12:08:37.000000000 -0800
+@@ -33,11 +33,11 @@ XCRun = \
+ ###

+ CC       := $(call XCRun,clang)
+-AR       := $(call XCRun,ar)
+-RANLIB   := $(call XCRun,ranlib)
+-STRIP    := $(call XCRun,strip)
+-LIPO     := $(call XCRun,lipo)
+-DSYMUTIL := $(call XCRun,dsymutil)
++AR       := @@PREFIX@@/bin/ar
++RANLIB   := @@PREFIX@@/bin/ranlib
++STRIP    := @@PREFIX@@/bin/strip
++LIPO     := @@PREFIX@@/bin/lipo
++DSYMUTIL := @@PREFIX@@/bin/dsymutil

+ Configs :=
+ UniversalArchs :=
</ins></span></pre></div>
<a id="trunkdportslangllvm36filesclangformatpatch"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/llvm-3.6/files/clang-format.patch (0 => 122798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/llvm-3.6/files/clang-format.patch                                (rev 0)
+++ trunk/dports/lang/llvm-3.6/files/clang-format.patch        2014-07-30 06:09:13 UTC (rev 122798)
</span><span class="lines">@@ -0,0 +1,70 @@
</span><ins>+--- a/tools/clang/tools/clang-format/clang-format-bbedit.applescript        2011-07-09 14:35:58.000000000 -0700
++++ b/tools/clang/tools/clang-format/clang-format-bbedit.applescript        2012-04-20 10:09:40.000000000 -0700
+@@ -15,7 +15,7 @@ ifeq ($(HOST_OS),Darwin)
+ end tell

+ set filePath to urlToPOSIXPath(fileURL)
+-set newContents to do shell script &quot;/path/to/clang-format -offset=&quot; &amp; selectionOffset &amp; &quot; -length=&quot; &amp; selectionLength &amp; &quot; &quot; &amp; quoted form of filePath
++set newContents to do shell script &quot;@CLANG_FORMAT_PATH@ -offset=&quot; &amp; selectionOffset &amp; &quot; -length=&quot; &amp; selectionLength &amp; &quot; &quot; &amp; quoted form of filePath

+ tell application &quot;BBEdit&quot;
+         -- &quot;set contents of text document 1 to newContents&quot; scrolls to the bottom while
+--- a/tools/clang/tools/clang-format/clang-format-diff.py        2011-07-09 14:35:58.000000000 -0700
++++ b/tools/clang/tools/clang-format/clang-format-diff.py        2012-04-20 10:09:40.000000000 -0700
+@@ -15,7 +15,7 @@ ifeq ($(HOST_OS),Darwin)


+ # Change this to the full path if clang-format is not on the path.
+-binary = 'clang-format'
++binary = '@CLANG_FORMAT_PATH@'


+ def main():

+--- a/tools/clang/tools/clang-format/clang-format.el        2011-07-09 14:35:58.000000000 -0700
++++ b/tools/clang/tools/clang-format/clang-format.el        2012-04-20 10:09:40.000000000 -0700
+@@ -13,7 +13,7 @@ ifeq ($(HOST_OS),Darwin)

+ ;; *Location of the clang-format binary. If it is on your PATH, a full path name
+ ;; need not be specified.
+-(defvar clang-format-binary &quot;clang-format&quot;)
++(defvar clang-format-binary &quot;@CLANG_FORMAT_PATH@&quot;)

+ (defun clang-format-region ()
+   &quot;Use clang-format to format the currently active region.&quot;
+--- a/tools/clang/tools/clang-format/clang-format.py        2011-07-09 14:35:58.000000000 -0700
++++ b/tools/clang/tools/clang-format/clang-format.py        2012-04-20 10:09:40.000000000 -0700
+@@ -24,7 +24,7 @@ ifeq ($(HOST_OS),Darwin)
+ import vim

+ # Change this to the full path if clang-format is not on the path.
+-binary = 'clang-format'
++binary = '@CLANG_FORMAT_PATH@'

+ # Change this to format according to other formatting styles. See the output of
+ # 'clang-format --help' for a list of supported styles. The default looks for

+--- a/tools/clang/tools/clang-format/clang-format-sublime.py2011-07-09 14:35:58.000000000 -0700
++++ b/tools/clang/tools/clang-format/clang-format-sublime.py        2012-04-20 10:09:40.000000000 -0700
+@@ -18,7 +18,7 @@ ifeq ($(HOST_OS),Darwin)
+ import subprocess

+ # Change this to the full path if clang-format is not on the path.
+-binary = 'clang-format'
++binary = '@CLANG_FORMAT_PATH@'

+ # Change this to format according to other formatting styles. See the output of
+ # 'clang-format --help' for a list of supported styles. The default looks for
+--- a/Makefile        2013-10-02 08:42:23.000000000 -0700
++++ b/Makefile        2013-10-24 10:57:33.000000000 -0700
+@@ -70,8 +70,9 @@ ifeq ($(MAKECMDGOALS),install-clang)
+   DIRS := tools/clang/tools/driver tools/clang/lib/Headers \
+           tools/clang/tools/libclang \
+           tools/clang/tools/c-index-test \
+           tools/clang/runtime tools/clang/docs \
+-          tools/clang/include tools/clang/lib
++          tools/clang/include tools/clang/lib \
++          tools/clang/tools/clang-format
+   OPTIONAL_DIRS :=
+   NO_INSTALL = 1
+ endif
</ins></span></pre></div>
<a id="trunkdportslangllvm36filesclangmodernizepatch"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/llvm-3.6/files/clang-modernize.patch (0 => 122798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/llvm-3.6/files/clang-modernize.patch                                (rev 0)
+++ trunk/dports/lang/llvm-3.6/files/clang-modernize.patch        2014-07-30 06:09:13 UTC (rev 122798)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+--- a/Makefile        2014-05-29 08:40:41.000000000 -0500
++++ b/Makefile        2014-05-29 08:41:52.000000000 -0500
+@@ -72,7 +72,9 @@
+           tools/clang/tools/c-index-test \
+           tools/clang/runtime tools/clang/docs \
+           tools/clang/include tools/clang/lib \
+-          tools/clang/tools/clang-format
++          tools/clang/tools/clang-format \
++          tools/clang/tools/extra/clang-modernize \
++          tools/clang/tools/extra/clang-apply-replacements
+   OPTIONAL_DIRS :=
+   NO_INSTALL = 1
+ endif
</ins></span></pre></div>
<a id="trunkdportslangllvm36filesinstall_targetpatch"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/llvm-3.6/files/install_target.patch (0 => 122798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/llvm-3.6/files/install_target.patch                                (rev 0)
+++ trunk/dports/lang/llvm-3.6/files/install_target.patch        2014-07-30 06:09:13 UTC (rev 122798)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+--- a/Makefile        2013-10-02 08:42:23.000000000 -0700
++++ b/Makefile        2013-10-24 10:57:33.000000000 -0700
+@@ -70,9 +70,8 @@ ifeq ($(MAKECMDGOALS),install-clang)
+   DIRS := tools/clang/tools/driver tools/clang/lib/Headers \
+           tools/clang/tools/libclang \
+           tools/clang/tools/c-index-test \
+-          tools/clang/include/clang-c \
+           tools/clang/runtime tools/clang/docs \
+-          tools/lto
++          tools/clang/include tools/clang/lib
+   OPTIONAL_DIRS :=
+   NO_INSTALL = 1
+ endif
</ins></span></pre></div>
<a id="trunkdportslangllvm36filesleopardnoasanpatch"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/llvm-3.6/files/leopard-no-asan.patch (0 => 122798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/llvm-3.6/files/leopard-no-asan.patch                                (rev 0)
+++ trunk/dports/lang/llvm-3.6/files/leopard-no-asan.patch        2014-07-30 06:09:13 UTC (rev 122798)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+Index: llvm-3.3/projects/compiler-rt/make/platform/clang_darwin.mk
+===================================================================
+--- llvm-3.3/projects/compiler-rt/make/platform/clang_darwin.mk        (revision 185755)
++++ llvm-3.3/projects/compiler-rt/make/platform/clang_darwin.mk        (working copy)
+@@ -81,8 +81,8 @@ Configs += profile_ios
+ UniversalArchs.profile_ios := $(call CheckArches,i386 x86_64 armv7,profile_ios)

+ # Configurations which define the ASAN support functions.
+-Configs += asan_osx_dynamic
+-UniversalArchs.asan_osx_dynamic := $(call CheckArches,i386 x86_64,asan_osx_dynamic)
++#Configs += asan_osx_dynamic
++#UniversalArchs.asan_osx_dynamic := $(call CheckArches,i386 x86_64,asan_osx_dynamic)

+ Configs += ubsan_osx
+ UniversalArchs.ubsan_osx := $(call CheckArches,i386 x86_64,ubsan_osx)
+Index: llvm-3.3/tools/clang/runtime/compiler-rt/Makefile
+===================================================================
+--- llvm-3.4/tools/clang/runtime/compiler-rt/Makefile        (revision 185755)
++++ llvm-3.4/tools/clang/runtime/compiler-rt/Makefile        (working copy)
+@@ -77,7 +77,6 @@ ifeq ($(OS),Darwin)
+ RuntimeDirs += darwin
+ RuntimeLibrary.darwin.Configs := \
+         eprintf.a 10.4.a osx.a ios.a cc_kext.a cc_kext_ios5.a \
+-        asan_osx_dynamic.dylib \
+         profile_osx.a profile_ios.a \
+         ubsan_osx.a
+ endif
</ins></span></pre></div>
<a id="trunkdportslangllvm36filesllvmbin"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/llvm-3.6/files/llvm-bin (0 => 122798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/llvm-3.6/files/llvm-bin                                (rev 0)
+++ trunk/dports/lang/llvm-3.6/files/llvm-bin        2014-07-30 06:09:13 UTC (rev 122798)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+#!/bin/sh
+exec EXEC_PATH &quot;${@}&quot;
</ins><span class="cx">Property changes on: trunk/dports/lang/llvm-3.6/files/llvm-bin
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnexecutable"></a>
<div class="addfile"><h4>Added: svn:executable</h4></div>
<a id="trunkdportslangllvm36filesmpclang36"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/llvm-3.6/files/mp-clang-3.6 (0 => 122798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/llvm-3.6/files/mp-clang-3.6                                (rev 0)
+++ trunk/dports/lang/llvm-3.6/files/mp-clang-3.6        2014-07-30 06:09:13 UTC (rev 122798)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+-
+bin/clang++-mp-3.6
+bin/clang-mp-3.6
+bin/clang-format-mp-3.6
+bin/clang-modernize-mp-3.6
+bin/scan-build-mp-3.6
+bin/scan-view-mp-3.6
</ins></span></pre></div>
<a id="trunkdportslangllvm36filesmpllvm36"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/llvm-3.6/files/mp-llvm-3.6 (0 => 122798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/llvm-3.6/files/mp-llvm-3.6                                (rev 0)
+++ trunk/dports/lang/llvm-3.6/files/mp-llvm-3.6        2014-07-30 06:09:13 UTC (rev 122798)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+bin/bugpoint-mp-3.6
+bin/llc-mp-3.6
+bin/lli-mp-3.6
+bin/llvm-ar-mp-3.6
+bin/llvm-as-mp-3.6
+bin/llvm-bcanalyzer-mp-3.6
+bin/llvm-config-mp-3.6
+bin/llvm-cov-mp-3.6
+bin/llvm-diff-mp-3.6
+bin/llvm-dis-mp-3.6
+bin/llvm-dwarfdump-mp-3.6
+bin/llvm-extract-mp-3.6
+-
+bin/llvm-link-mp-3.6
+bin/llvm-mc-mp-3.6
+bin/llvm-mcmarkup-mp-3.6
+bin/llvm-nm-mp-3.6
+bin/llvm-objdump-mp-3.6
+-
+bin/llvm-ranlib-mp-3.6
+bin/llvm-rtdyld-mp-3.6
+bin/llvm-size-mp-3.6
+-
+bin/llvm-stress-mp-3.6
+bin/llvm-symbolizer-mp-3.6
+bin/llvm-tblgen-mp-3.6
+-
+bin/macho-dump-mp-3.6
+bin/opt-mp-3.6
+bin/llvm-tblgen-mp-3.6
</ins></span></pre></div>
<a id="trunkdportslangllvm36filesscanbuildPR35006patch"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/llvm-3.6/files/scan-build-PR-35006.patch (0 => 122798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/llvm-3.6/files/scan-build-PR-35006.patch                                (rev 0)
+++ trunk/dports/lang/llvm-3.6/files/scan-build-PR-35006.patch        2014-07-30 06:09:13 UTC (rev 122798)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- a/tools/clang/tools/scan-build/scan-build.orig        2012-07-12 09:47:19.000000000 -0700
++++ b/tools/clang/tools/scan-build/scan-build        2012-07-12 09:49:15.000000000 -0700
+@@ -1399,6 +1399,8 @@ if (defined $OutputFormat) {
+       Diag &quot;Analysis run complete.\n&quot;;
+       Diag &quot;Viewing analysis results in '$HtmlDir' using scan-view.\n&quot;;
+       my $ScanView = Cwd::realpath(&quot;$RealBin/scan-view&quot;);
++      if (! -x $ScanView) { $ScanView = Cwd::realpath(&quot;$RealBin/bin/scan-view&quot;); }
++      if (! -x $ScanView) { $ScanView = Cwd::realpath(&quot;$RealBin/../scan-view/scan-view&quot;); }
+       if (! -x $ScanView) { $ScanView = &quot;scan-view&quot;; }
+       exec $ScanView, &quot;$HtmlDir&quot;;
+     }
</ins></span></pre></div>
<a id="trunkdportslangllvm36filessnowleopardcmathpatch"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/llvm-3.6/files/snowleopard-cmath.patch (0 => 122798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/lang/llvm-3.6/files/snowleopard-cmath.patch                                (rev 0)
+++ trunk/dports/lang/llvm-3.6/files/snowleopard-cmath.patch        2014-07-30 06:09:13 UTC (rev 122798)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+--- a/projects/libcxx/include/cmath        2013-08-29 16:50:48.000000000 -0700
++++ b/projects/libcxx/include/cmath        2014-04-13 19:01:12.000000000 -0700
+@@ -301,6 +301,22 @@ long double    truncl(long double x);
+ #include &lt;math.h&gt;
+ #include &lt;type_traits&gt;

++#ifdef __APPLE__
++#include &lt;Availability.h&gt;
++#if __MAC_OS_X_VERSION_MAX_ALLOWED &lt; 1070
++/* These prototypes are incorrectly omitted from &lt;math.h&gt; on Snow Leopard despite being available */
++extern &quot;C&quot; {
++    extern long long int llrintl(long double);
++    extern long long int llrint(double);
++    extern long long int llrintf(float);
++
++    extern long long int llroundl(long double);
++    extern long long int llround(double);
++    extern long long int llroundf(float);
++}
++#endif
++#endif // __APPLE__
++
+ #ifdef _LIBCPP_MSVCRT
+ #include &quot;support/win32/math_win32.h&quot;
+ #endif
</ins></span></pre></div>
<a id="trunkdportslangllvm36filestigerlibclangpatch"></a>
<div class="addfile"><h4>Added: trunk/dports/lang/llvm-3.6/files/tiger-libclang.patch ( => )</h4>
<pre class="diff"><span>
<span class="info">Added: trunk/dports/lang/llvm-3.6/files/yosemite-deployment-target.patch
===================================================================
</span><del>--- trunk/dports/lang/llvm-3.6/files/yosemite-deployment-target.patch                                (rev 0)
</del><ins>+++ trunk/dports/lang/llvm-3.6/files/yosemite-deployment-target.patch        2014-07-30 06:09:13 UTC (rev 122798)
</ins><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+--- a/tools/clang/lib/Basic/Targets.cpp
++++ b/tools/clang/lib/Basic/Targets.cpp
+@@ -155,12 +155,22 @@ static void getDarwinDefines(MacroBuilde
+     // revision numbers). So, we limit them to the maximum representable
+     // version.
+     assert(Maj &lt; 100 &amp;&amp; Min &lt; 100 &amp;&amp; Rev &lt; 100 &amp;&amp; &quot;Invalid version!&quot;);
+-    char Str[5];
+-    Str[0] = '0' + (Maj / 10);
+-    Str[1] = '0' + (Maj % 10);
+-    Str[2] = '0' + std::min(Min, 9U);
+-    Str[3] = '0' + std::min(Rev, 9U);
+-    Str[4] = '\0';
++    char Str[7];
++    if (Maj &lt; 10 || Maj == 10 &amp;&amp; Min &lt; 10) {
++      Str[0] = '0' + (Maj / 10);
++      Str[1] = '0' + (Maj % 10);
++      Str[2] = '0' + std::min(Min, 9U);
++      Str[3] = '0' + std::min(Rev, 9U);
++      Str[4] = '\0';
++    } else {
++      Str[0] = '0' + (Maj / 10);
++      Str[1] = '0' + (Maj % 10);
++      Str[2] = '0' + (Min / 10);
++      Str[3] = '0' + (Min % 10);
++      Str[4] = '0' + (Rev / 10);
++      Str[5] = '0' + (Rev % 10);
++      Str[6] = '\0';
++    }
+     Builder.defineMacro(&quot;__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__&quot;, Str);
+   }

</ins></span></pre>
</div>
</div>

</body>
</html>