PLATFORM_IF_MATCH(linux)
PLATFORM_ELSE
PLATFORM_ENDIF
./configure \
--prefix="${ENCAP_SOURCE}/${ENCAP_PKGNAME}/lib/bcfg2" \
--without-iconv \
PLATFORM_IF_MATCH(aix)
PLATFORM_ELSE
--enable-shared \
PLATFORM_ENDIF
--enable-ipv6=no \
--with-python=/usr/local/lib/bcfg2 \
--with-zlib=/usr/local/lib/bcfg2
# Remove doc - it's big
if [ -d lib/bcfg2/share/doc ]; then rm -rf lib/bcfg2/share/doc; fi
if [ -d lib/bcfg2/share/gtk-doc ]; then rm -rf lib/bcfg2/share/gtk-doc; fi
# Make convieniance links
test -d bin || mkdir bin
ln -sf ../lib/bcfg2/bin/xmllint bin/b2-xmllint
# Make "this encap is installed" sentinal file available in /usr/local/var/encap
test -d var || mkdir var
test -d var/encap || mkdir var/encap
touch var/encap/${ENCAP_PKGNAME}
description libxml2 - XML C library for the Gnome project