# SliTaz package receipt.

PACKAGE="libxml2"
VERSION="2.9.9"
CATEGORY="system-tools"
SHORT_DESC="Libxml2 is the XML C parser and toolkit."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://xmlsoft.org/"
WGET_URL="ftp://xmlsoft.org/libxml2/$TARBALL"
DEPENDS="zlib"
BUILD_DEPENDS="zlib-dev python-dev autoconf automake libtool"

# Rules to configure and make the package.
#
# Note: libxml2 can be build using option --with-minimum
# and binaries are splited into libxml2-tools
compile_rules()
{
	cd $src
	autoreconf -fi
	./configure \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--with-html-dir=/usr/share/doc \
		--with-threads \
		--with-history \
		--with-python=/usr/bin/python \
	$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install 2>&1 | grep -v "can't stat './..html':"
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
}