Ticket #48759: llvm-3.7.patch
File llvm-3.7.patch, 4.3 KB (added by eborisch (Eric A. Borisch), 9 years ago) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 PortGroup select 1.0 5 5 PortGroup compiler_blacklist_versions 1.0 6 PortGroup active_variants 1.1 6 7 7 8 set llvm_version 3.7 8 9 set llvm_version_no_dot 37 … … 62 63 default_variants +analyzer 63 64 } 64 65 65 fetch.type svn66 svn.revision 24602466 #fetch.type svn 67 #svn.revision 246024 67 68 68 set compiler_rt_rev ${svn.revision}69 set libcxx_rev ${svn.revision}70 set clang-modernize_rev ${svn.revision}71 version ${llvm_version}-r${svn.revision}69 #set compiler_rt_rev ${svn.revision} 70 #set libcxx_rev ${svn.revision} 71 #set clang-modernize_rev ${svn.revision} 72 #version ${llvm_version}-r${svn.revision} 72 73 #worksrcdir trunk 73 74 #svn.url https://llvm.org/svn/llvm-project/llvm/trunk 74 worksrcdir release_${llvm_version_no_dot}75 svn.url https://llvm.org/svn/llvm-project/llvm/branches/release_${llvm_version_no_dot}76 default_variants-append +assertions77 78 #version ${llvm_version}.079 #epoch 180 #master_sites http://llvm.org/releases/${version}81 #use_xz yes82 #extract.suffix .tar.xz83 #distfiles llvm-${version}.src${extract.suffix}84 #worksrcdir llvm-${version}.src75 #worksrcdir release_${llvm_version_no_dot} 76 #svn.url https://llvm.org/svn/llvm-project/llvm/branches/release_${llvm_version_no_dot} 77 #default_variants-append +assertions 78 79 version ${llvm_version}.0 80 epoch 1 81 master_sites http://llvm.org/releases/${version} 82 use_xz yes 83 extract.suffix .tar.xz 84 distfiles llvm-${version}.src${extract.suffix} 85 worksrcdir llvm-${version}.src 85 86 86 87 if {${distfiles} ne ""} { 87 88 if {${subport} eq "llvm-${llvm_version}"} { … … 93 94 } 94 95 } 95 96 97 checksums \ 98 llvm-3.7.0.src.tar.xz \ 99 rmd160 1e47ce5e07df267a921c60e526673b2908ffb99b \ 100 sha256 ab45895f9dcdad1e140a3a79fd709f64b05ad7364e308c0e582c5b02e9cc3153 \ 101 cfe-3.7.0.src.tar.xz \ 102 rmd160 b59a82dcc44d16f1152f5204584bbc47861d223e \ 103 sha256 4ed740c5a91df1c90a4118c5154851d6a475f39a91346bdf268c1c29c13aa1cc \ 104 compiler-rt-3.7.0.src.tar.xz \ 105 rmd160 94cc920bce769e8b6234376ce8c517cdccd96e0c \ 106 sha256 227fa998520bc94974a428dc8e7654d9bdf277e5bc70d4064ebc05691bd62b0b \ 107 libcxx-3.7.0.src.tar.xz \ 108 rmd160 d78a0948483ff593ab2c39dc5ca745b4d08e8620 \ 109 sha256 c18f3c8333cd7e678c1424a57fe5e25efe740ca7caf62ac67152b4723f3ad08e \ 110 clang-tools-extra-3.7.0.src.tar.xz \ 111 rmd160 fda3871341bfbcfc28d8a368dd56ff8cf60b4987 \ 112 sha256 8ae8a0a3a96b7a700412d67df0af172cb2fc1326beec575fcc0f71d2e72709cd \ 113 polly-3.7.0.src.tar.xz \ 114 rmd160 6c26e90141608c2c4e883faf36c74c35d3ee3d3e \ 115 sha256 3e5f3f4dc141c7d25b36b910d48c7da74ecc92f10cea5b568c909623d6067edf 116 96 117 patch.pre_args -p1 97 118 patchfiles \ 98 119 0001-Set-the-Mach-O-CPU-Subtype-to-ppc7400-when-targeting.patch \ … … 326 347 destroot.args-append OVERRIDE_libdir=${sub_prefix}/lib 327 348 } 328 349 } elseif {${subport} eq "clang-${llvm_version}"} { 350 if {[variant_isset assertions]} { 351 # Need to match llvm +-assertions 352 require_active_variants port:llvm-${llvm_version} assertions 353 } else { 354 # Need to match llvm +-assertions 355 require_active_variants port:llvm-${llvm_version} {} assertions 356 } 357 329 358 variant analyzer description {Install clang static analyzer} { 330 359 depends_run-append port:perl5 331 360 … … 360 389 } 361 390 } 362 391 392 variant openmp description {Use MacPorts' provided libomp with -fopenmp} { 393 configure.args-append \ 394 --with-clang-default-openmp-runtime=libomp 395 depends_lib-append port:libomp 396 patchfiles-append openmp-locations.patch 397 398 post-patch { 399 reinplace "s|@@PREFIX@@|${prefix}|" \ 400 ${worksrcpath}/tools/clang/lib/Driver/Tools.cpp 401 } 402 } 363 403 364 404 post-patch { 365 405 reinplace "s|@CLANG_FORMAT_PATH@|${prefix}/bin/clang-format-${suffix}|g" \