# SliTaz package receipt.

PACKED_SIZE="132.0K"
UNPACKED_SIZE="588.0K"
PACKAGE="fontconfig"
VERSION="2.10.91"
CATEGORY="x-window"
SHORT_DESC="Font configuration utilities and library"
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
WEB_SITE="http://www.fontconfig.org/wiki/"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="http://www.freedesktop.org/software/fontconfig/release/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="bzlib expat freetype libxml2"
BUILD_DEPENDS="libxml2-dev freetype-dev"

# Rules to configure and make the package.
compile_rules()
{
	./configure \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--with-arch=$ARCH \
		--disable-static \
		--enable-iconv \
		--enable-libxml2 \
		--disable-docs \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$install install
}

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