#!/bin/sh
#
# Copyright 2005 Dagmar d'Surreal <rivyqntzne@tznvy.pbz>
# Available under the terms of the GNU GPL.
#

NAME="fontconfig"
VERSION="2.3.2"
REVISION="1"

PKG_SOURCEURL='http://www.fontconfig.org/release/$NAME-$VERSION.tar.gz'

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

configfile /etc/fonts/local.conf
configfile /etc/fonts/conf.d/autohint.conf
configfile /etc/fonts/conf.d/no-sub-pixel.conf
configfile /etc/fonts/conf.d/unhinted.conf
configfile /etc/fonts/conf.d/no-bitmaps.conf
configfile /etc/fonts/conf.d/yes-bitmaps.conf
configfile /etc/fonts/conf.d/sub-pixel.conf

cflags
prepare
analyzesource
configure --with-confdir=$PKG_SYSCONFDIR/fonts \
        --with-add-fonts=/usr/share/fonts/truetype,/usr/X11R6/lib/X11/fonts/TTF,/usr/X11R6/lib/X11/fonts/Type1,/usr/X11R6/lib/X11/fonts/misc \
        --disable-docs
make
makeinstall install-strip
findpatch filename local.conf
spewdo "cp $filename $PKG_STAGEROOT$PKG_SYSCONFDIR/fonts/local.conf"
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
