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

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

llvm: remove unnecessary distfiles definition added in r38379

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 38410 2008-07-19 00:23:30Z 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
19checksums               md5     17254d72863b7fa005f3fb327aea3439 \
20                        sha1    b6df5bd3d6b361380e7f69883b166bec62e45e84 \
21                        rmd160  6f26e08b6ab4adb020c12fc8d217ab6b1108de46
22
23depends_build           bin:flex:flex \
24                        bin:bison:bison
25
26configure.dir           ${workpath}/build
27build.dir               ${configure.dir}
28destroot.dir            ${configure.dir}
29
30post-extract {
31    file mkdir ${configure.dir}
32}
33
34patchfiles              patch-Makefile.config.in.diff
35
36configure.cppflags
37configure.ldflags
38configure.cmd           ../llvm-${version}/configure
39configure.args          --enable-optimized --enable-jit
40
41post-destroot {
42    file mkdir ${destroot}${prefix}/lib/llvm
43    file mkdir ${destroot}${prefix}/lib/llvm/src
44    file mkdir ${destroot}${prefix}/lib/llvm/obj
45
46    file copy ${workpath}/llvm-${version}/include ${destroot}${prefix}/lib/llvm/src
47    file copy ${workpath}/build/include ${destroot}${prefix}/lib/llvm/obj
48    file copy ${workpath}/build/Release ${destroot}${prefix}/lib/llvm/obj
49
50    reinplace "s|${workpath}/build/\.\./llvm-${version}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/bin/llvm-config
51    reinplace "s|${workpath}/build|${prefix}/lib/llvm/obj|g"                      ${destroot}${prefix}/bin/llvm-config
52
53    reinplace "s|${workpath}/build/\.\./llvm-${version}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
54    reinplace "s|${workpath}/build|${prefix}/lib/llvm/obj|g"                      ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
55}
Note: See TracBrowser for help on using the repository browser.