Add DRI_LIB_DEPS for the DRI drivers to link against. Remove expat from the
[mesa-demos.git] / bin / installmesa
blob80fd8ef7e5ad7e3933fe024a15b9a94fbcb27c4c
1 #!/bin/sh
4 # Simple shell script for installing Mesa's header and library files.
5 # If the copy commands below don't work on a particular system (i.e. the
6 # -f or -d flags), we may need to branch on `uname` to do the right thing.
10 TOP=.
12 INCLUDE_DIR="/usr/local/include"
13 LIB_DIR="/usr/local/lib"
16 echo
17 echo "***** Mesa installation - You may need root privileges to do this *****"
18 echo
19 echo "Default directory for header files is:" ${INCLUDE_DIR}
20 echo "Enter new directory or press <Enter> to accept this default."
22 read INPUT
23 if [ x${INPUT} != "x" ] ; then
24 INCLUDE_DIR=${INPUT}
27 echo
28 echo "Default directory for library files is:" ${LIB_DIR}
29 echo "Enter new directory or press <Enter> to accept this default."
31 read INPUT
32 if [ x${INPUT} != "x" ] ; then
33 LIB_DIR=${INPUT}
37 echo
38 echo "About to install Mesa header files (GL/*.h) in: " ${INCLUDE_DIR}/GL
39 echo "and Mesa library files (libGL.*, etc) in: " ${LIB_DIR}
40 echo "Press <Enter> to continue, or <ctrl>-C to abort."
42 read INPUT
45 # flags:
46 # -f = force
47 # -d = preserve symlinks
49 set -v
51 mkdir ${INCLUDE_DIR}
52 mkdir ${INCLUDE_DIR}/GL
53 mkdir ${LIB_DIR}
54 cp -f ${TOP}/include/GL/*.h ${INCLUDE_DIR}/GL
55 cp -fd ${TOP}/lib*/lib* ${LIB_DIR}
57 echo "Done."