
#120516 gentoo puts libGL.so* in strange place...
if [ -e usr/lib/opengl/xorg-x11/lib/libGL.so.1 ];then
 cp -a -f --remove-destination usr/lib/opengl/xorg-x11/lib/* usr/lib/
 sync
 ln -snf libGL.so.1 usr/lib/libGL.so
 rm -rf usr/lib/opengl/xorg-x11/lib
fi
#...see also 'xserver_xorg' template.

#120516 gentoo puts the dri drivers in a strange place...
if [ -f usr/lib/mesa/swrast_dri.so ];then
 mkdir -p usr/lib/dri #precaution.
 cp -a -f --remove-destination usr/lib/mesa/* usr/lib/dri/
 rm -f usr/lib/dri/swrastg_dri.so 2>/dev/null #don't want this (?)
 sync
 rm -f usr/lib/mesa/*
fi
