Ticket #29156: Portfile

File Portfile, 2.9 KB (added by howarth@…, 14 years ago)

revised Portfile

Line 
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
3PortSystem              1.0
4
5name                    dragonegg-gcc45
6version                 2.9
7categories              lang
8maintainers             bromo.med.uc.edu:howarth
9description             Dragonegg gcc plugin
10long_description        Dragonegg is a gcc plugin, dragonegg.so, that replaces gcc's optimizers and code generators with those from LLVM.
11platforms               darwin
12supported_archs         i386 x86_64
13
14homepage                http://dragonegg.llvm.org/
15
16fetch.type              svn
17svn.url                 http://llvm.org/svn/llvm-project/dragonegg/trunk
18svn.revision            129568
19worksrcdir              trunk
20
21depends_lib             port:gcc45 port:llvm
22
23patchfiles              dragonegg_llvm29_compat.diff
24use_configure           no
25use_parallel_build      no
26
27build.cmd               GCC=${prefix}/bin/gcc-mp-4.5 LLVM_CONFIG=${prefix}/bin/llvm-config make CPPFLAGS="-DENABLE_LTO -I${prefix}/include"
28build.target
29
30destroot {
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