Clone of mesa.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

installmesa 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 ${LIB_DIR}
  43. cp -f ${TOP}/include/GL/*.h ${INCLUDE_DIR}/GL
  44. cp -fd ${TOP}/lib*/lib* ${LIB_DIR}
  45. echo "Done."