source: trunk/dports/lang/llvm-devel/Portfile @ 38562

Last change on this file since 38562 was 38562, checked in by ryandesign@…, 11 years ago

set svn:eol-style to native on all portfiles per current guidelines

  • Property svn:eol-style set to native
File size: 3.3 KB
Line 
1# $Id: Portfile 34218 2008-02-18 09:13:42Z erickt@macports.org $
2
3PortSystem 1.0
4
5name                    llvm-devel
6version                 53722
7set checker-version     62
8categories              lang
9platforms               darwin
10maintainers             erickt@macports.org pguyot@kallisys.net openmaintainer
11description             llvm is a next generation compiler infrastructure
12long_description        llvm brings tools to work on the llvm intermediate \
13                        language incl. a C and C++ frontend.
14
15homepage                http://llvm.org/
16master_sites            macports:pguyot
17
18distfiles               llvm-${version}.tar.gz
19
20checksums               llvm-${version}.tar.gz \
21                            md5     2572a3e6bc2d2356942dbae1929621c8 \
22                            sha1    be776f49fe15c7599631eff0e6a4db575593f480 \
23                            rmd160  efa4833664a2ff5b017645b13ce642d3fa1f1167 \
24                        checker-${checker-version}.tar.gz \
25                            md5     a04f5c35a65556b73e56c28f766e3750 \
26                            sha1    85dcdc6a592fa4000b3314c55320dad7065f2522 \
27                            rmd160  243bb4e053c2b435ac0af137d49ab5be4011e292
28
29depends_build           bin:flex:flex \
30                        bin:bison:bison
31
32worksrcdir              build
33
34variant clang description {Install clang (with checker tools)} {
35    distfiles-append    checker-${checker-version}.tar.gz
36    post-extract {
37        system "mv ${workpath}/checker-${checker-version}/ ${workpath}/llvm-${version}/tools/clang"
38    }
39    patch.dir           ${workpath}/llvm-${version}
40    patchfiles-append   patch-tools-Makefile.diff
41    depends_lib-append  port:python25
42    post-destroot {
43        reinplace "s|/usr/bin/env python|${prefix}/bin/python2.5|g" ${workpath}/llvm-${version}/tools/clang/utils/ccc-analyzer
44
45        file copy ${workpath}/llvm-${version}/tools/clang/utils/ccc ${destroot}${prefix}/bin/
46        file copy ${workpath}/llvm-${version}/tools/clang/utils/ccc-analyzer ${destroot}${prefix}/bin/
47        file copy ${workpath}/llvm-${version}/tools/clang/utils/scan-build ${destroot}${prefix}/bin/
48        file copy ${workpath}/llvm-${version}/tools/clang/utils/sorttable.js  ${destroot}${prefix}/bin/
49    }
50}
51
52post-extract {
53    file mkdir ${workpath}/build
54}
55
56configure.cmd           ../llvm-${version}/configure
57configure.args          --enable-optimized --enable-jit
58
59post-destroot {
60    file mkdir ${destroot}${prefix}/lib/llvm
61    file mkdir ${destroot}${prefix}/lib/llvm/src
62    file mkdir ${destroot}${prefix}/lib/llvm/obj
63
64    file copy ${workpath}/llvm-${version}/include ${destroot}${prefix}/lib/llvm/src
65    file copy ${workpath}/build/include ${destroot}${prefix}/lib/llvm/obj
66    file copy ${workpath}/build/Release ${destroot}${prefix}/lib/llvm/obj
67
68    reinplace "s|${workpath}/build/\.\./llvm-${version}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/bin/llvm-config
69    reinplace "s|${workpath}/build|${prefix}/lib/llvm/obj|g"                      ${destroot}${prefix}/bin/llvm-config
70
71    reinplace "s|${workpath}/build/\.\./llvm-${version}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
72    reinplace "s|${workpath}/build|${prefix}/lib/llvm/obj|g"                      ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
73}
Note: See TracBrowser for help on using the repository browser.