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

[gettext]
recipe = slapos.recipe.cmmi
shared = true
url = https://ftp.gnu.org/pub/gnu/gettext/gettext-0.22.5.tar.lz
md5sum = d82550b0c72b2bf175b682d27c7565fc

configure-options =
  --disable-static
  --disable-java
  --disable-native-java
  --disable-csharp
  --disable-more-warnings
  --with-libncurses-prefix=${ncurses:location}
  --with-libxml2-prefix=${libxml2:location}
  --with-libiconv-prefix=${libiconv: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
