[buildout]
extends =
  ../openssl/buildout.cfg
  ../ncurses/buildout.cfg
  ../zlib/buildout.cfg
  ../java/buildout.cfg

parts = erlang

[erlang]
recipe = hexagonit.recipe.cmmi
url = http://www.erlang.org/download/otp_src_R14B04.tar.gz
md5sum = 4b469729f103f52702bfb1fb24529dc0
configure-options =
    --with-ssl=${openssl:location}
    --with-java
    --enable-dynamic-ssl-lib
    --enable-shared-zlib
    --enable-native-libs
environment=
    PATH=${java-sdk-1.6.0:location}/bin:%(PATH)s
    CFLAGS=-I${ncurses:location}/include -I${zlib:location}/include/
    LDFLAGS=-L${ncurses:location}/lib/ -L${zlib:location}/lib/ -Wl,-rpath=${ncurses:location}/lib/ -Wl,-rpath=${zlib:location}/lib/

make-options =
    -j1