#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build fontcacheproto
$SCRIPTS/build xtrans
$SCRIPTS/build fontsproto
$SCRIPTS/build freetype
$SCRIPTS/build libfontenc

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --disable-static \
            --enable-shared \
            --disable-ipv6 \
            --enable-freetype \
            --enable-builtins \
            --disable-pcfformat \
            --disable-bdfformat \
            --disable-snfformat \
            --enable-fc \
            --with-gnu-ld

make

$MAKEINSTALL
