19 | | checksums md5 34a11e807add0f4555f691944e1a404a \ |
20 | | sha1 547471147cbf6d3e49539e01196ffada2c79c250 \ |
21 | | rmd160 24d58cb052ab5879aae59eaf4885ec41186ee22a |
| 20 | checksums ${distname}${extract.suffix} \ |
| 21 | md5 34a11e807add0f4555f691944e1a404a \ |
| 22 | sha1 547471147cbf6d3e49539e01196ffada2c79c250 \ |
| 23 | rmd160 24d58cb052ab5879aae59eaf4885ec41186ee22a \ |
| 24 | clang-${version}${extract.suffix} \ |
| 25 | md5 09d696bf23bb4a3cf6af3c7341cdd946 \ |
| 26 | sha1 188f29ad3b2c64fcdc791aa34b323ed06452d7ae \ |
| 27 | rmd160 b7e44abbf28902ff8e3fd4578a5ff9dd34f40817 |
| 93 | variant clang description {Install clang frontend} { |
| 94 | distfiles-append clang-${version}${extract.suffix} |
| 95 | post-extract { |
| 96 | move ${workpath}/clang-${version} ${worksrcpath}/tools/clang |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | variant checker requires clang description {Install checker tools} { |
| 101 | depends_run-append bin:python:python26 |
| 102 | post-destroot { |
| 103 | reinplace "s|/usr/bin/env perl|${prefix}/bin/perl|g" ${worksrcpath}/tools/clang/utils/ccc-analyzer |
| 104 | reinplace "s|/usr/bin/env perl|${prefix}/bin/perl|g" ${worksrcpath}/tools/clang/utils/scan-build |
| 105 | reinplace "s|/usr/bin/env python|${prefix}/bin/python|g" ${worksrcpath}/tools/clang/tools/scan-view/scan-view |
| 106 | xinstall -W ${worksrcpath}/tools/clang/utils \ |
| 107 | scanview.css \ |
| 108 | ccc-analyzer \ |
| 109 | scan-build \ |
| 110 | sorttable.js \ |
| 111 | ${destroot}${prefix}/bin |
| 112 | xinstall -W ${worksrcpath}/tools/clang/tools/scan-view \ |
| 113 | Reporter.py \ |
| 114 | ScanView.py \ |
| 115 | scan-view \ |
| 116 | startfile.py \ |
| 117 | ${destroot}${prefix}/bin |
| 118 | file mkdir ${destroot}${prefix}/bin/Resources |
| 119 | xinstall -W ${worksrcpath}/tools/clang/tools/scan-view/Resources \ |
| 120 | FileRadar.scpt \ |
| 121 | GetRadarVersion.scpt \ |
| 122 | bugcatcher.ico \ |
| 123 | ${destroot}${prefix}/bin/Resources |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | # installing libLTO globally is a viable workaround on darwin 9 and 10 |
| 128 | # a proper solution would depend on updated odcctools or a port of ld64 |
| 129 | # see http://trac.macports.org/ticket/19679 for more information |
| 130 | variant lto description {Enable link time optimizations} { |
| 131 | #depends_run-append port:odcctools |
| 132 | #depends_run-append port:ld64 |
| 133 | post-destroot { |
| 134 | file mkdir ${destroot}/usr/lib |
| 135 | ln -s ${prefix}/lib/libLTO.dylib ${destroot}/usr/lib/libLTO.dylib |
| 136 | } |
| 137 | } |
| 138 | |