| 1 |
# GNU C Compiler
|
| 2 |
# Mostly required to support languages different then C or C++
|
| 3 |
[buildout]
|
| 4 |
extends =
|
| 5 |
m4.cfg
|
| 6 |
zip.cfg
|
| 7 |
|
| 8 |
parts =
|
| 9 |
gcc-java
|
| 10 |
|
| 11 |
[gmp]
|
| 12 |
recipe = hexagonit.recipe.cmmi
|
| 13 |
url = ftp://ftp.gmplib.org/pub/gmp-4.3.2/gmp-4.3.2.tar.bz2
|
| 14 |
md5sum = dd60683d7057917e34630b4a787932e8
|
| 15 |
# GMP does not correctly detect achitecture so it have to be given
|
| 16 |
# as hexagonit.recipe.cmmi is using shell expansion in subproceses
|
| 17 |
# backticks are working
|
| 18 |
configure-options =
|
| 19 |
--build=`uname -m`-linux
|
| 20 |
environment =
|
| 21 |
PATH=${m4:location}/bin:%(PATH)s
|
| 22 |
|
| 23 |
[mpfr]
|
| 24 |
recipe = hexagonit.recipe.cmmi
|
| 25 |
url = http://www.mpfr.org/mpfr-current/mpfr-3.0.0.tar.bz2
|
| 26 |
md5sum = f45bac3584922c8004a10060ab1a8f9f
|
| 27 |
configure-options =
|
| 28 |
--with-gmp=${gmp:location}
|
| 29 |
environment =
|
| 30 |
CPPFLAGS =-I${gmp:location}/include
|
| 31 |
LDFLAGS =-L${gmp:location}/lib -Wl,-rpath -Wl,${gmp:location}/lib
|
| 32 |
|
| 33 |
[mpc]
|
| 34 |
recipe = hexagonit.recipe.cmmi
|
| 35 |
url = http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz
|
| 36 |
md5sum = 0d6acab8d214bd7d1fbbc593e83dd00d
|
| 37 |
configure-options =
|
| 38 |
--with-gmp=${gmp:location}
|
| 39 |
--with-mpfr=${mpfr:location}
|
| 40 |
environment =
|
| 41 |
CPPFLAGS =-I${mpfr:location}/include -I${gmp:location}/include
|
| 42 |
LDFLAGS =-L${mpfr:location}/lib -Wl,-rpath -Wl,${mpfr:location}/lib -L${gmp:location}/lib -Wl,-rpath -Wl,${gmp:location}/lib
|
| 43 |
|
| 44 |
[gcc-download]
|
| 45 |
recipe = hexagonit.recipe.download
|
| 46 |
url = http://www.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.5.2/gcc-4.5.2.tar.bz2
|
| 47 |
md5sum = d6559145853fbaaa0fd7556ed93bce9a
|
| 48 |
strip-top-level-dir = True
|
| 49 |
destination = ${gcc-java-source:location}
|
| 50 |
|
| 51 |
[ecj]
|
| 52 |
recipe = hexagonit.recipe.download
|
| 53 |
download-only = true
|
| 54 |
url = ftp://sourceware.org/pub/java/ecj-4.5.jar
|
| 55 |
md5sum = d7cd6a27c8801e66cbaa964a039ecfdb
|
| 56 |
filename = ecj.jar
|
| 57 |
|
| 58 |
[gcc-java-download]
|
| 59 |
recipe = hexagonit.recipe.download
|
| 60 |
url = http://www.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.5.2/gcc-java-4.5.2.tar.bz2
|
| 61 |
md5sum = fe2b647bace18dc7867a4192def46e2c
|
| 62 |
strip-top-level-dir = True
|
| 63 |
destination = ${gcc-java-source:location}
|
| 64 |
ignore-existing = true
|
| 65 |
|
| 66 |
[gcc-java-source]
|
| 67 |
location = ${buildout:parts-directory}/${:_buildout_section_name_}
|
| 68 |
|
| 69 |
[gcc-java]
|
| 70 |
depends =
|
| 71 |
${gcc-download:location}
|
| 72 |
${gcc-java-download:location}
|
| 73 |
recipe = hexagonit.recipe.cmmi
|
| 74 |
path = ${gcc-java-source:location}
|
| 75 |
md5sum = bb3265edf0fa7543e50cedb93e04e427
|
| 76 |
configure-command = make clean \\; make distclean \\; ./configure
|
| 77 |
# GMP does not correctly detect achitecture so it have to be given
|
| 78 |
# as hexagonit.recipe.cmmi is using shell expansion in subproceses
|
| 79 |
# backticks are working
|
| 80 |
configure-options =
|
| 81 |
--disable-bootstrap
|
| 82 |
--build=`uname -m`-linux
|
| 83 |
--enable-languages=java
|
| 84 |
--disable-multilib
|
| 85 |
--with-gmp=${gmp:location}
|
| 86 |
--with-mpfr=${mpfr:location}
|
| 87 |
--with-mpc=${mpc:location}
|
| 88 |
--with-ecj-jar=${ecj:location}/${ecj:filename}
|
| 89 |
--prefix=${buildout:parts-directory}/${:_buildout_section_name_}
|
| 90 |
|
| 91 |
environment =
|
| 92 |
CPPFLAGS =-I${mpfr:location}/include -I${gmp:location}/include -I${mpc:location}/include
|
| 93 |
LDFLAGS =-L${mpfr:location}/lib -Wl,-rpath -Wl,${mpfr:location}/lib -L${gmp:location}/lib -Wl,-rpath -Wl,${gmp:location}/lib -Wl,-rpath -Wl,${mpc:location}/lib
|
| 94 |
PATH=${zip:location}/bin:%(PATH)s
|