#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build libX11
$SCRIPTS/build libXext
$SCRIPTS/build libXi
$SCRIPTS/build libXmu
$SCRIPTS/build Mesa

cd $PKG_BUILD
make SYSTEM=linux \
     GLEW_DEST=/usr \
     CC=$TARGET_CC \

mkdir -p $SYSROOT_PREFIX/usr/lib
  cp -PR lib/* $SYSROOT_PREFIX/usr/lib

mkdir -p $SYSROOT_PREFIX/usr/include
  cp -PR include/* $SYSROOT_PREFIX/usr/include
