1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name dragonegg-gcc45 |
---|
6 | version 2.9 |
---|
7 | categories lang |
---|
8 | maintainers bromo.med.uc.edu:howarth |
---|
9 | description Dragonegg gcc plugin |
---|
10 | long_description Dragonegg is a gcc plugin, dragonegg.so, that replaces gcc's optimizers and code generators with those from LLVM. |
---|
11 | platforms darwin |
---|
12 | supported_archs i386 x86_64 |
---|
13 | |
---|
14 | homepage http://dragonegg.llvm.org/ |
---|
15 | |
---|
16 | fetch.type svn |
---|
17 | svn.url http://llvm.org/svn/llvm-project/dragonegg/trunk |
---|
18 | svn.revision 129568 |
---|
19 | worksrcdir trunk |
---|
20 | |
---|
21 | depends_lib port:gcc45 port:llvm |
---|
22 | |
---|
23 | patchfiles dragonegg_llvm29_compat.diff |
---|
24 | use_configure no |
---|
25 | use_parallel_build no |
---|
26 | |
---|
27 | build.cmd GCC=${prefix}/bin/gcc-mp-4.5 LLVM_CONFIG=${prefix}/bin/llvm-config make CPPFLAGS="-DENABLE_LTO -I${prefix}/include" |
---|
28 | build.target |
---|
29 | |
---|
30 | destroot { |
---|
31 | xinstall -d ${destroot}${prefix}/lib/gcc45/lib |
---|
32 | xinstall -m 644 ${worksrcpath}/dragonegg.so ${destroot}${prefix}/lib/gcc45/lib/dragonegg.so |
---|
33 | system "echo '#!/bin/bash' >| ${destroot}${prefix}/bin/de-gcc45" |
---|
34 | system "echo 'exec ${prefix}/bin/gcc-mp-4.5 -fplugin=${prefix}/lib/gcc45/lib/dragonegg.so \"\$@\" ' >> ${destroot}${prefix}/bin/de-gcc45" |
---|
35 | file attributes ${destroot}${prefix}/bin/de-gcc45 -permissions a+x |
---|
36 | system "echo '#!/bin/bash' >| ${destroot}${prefix}/bin/de-g++45" |
---|
37 | system "echo 'exec ${prefix}/bin/g++-mp-4.5 -fplugin=${prefix}/lib/gcc45/lib/dragonegg.so \"\$@\" ' >> ${destroot}${prefix}/bin/de-g++45" |
---|
38 | file attributes ${destroot}${prefix}/bin/de-g++45 -permissions a+x |
---|
39 | system "echo '#!/bin/bash' >| ${destroot}${prefix}/bin/de-c++45" |
---|
40 | system "echo 'exec ${prefix}/bin/c++-mp-4.5 -fplugin=${prefix}/lib/gcc45/lib/dragonegg.so \"\$@\" ' >> ${destroot}${prefix}/bin/de-c++45" |
---|
41 | file attributes ${destroot}${prefix}/bin/de-c++45 -permissions a+x |
---|
42 | system "echo '#!/bin/bash' >| ${destroot}${prefix}/bin/de-cpp45" |
---|
43 | system "echo 'exec ${prefix}/bin/cpp-mp-4.5 -fplugin=${prefix}/lib/gcc45/lib/dragonegg.so \"\$@\" ' >> ${destroot}${prefix}/bin/de-cpp45" |
---|
44 | file attributes ${destroot}${prefix}/bin/de-cpp45 -permissions a+x |
---|
45 | system "echo '#!/bin/bash' >| ${destroot}${prefix}/bin/de-gcj45" |
---|
46 | system "echo 'exec ${prefix}/bin/gcj-mp-4.5 -fplugin=${prefix}/lib/gcc45/lib/dragonegg.so \"\$@\" ' >> ${destroot}${prefix}/bin/de-gcjp45" |
---|
47 | file attributes ${destroot}${prefix}/bin/de-gcj45 -permissions a+x |
---|
48 | system "echo '#!/bin/bash' >| ${destroot}${prefix}/bin/de-gcov45" |
---|
49 | system "echo 'exec ${prefix}/bin/gcov-mp-4.5 -fplugin=${prefix}/lib/gcc45/lib/dragonegg.so \"\$@\" ' >> ${destroot}${prefix}/bin/de-gcov45" |
---|
50 | file attributes ${destroot}${prefix}/bin/de-gcov45 -permissions a+x |
---|
51 | system "echo '#!/bin/bash' >| ${destroot}${prefix}/bin/de-gfortran45" |
---|
52 | system "echo 'exec ${prefix}/bin/gfortran-mp-4.5 -fplugin=${prefix}/lib/gcc45/lib/dragonegg.so \"\$@\" ' >> ${destroot}${prefix}/bin/de-gfortran45" |
---|
53 | file attributes ${destroot}${prefix}/bin/de-gfortran45 -permissions a+x |
---|
54 | } |
---|
55 | |
---|