#!/bin/sh

. config/options

$SCRIPTS/install libX11
$SCRIPTS/install libXext
$SCRIPTS/install libXfixes
$SCRIPTS/install libdrm
$SCRIPTS/install Mesa

mkdir -p $INSTALL/usr/lib
  cp -P $PKG_BUILD/va/.libs/libva*.so* $INSTALL/usr/lib
  rm -rf $INSTALL/usr/lib/libva-*.so*T

mkdir -p $INSTALL/usr/lib/va
# cp -PR $PKG_BUILD/dummy_drv_video/.libs/*.so $INSTALL/usr/lib/va
  cp -P $PKG_BUILD/i965_drv_video/.libs/*.so $INSTALL/usr/lib/va

if [ "$DEVTOOLS" = yes ]; then
  mkdir -p $INSTALL/usr/bin
    cp $PKG_BUILD/test/.libs/vainfo $INSTALL/usr/bin
fi
