[buildout]
extends =
  ../libxml2/buildout.cfg
  ../perl/buildout.cfg
  ../perl-XML-NamespaceSupport/buildout.cfg
  ../perl-XML-SAX/buildout.cfg
  ../zlib/buildout.cfg
parts =
  perl-XML-LibXML

[perl-XML-LibXML]
<= perl-CPAN-package
module = XML/XML-LibXML
version = 2.0116
md5sum = a53a743bf053a0cb4afb41513fb8a684

inc = ${perl-XML-NamespaceSupport:site_perl}:${perl-XML-SAX:site_perl}
install-inc = blib/lib
extra-configure-args = \
  DEBUG=1 \
  INC=-I${libxml2:location}/include/libxml2 \
  LIBS="-L${libxml2:location}/lib -L${zlib:location}/lib"
# Parallel make does not work for this package on fast machines
# with many cores
make-options =
  OTHERLDFLAGS=" -Wl,-rpath=${libxml2:location}/lib -Wl,-rpath=${zlib:location}/lib" -j1
environment =
  LD_LIBRARY_PATH=${libxml2:location}/lib:${zlib:location}/lib
