#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build util-macros
$SCRIPTS/build fontsproto
$SCRIPTS/build xorg-server

xorg_drv_configure_prepend

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --enable-shared \
            --disable-static \
            --enable-dri \
            --enable-kms-only \
            --disable-xvmc \
            --with-xorg-module-dir=$XORG_PATH_MODULES

make

$MAKEINSTALL
