source: trunk/dports/lang/llvm/Portfile @ 38387

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

llvm: fix mtree violation by documentation directory; closes #15724

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 38387 2008-07-18 10:19:18Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    llvm
6version                 2.3
7revision                1
8categories              lang
9platforms               darwin
10use_parallel_build      yes
11maintainers             erickt@macports.org openmaintainer
12description             llvm is a next generation compiler infrastructure
13long_description        llvm brings tools to work on the llvm intermediate \
14                        language incl. a C and C++ frontend.
15
16homepage                http://llvm.org/
17master_sites            http://llvm.org/releases/${version}/
18
19distfiles               llvm-${version}.tar.gz
20
21checksums               md5     17254d72863b7fa005f3fb327aea3439 \
22                        sha1    b6df5bd3d6b361380e7f69883b166bec62e45e84 \
23                        rmd160  6f26e08b6ab4adb020c12fc8d217ab6b1108de46
24
25depends_build           bin:flex:flex \
26                        bin:bison:bison
27
28configure.dir           ${workpath}/build
29build.dir               ${configure.dir}
30destroot.dir            ${configure.dir}
31
32post-extract {
33    file mkdir ${configure.dir}
34}
35
36patchfiles              patch-Makefile.config.in.diff
37
38configure.cppflags
39configure.ldflags
40configure.cmd           ../llvm-${version}/configure
41configure.args          --enable-optimized --enable-jit
42
43post-destroot {
44    file mkdir ${destroot}${prefix}/lib/llvm
45    file mkdir ${destroot}${prefix}/lib/llvm/src
46    file mkdir ${destroot}${prefix}/lib/llvm/obj
47
48    file copy ${workpath}/llvm-${version}/include ${destroot}${prefix}/lib/llvm/src
49    file copy ${workpath}/build/include ${destroot}${prefix}/lib/llvm/obj
50    file copy ${workpath}/build/Release ${destroot}${prefix}/lib/llvm/obj
51
52    reinplace "s|${workpath}/build/\.\./llvm-${version}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/bin/llvm-config
53    reinplace "s|${workpath}/build|${prefix}/lib/llvm/obj|g"                      ${destroot}${prefix}/bin/llvm-config
54
55    reinplace "s|${workpath}/build/\.\./llvm-${version}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
56    reinplace "s|${workpath}/build|${prefix}/lib/llvm/obj|g"                      ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
57}
Note: See TracBrowser for help on using the repository browser.