[buildout]
parts =
  gettext
extends =
  ../libxml2/buildout.cfg
  ../lunzip/buildout.cfg
  ../ncurses/buildout.cfg
  ../perl/buildout.cfg
  ../zlib/buildout.cfg

[gettext]
recipe = slapos.recipe.cmmi
url = http://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.6.tar.lz
md5sum = 45b2a123cdc7cef54df98152a0da3fcc

configure-options =
  --disable-static
  --disable-java
  --disable-native-java
  --disable-csharp
  --with-libncurses-prefix=${ncurses:location}
  --with-libxml2-prefix=${libxml2:location}
  --with-included-gettext
  --without-emacs
  --disable-acl
  --disable-openmp
  --without-git
  --without-bz2
  --without-xz

environment =
  PATH=${perl:location}/bin:${lunzip:location}/bin:%(PATH)s
  CPPFLAGS=-I${libxml2:location}/include -I${zlib:location}/include -I${ncurses:location}/include
  LDFLAGS=-L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${ncurses:location}/lib -Wl,-rpath=${ncurses:location}/lib