buildout.cfg 3.13 KB
Newer Older
1 2 3 4
# GNU C Compiler
# Mostly required to support languages different then C or C++
[buildout]
extends =
Łukasz Nowak's avatar
Łukasz Nowak committed
5 6
  ../m4/buildout.cfg
  ../zip/buildout.cfg
7 8 9 10 11 12

parts =
  gcc-java

[gmp]
recipe = hexagonit.recipe.cmmi
13 14
url = ftp://ftp.gmplib.org/pub/gmp-5.0.2/gmp-5.0.2.tar.bz2
md5sum = 0bbaedc82fb30315b06b1588b9077cd3
15 16 17 18 19 20 21 22 23 24
# GMP does not correctly detect achitecture so it have to be given
# as hexagonit.recipe.cmmi is using shell expansion in subproceses
# backticks are working
configure-options =
  --build=`uname -m`-linux
environment =
  PATH=${m4:location}/bin:%(PATH)s

[mpfr]
recipe = hexagonit.recipe.cmmi
25 26
url = http://www.mpfr.org/mpfr-3.0.1/mpfr-3.0.1.tar.bz2
md5sum = bfbecb2eacb6d48432ead5cfc3f7390a
27 28 29 30
configure-options =
  --with-gmp=${gmp:location}
environment =
  CPPFLAGS =-I${gmp:location}/include
31
  LDFLAGS =-L${gmp:location}/lib -Wl,-rpath=${gmp:location}/lib
32 33 34 35 36 37 38 39 40 41

[mpc]
recipe = hexagonit.recipe.cmmi
url = http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz
md5sum = 0d6acab8d214bd7d1fbbc593e83dd00d
configure-options =
  --with-gmp=${gmp:location}
  --with-mpfr=${mpfr:location}
environment =
  CPPFLAGS =-I${mpfr:location}/include -I${gmp:location}/include
42
  LDFLAGS =-L${mpfr:location}/lib -Wl,-rpath=${mpfr:location}/lib -L${gmp:location}/lib -Wl,-rpath=${gmp:location}/lib
43 44 45 46 47 48 49 50 51 52

[ecj]
recipe = hexagonit.recipe.download
download-only = true
url = ftp://sourceware.org/pub/java/ecj-4.5.jar
md5sum = d7cd6a27c8801e66cbaa964a039ecfdb
filename = ecj.jar

[gcc-download]
recipe = hexagonit.recipe.download
53 54
url = http://www.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.5.3/gcc-4.5.3.tar.bz2
md5sum = 8e0b5c12212e185f3e4383106bfa9cc6
55 56 57 58 59
strip-top-level-dir = True
destination = ${gcc-java-source:location}

[gcc-java-download]
recipe = hexagonit.recipe.download
60 61
url = http://www.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.5.3/gcc-java-4.5.3.tar.bz2
md5sum = 08e045fdbdc22ac9af3aec3b8d16dbab
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
strip-top-level-dir = True
destination = ${gcc-java-source:location}
ignore-existing = true

[gcc-java-source]
location = ${buildout:parts-directory}/${:_buildout_section_name_}

[gcc-java]
depends =
  ${gcc-download:location}
  ${gcc-java-download:location}
recipe = hexagonit.recipe.cmmi
path = ${gcc-java-source:location}
md5sum = bb3265edf0fa7543e50cedb93e04e427
configure-command = make clean \\; make distclean \\; ./configure
# GMP does not correctly detect achitecture so it have to be given
# as hexagonit.recipe.cmmi is using shell expansion in subproceses
# backticks are working
configure-options =
  --disable-bootstrap
  --build=`uname -m`-linux
  --enable-languages=java
  --disable-multilib
  --with-gmp=${gmp:location}
  --with-mpfr=${mpfr:location}
  --with-mpc=${mpc:location}
  --with-ecj-jar=${ecj:location}/${ecj:filename}
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}

environment =
  CPPFLAGS =-I${mpfr:location}/include -I${gmp:location}/include -I${mpc:location}/include
93
  LDFLAGS =-L${mpfr:location}/lib -Wl,-rpath=${mpfr:location}/lib -L${gmp:location}/lib -Wl,-rpath=${gmp:location}/lib -Wl,-rpath=${mpc:location}/lib
94 95 96
  PATH=${zip:location}/bin:%(PATH)s
# make install does not work when several core are used
make-targets = install -j1