/packages/x11/xserver/xorg-server/install

http://github.com/OpenELEC/OpenELEC.tv · Shell · 78 lines · 44 code · 14 blank · 20 comment · 2 complexity · 4d4296a27873f5ee3e741b9280985d4c MD5 · raw file

  1. #!/bin/sh
  2. ################################################################################
  3. # This file is part of OpenELEC - http://www.openelec.tv
  4. # Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
  5. #
  6. # This Program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10. #
  11. # This Program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with OpenELEC.tv; see the file COPYING. If not, write to
  18. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19. # http://www.gnu.org/copyleft/gpl.html
  20. ################################################################################
  21. . config/options $1
  22. get_graphicdrivers
  23. XORG_SRC="$PKG_BUILD/hw/xfree86"
  24. XORG_DST="$INSTALL/$XORG_PATH_MODULES"
  25. mkdir -p $INSTALL/usr/bin
  26. cp $XORG_SRC/Xorg $INSTALL/usr/bin
  27. mkdir -p $INSTALL/lib/udev
  28. cp $PKG_DIR/scripts/xorg_start $INSTALL/lib/udev
  29. mkdir -p $XORG_DST
  30. cp -P $XORG_SRC/exa/.libs/libexa.so $XORG_DST
  31. cp -P $XORG_SRC/dixmods/.libs/libfb.so $XORG_DST
  32. cp -P $XORG_SRC/int10/.libs/libint10.so $XORG_DST
  33. cp -P $XORG_SRC/dixmods/.libs/libshadow.so $XORG_DST
  34. cp -P $XORG_SRC/shadowfb/.libs/libshadowfb.so $XORG_DST
  35. cp -P $XORG_SRC/vbe/.libs/libvbe.so $XORG_DST
  36. cp -P $XORG_SRC/vgahw/.libs/libvgahw.so $XORG_DST
  37. cp -P $XORG_SRC/dixmods/.libs/libwfb.so $XORG_DST
  38. cp -P $XORG_SRC/xaa/.libs/libxaa.so $XORG_DST
  39. mkdir -p $XORG_DST/extensions
  40. cp -P $XORG_SRC/dixmods/.libs/libdbe.so $XORG_DST/extensions
  41. cp -P $XORG_SRC/dixmods/.libs/librecord.so $XORG_DST/extensions
  42. cp -P $XORG_SRC/dri/.libs/libdri.so $XORG_DST/extensions
  43. cp -P $XORG_SRC/dri2/.libs/libdri2.so $XORG_DST/extensions
  44. cp -P $XORG_SRC/dixmods/extmod/.libs/libextmod.so $XORG_DST/extensions
  45. cp -P $XORG_SRC/dixmods/.libs/libglx.so $XORG_DST/extensions/libglx_mesa.so # rename for cooperate with nvidia drivers
  46. ln -sf /var/lib/libglx.so $XORG_DST/extensions/libglx.so
  47. mkdir -p $XORG_DST/linux
  48. cp -P $XORG_SRC/fbdevhw/.libs/libfbdevhw.so $XORG_DST/linux
  49. mkdir -p $XORG_DST/multimedia
  50. cp -P $XORG_SRC/i2c/.libs/*_drv.so $XORG_DST/multimedia
  51. mkdir -p $INSTALL/usr/lib/xorg
  52. cp $PKG_BUILD/dix/protocol.txt $INSTALL/usr/lib/xorg
  53. mkdir -p $INSTALL/usr/share/X11/xorg.conf.d
  54. cp $PKG_BUILD/config/10-evdev.conf $INSTALL/usr/share/X11/xorg.conf.d
  55. mkdir -p $INSTALL/etc/X11
  56. if [ -f $PROJECT_DIR/$PROJECT/xorg/xorg.conf ]; then
  57. cp $PROJECT_DIR/$PROJECT/xorg/xorg.conf $INSTALL/etc/X11
  58. elif [ -f $PKG_DIR/config/xorg.conf ]; then
  59. cp $PKG_DIR/config/xorg.conf $INSTALL/etc/X11
  60. fi
  61. if [ "$DEVTOOLS" = yes ]; then
  62. cp $XORG_SRC/utils/cvt/cvt $INSTALL/usr/bin
  63. cp $XORG_SRC/utils/gtf/gtf $INSTALL/usr/bin
  64. fi