#!/bin/sh

. config/options $1

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

mkdir -p $INSTALL/usr/lib/va
  cp -P $BUILD/$PKG_NAME-*/i965_drv_video/.libs/*.so $INSTALL/usr/lib/va

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