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

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

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