#!/bin/sh

. config/options

$SCRIPTS/install libXdamage
$SCRIPTS/install $LIBDRM
$SCRIPTS/install expat
$SCRIPTS/install libXext
$SCRIPTS/install libXfixes
$SCRIPTS/install libXxf86vm
$SCRIPTS/install libX11

mkdir -p $INSTALL/usr/lib
cp -PR $PKG_BUILD/lib/libGL.so* $INSTALL/usr/lib
#cp -PR $PKG_BUILD/src/mesa/libmesa.so* $INSTALL/usr/lib
#cp -PR $PKG_BUILD/lib/libdricore.so $INSTALL/usr/lib

mkdir -p $INSTALL/usr/lib/dri
cp -PR $PKG_BUILD/lib*/*_dri.so $INSTALL/usr/lib/dri

mkdir -p $INSTALL/usr/bin
cp -PR $PKG_BUILD/progs/xdemos/{corender,glsync,glthreads,glxcontexts,glxdemo,glxgears,glxgears_fbconfig,glxgears_pixmap,glxheads,glxinfo,glxpbdemo,glxpixmap,glxsnoop,glxswapcontrol,manywin,offset,overlay,pbdemo,pbinfo,sharedtex,sharedtex_mt,texture_from_pixmap,wincopy,xfont,xrotfontdemo} $INSTALL/usr/bin
