# SliTaz package receipt.

PACKAGE="fontconfig"
VERSION="2.13.1"
CATEGORY="x-window"
SHORT_DESC="Font configuration utilities and library."
MAINTAINER="pankso@slitaz.org"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.fontconfig.org/wiki/"
WGET_URL="http://fontconfig.org/release/$TARBALL"

DEPENDS="freetype libxml2"
BUILD_DEPENDS="pkg-config gettext libxml2-dev libpng-dev \
freetype-dev harfbuzz-dev pcre-dev bzip2-dev gperf \
util-linux-ng-mount-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--sysconfdir=/etc \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-arch=$ARCH \
		--enable-iconv \
		--enable-libxml2 \
		--disable-static \
		--disable-docs \
		$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/bin $fs/usr
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
	cp -a $_pkg/etc $fs
	cp -a $_pkg/var $fs
}