#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build font-cursor-misc
$SCRIPTS/build font-util

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --with-fontdir=$XORG_PATH_FONTS

$MAKE UTIL_DIR="`ls -d $ROOT/$BUILD/font-util*`"

mkdir -p fonts
  cp 6x13-ISO8859-1.pcf.gz fonts
  cp ../font-cursor-misc*/cursor.pcf.gz fonts

cd fonts
  mkfontdir
