# SliTaz package receipt.

PACKAGE="libxml2"
VERSION="2.7.8"
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="python"

# 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
	patch -Np1 -i $stuff/libxml2-fix.patch
	./configure \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--with-html-dir=/usr/share/doc \
	$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

# 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
}