#!/bin/sh

. config/options

$SCRIPTS/install libXrandr
$SCRIPTS/install libXrender
$SCRIPTS/install libXext
$SCRIPTS/install libpciaccess
$SCRIPTS/install libdrm
$SCRIPTS/install udev

mkdir -p $INSTALL/$XORG_PATH_MODULES/drivers
  cp -P $PKG_BUILD/src/.libs/ati_drv.so $INSTALL/$XORG_PATH_MODULES/drivers
  cp -P $PKG_BUILD/src/.libs/radeon_drv.so $INSTALL/$XORG_PATH_MODULES/drivers

mkdir -p $INSTALL/$XORG_PATH_MODULES/multimedia
  cp -P $PKG_BUILD/src/.libs/theatre_drv.so $INSTALL/$XORG_PATH_MODULES/multimedia
  cp -P $PKG_BUILD/src/.libs/theatre200_drv.so $INSTALL/$XORG_PATH_MODULES/multimedia
  cp -P $PKG_BUILD/src/.libs/theatre_detect_drv.so $INSTALL/$XORG_PATH_MODULES/multimedia
