FIXUPHACK 753 B

12345678910111213141516171819202122232425
  1. #120516 gentoo puts libGL.so* in strange place...
  2. if [ -e usr/lib/opengl/xorg-x11/lib/libGL.so.1 ];then
  3. cp -a -f --remove-destination usr/lib/opengl/xorg-x11/lib/* usr/lib/
  4. sync
  5. ln -snf libGL.so.1 usr/lib/libGL.so
  6. rm -rf usr/lib/opengl/xorg-x11/lib
  7. fi
  8. #...see also 'xserver_xorg' template.
  9. #120516 gentoo puts the dri drivers in a strange place...
  10. if [ -f usr/lib/mesa/swrast_dri.so ];then
  11. mkdir -p usr/lib/dri #precaution.
  12. cp -a -f --remove-destination usr/lib/mesa/* usr/lib/dri/
  13. rm -f usr/lib/dri/swrastg_dri.so 2>/dev/null #don't want this (?)
  14. sync
  15. rm -f usr/lib/mesa/*
  16. fi
  17. #libegl1-mesa in trusty has shared objects under a sub-directory
  18. if [ -d usr/lib/mesa-egl ];then
  19. mv usr/lib/mesa-egl/lib*.so* usr/lib/
  20. rm -rf usr/lib/mesa-egl
  21. fi