Build pycrypto with local gmp.
[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 [ecj]
59 recipe = hexagonit.recipe.download
60 download-only = true
61 url = ftp://sourceware.org/pub/java/ecj-4.5.jar
62 md5sum = d7cd6a27c8801e66cbaa964a039ecfdb
63 filename = ecj.jar
64
65 [gcc-download]
66 recipe = hexagonit.recipe.download
67 url = http://www.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.5.3/gcc-4.5.3.tar.bz2
68 md5sum = 8e0b5c12212e185f3e4383106bfa9cc6
69 strip-top-level-dir = True
70 destination = ${gcc-source:location}
71
72 [gcc-java-download]
73 recipe = hexagonit.recipe.download
74 url = http://www.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.5.3/gcc-java-4.5.3.tar.bz2
75 md5sum = 08e045fdbdc22ac9af3aec3b8d16dbab
76 strip-top-level-dir = True
77 destination = ${gcc-source:location}
78 ignore-existing = true
79
80 [gcc-source]
81 location = ${buildout:parts-directory}/${:_buildout_section_name_}
82
83 [gcc-multiarch.patch]
84 recipe = hexagonit.recipe.download
85 md5sum = 819e6735270c8a432b0512b49f40219f
86 url = ${:_profile_base_location_}/${:filename}
87 filename = ${:_buildout_section_name_}
88 download-only = true
89
90 [gcc-java-minimal]
91 depends =
92   ${gcc-download:location}
93   ${gcc-java-download:location}
94 recipe = hexagonit.recipe.cmmi
95 path = ${gcc-source:location}
96 md5sum = bb3265edf0fa7543e50cedb93e04e427
97 patches =
98   ${gcc-multiarch.patch:location}/${gcc-multiarch.patch:filename}
99 patch-options = -p2
100 configure-command = make clean \\; make distclean \\; ./configure
101 # GMP does not correctly detect achitecture so it have to be given
102 # as hexagonit.recipe.cmmi is using shell expansion in subproceses
103 # backticks are working
104 configure-options =
105   --disable-bootstrap
106   --enable-languages=java
107   --disable-multilib
108   --with-gmp=${gmp:location}
109   --with-mpfr=${mpfr:location}
110   --with-mpc=${mpc:location}
111   --with-ecj-jar=${ecj:location}/${ecj:filename}
112   --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
113   --without-ppl
114   --without-cloog
115
116 environment =
117   CPPFLAGS =-I${mpfr:location}/include -I${gmp:location}/include -I${mpc:location}/include
118   LDFLAGS =-L${mpfr:location}/lib -Wl,-rpath=${mpfr:location}/lib -L${gmp:location}/lib -Wl,-rpath=${gmp:location}/lib -Wl,-rpath=${mpc:location}/lib
119   PATH=${zip:location}/bin:%(PATH)s
120 # make install does not work when several core are used
121 make-targets = install -j1
122
123 [gcc]
124 depends =
125   ${gcc-download:location}
126   ${gcc-java-download:location}
127 recipe = hexagonit.recipe.cmmi
128 path = ${gcc-source:location}
129 md5sum = bb3265edf0fa7543e50cedb93e04e427
130 patches =
131   ${gcc-multiarch.patch:location}/${gcc-multiarch.patch:filename}
132 patch-options = -p2
133 configure-command = make clean \\; make distclean \\; ./configure
134 # GMP does not correctly detect achitecture so it have to be given
135 # as hexagonit.recipe.cmmi is using shell expansion in subproceses
136 # backticks are working
137 configure-options =
138   --disable-bootstrap
139   --enable-languages="c,c++,java"
140   --disable-multilib
141   --with-gmp=${gmp:location}
142   --with-mpfr=${mpfr:location}
143   --with-mpc=${mpc:location}
144   --with-ppl=${ppl:location}
145   --with-cloog=${cloog-ppl:location}
146   --with-ecj-jar=${ecj:location}/${ecj:filename}
147   --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
148
149 environment =
150   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
151   PATH=${zip:location}/bin:%(PATH)s
152 # make install does not work when several core are used
153 make-targets = install -j1