pdftk removed from erp5
[slapos.git] / component / gcc / buildout.cfg
1 # GNU C Compiler
2 # Mostly required to support languages different then C or C++
3 [buildout]
4 extends =
5   ../m4/buildout.cfg
6   ../gmp/buildout.cfg
7   ../zip/buildout.cfg
8
9 parts =
10   gcc
11
12 [mpfr]
13 recipe = hexagonit.recipe.cmmi
14 url = http://www.mpfr.org/mpfr-3.0.1/mpfr-3.0.1.tar.bz2
15 md5sum = bfbecb2eacb6d48432ead5cfc3f7390a
16 configure-options =
17   --with-gmp=${gmp:location}
18   --disable-static
19 environment =
20   LDFLAGS=-Wl,-rpath=${gmp:location}/lib
21
22 [mpc]
23 recipe = hexagonit.recipe.cmmi
24 url = http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz
25 md5sum = 0d6acab8d214bd7d1fbbc593e83dd00d
26 configure-options =
27   --with-gmp=${gmp:location}
28   --with-mpfr=${mpfr:location}
29   --disable-static
30 environment =
31   LDFLAGS=-Wl,-rpath=${mpfr:location}/lib -Wl,-rpath=${gmp:location}/lib
32
33 [ppl]
34 recipe = hexagonit.recipe.cmmi
35 # we should use version 0.10.x for gcc-4.5
36 url = http://www.cs.unipr.it/ppl/Download/ftp/releases/0.10.2/ppl-0.10.2.tar.bz2
37 md5sum = 5667111f53150618b0fa522ffc53fc3e
38 configure-options =
39   --with-libgmp-prefix=${gmp:location}
40   --with-libgmpxx-prefix=${gmp:location}
41   --disable-static
42 environment =
43   PATH=${m4:location}/bin:%(PATH)s
44   LDFLAGS=-Wl,-rpath=${gmp:location}/lib
45
46 [cloog-ppl]
47 recipe = hexagonit.recipe.cmmi
48 url = ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-ppl-0.15.9.tar.gz
49 md5sum = 806e001d1b1a6b130069ff6274900af5
50 configure-options =
51   --with-gmp=${gmp:location}
52   --with-ppl=${ppl:location}
53   --disable-static
54 environment =
55   PATH=${m4:location}/bin:%(PATH)s
56   LDFLAGS=-Wl,-rpath=${gmp:location}/lib -Wl,-rpath=${ppl:location}/lib
57
58 [gcc-download]
59 hack-revision = ${gcc-interconnection-workaround:hack-revision}
60 recipe = hexagonit.recipe.download
61 url = http://www.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.5.3/gcc-4.5.3.tar.bz2
62 md5sum = 8e0b5c12212e185f3e4383106bfa9cc6
63 strip-top-level-dir = True
64 destination = ${gcc-source:location}
65
66 [gcc-source]
67 hack-revision = ${gcc-interconnection-workaround:hack-revision}
68 location = ${buildout:parts-directory}/${:_buildout_section_name_}
69
70 [gcc-multiarch.patch]
71 recipe = hexagonit.recipe.download
72 md5sum = 819e6735270c8a432b0512b49f40219f
73 url = ${:_profile_base_location_}/${:filename}
74 filename = ${:_buildout_section_name_}
75 download-only = true
76
77 [gcc]
78 hack-revision = ${gcc-interconnection-workaround:hack-revision}
79 depends =
80   ${gcc-download:location}
81 recipe = hexagonit.recipe.cmmi
82 path = ${gcc-source:location}
83 md5sum = bb3265edf0fa7543e50cedb93e04e427
84 patches =
85   ${gcc-multiarch.patch:location}/${gcc-multiarch.patch:filename}
86 patch-options = -p2
87 configure-command = make clean \\; make distclean \\; ./configure
88 # GMP does not correctly detect achitecture so it have to be given
89 # as hexagonit.recipe.cmmi is using shell expansion in subproceses
90 # backticks are working
91 configure-options =
92   --disable-bootstrap
93   --enable-languages="c,c++"
94   --disable-multilib
95   --with-gmp=${gmp:location}
96   --with-mpfr=${mpfr:location}
97   --with-mpc=${mpc:location}
98   --with-ppl=${ppl:location}
99   --with-cloog=${cloog-ppl:location}
100   --with-ecj-jar=${ecj:location}/${ecj:filename}
101   --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
102
103 environment =
104   LDFLAGS=-Wl,-rpath=${mpfr:location}/lib -Wl,-rpath=${gmp:location}/lib -Wl,-rpath=${mpc:location}/lib -Wl,-rpath=${ppl:location}/lib -Wl,-rpath=${cloog-ppl:location}/lib
105   PATH=${zip:location}/bin:%(PATH)s
106 # make install does not work when several core are used
107 make-targets = install -j1
108
109 [gcc-interconnection-workaround]
110 # gcc parts are interconnected, so buildout is not capable to clean them up
111 # until gcc will be simplified by using more robust build recipe (like
112 # slapos.recipe.build) each time any of parts which reuses this one gets updated
113 # the hack-revision have to be increased
114 hack-revision = 2