#if the pkg created in packages-woof has something wrong, this file is a last
#resort to fix it. Current-dir is where this file FIXUPHACK is located.

##this symlink got taken away to the _DEV pkg...
#ln -snf intel_drv.so usr/X11R7/lib/xorg/modules/drivers/i810_drv.so
##...ubuntu intrepid. note also, have later intel_drv.so in a separate pkg.

#so did these, but needed...
[ -e usr/X11R7/lib/libchromeXvMCPro.so.1 ] && ln -snf libchromeXvMCPro.so.1 usr/X11R7/lib/libchromeXvMCPro.so
[ -e usr/X11R7/lib/libchromeXvMC.so.1 ] && ln -snf libchromeXvMC.so.1 usr/X11R7/lib/libchromeXvMC.so
[ -e usr/X11R7/lib/libI810XvMC.so.1 ] && ln -snf libI810XvMC.so.1 usr/X11R7/lib/libI810XvMC.so
[ -e usr/X11R7/lib/libIntelXvMC.so.1 ] && ln -snf libIntelXvMC.so.1 usr/X11R7/lib/libIntelXvMC.so

#has extra servers in the one xorg-servers pkg...
rm -f usr/X11R7/bin/Xnest 2> /dev/null
rm -f usr/X11R7/bin/Xvfb 2> /dev/null
rm -f usr/X11R7/bin/Xephyr 2> /dev/null
rm -f usr/X11R7/bin/Xfbdev 2> /dev/null

#don't need this...
rm -rf etc/X11

#to reduce space. see also xorg_base_t2, which removes all the GL stuff...
rm -f usr/X11R7/lib/xorg/modules/extensions/libglx.so
#...well, i took out the 'mesa' pkg from xorg_base_t2.

#this is a partial cutdown package, has most drivers...
#mv -f usr/X11R7/lib/xorg/modules/drivers/vesa_drv.so /tmp/
#rm -f usr/X11R7/lib/xorg/modules/drivers/*.so
#mv -f /tmp/vesa_drv.so usr/X11R7/lib/xorg/modules/drivers/
#intel driver still works without all of this...
rm -f usr/X11R7/lib/libchromeX*
rm -f usr/X11R7/lib/libI810X*
rm -f usr/X11R7/lib/libIntelX*

#needed by intel etc drivers...
#rm -f usr/X11R7/lib/xorg/modules/libwfb.so
#rm -f usr/X11R7/lib/xorg/modules/libxaa.so
