Clone of mesa.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #!/bin/sh
  2. #
  3. # Simple shell script for installing Mesa's header and library files.
  4. # If the copy commands below don't work on a particular system (i.e. the
  5. # -f or -d flags), we may need to branch on `uname` to do the right thing.
  6. #
  7. TOP=.
  8. INCLUDE_DIR="/usr/local/include"
  9. LIB_DIR="/usr/local/lib"
  10. if [ x$# == "x0" ] ; then
  11. echo
  12. echo "***** Mesa installation - You may need root privileges to do this *****"
  13. echo
  14. echo "Default directory for header files is:" ${INCLUDE_DIR}
  15. echo "Enter new directory or press <Enter> to accept this default."
  16. read INPUT
  17. if [ x${INPUT} != "x" ] ; then
  18. INCLUDE_DIR=${INPUT}
  19. fi
  20. echo
  21. echo "Default directory for library files is:" ${LIB_DIR}
  22. echo "Enter new directory or press <Enter> to accept this default."
  23. read INPUT
  24. if [ x${INPUT} != "x" ] ; then
  25. LIB_DIR=${INPUT}
  26. fi
  27. echo
  28. echo "About to install Mesa header files (GL/*.h) in: " ${INCLUDE_DIR}/GL
  29. echo "and Mesa library files (libGL.*, etc) in: " ${LIB_DIR}
  30. echo "Press <Enter> to continue, or <ctrl>-C to abort."
  31. read INPUT
  32. else
  33. INCLUDE_DIR=$1/include
  34. LIB_DIR=$1/lib
  35. fi
  36. # flags:
  37. # -f = force
  38. # -d = preserve symlinks
  39. set -v
  40. mkdir ${INCLUDE_DIR}
  41. mkdir ${INCLUDE_DIR}/GL
  42. mkdir ${INCLUDE_DIR}/GLES
  43. mkdir ${LIB_DIR}
  44. cp -f ${TOP}/include/GL/*.h ${INCLUDE_DIR}/GL
  45. cp -f ${TOP}/include/GLES/*.h ${INCLUDE_DIR}/GLES
  46. cp -fd ${TOP}/lib*/lib* ${LIB_DIR}
  47. echo "Done."