spiv: Add option to use pixel type emulation for backend.
[gfxprim.git] / install.sh
blobc0273e069f3ca4d10b83bfc403f5031a393e99ef
1 #!/bin/sh
3 INSTALL_PREFIX="$1"
5 if test -z "$INSTALL_PREFIX"; then
6 INSTALL_PREFIX="/usr/"
7 fi
9 HEADER_LOC="$INSTALL_PREFIX/include/"
10 LIB_LOC="$INSTALL_PREFIX/lib/"
11 BIN_LOC="$INSTALL_PREFIX/bin/"
13 # Headers
14 echo "INSTALL headers"
15 install -m 775 -d "${HEADER_LOC}GP"
16 for i in `ls include/`; do
17 if [ -d "include/$i" ]; then
18 echo " $i"
19 install -m 775 -d "${HEADER_LOC}GP/$i"
20 install -m 664 "include/$i/"*.h "${HEADER_LOC}GP/$i"
21 else
22 install -m 664 "include/$i" "${HEADER_LOC}GP/$i"
24 done
26 # Library
27 echo "INSTALL libraries"
28 install -m 775 -d "$LIB_LOC"
29 install -m 664 build/*.so build/*.so.0 build/*.a "$LIB_LOC"
31 # Binaries
32 echo "INSTALL binaries"
33 install -m 755 gfxprim-config "$BIN_LOC"