#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build libX11
$SCRIPTS/build libXext
$SCRIPTS/build libXfixes
$SCRIPTS/build libdrm
$SCRIPTS/build Mesa

cd $PKG_BUILD

$AUTORECONF

./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --enable-shared \
            --disable-static \
            --enable-glx \
            --disable-dummy-driver \
            --enable-i965-driver \
            --with-drivers-path="/usr/lib/va" \

make

$MAKEINSTALL
