8 HEADER_LOC
="$PREFIX/$INCLUDEDIR"
9 LIB_LOC
="$PREFIX/$LIBDIR"
10 BIN_LOC
="$PREFIX/$BINDIR"
13 echo "INSTALL headers ($HEADER_LOC)"
14 install -m 775 -d "${HEADER_LOC}/GP"
15 for i
in `ls include/`; do
16 if [ -d "include/$i" ]; then
18 install -m 775 -d "${HEADER_LOC}/GP/$i"
19 install -m 664 "include/$i/"*.h
"${HEADER_LOC}/GP/$i"
21 install -m 664 "include/$i" "${HEADER_LOC}/GP/$i"
26 echo "INSTALL libraries ($LIB_LOC)"
27 install -m 775 -d "$LIB_LOC"
29 for i
in build
/*.so build
/*.so.
* build
/*.a
; do
31 TARGET
=`basename "$i"`
32 SOURCE
=`readlink "$i"`
33 (cd "$LIB_LOC" && rm -f "$TARGET" && ln -s "$SOURCE" "$TARGET")
35 install "$i" "$LIB_LOC"
40 echo "INSTALL binaries"
41 install -m 775 -d "$BIN_LOC"
42 install -m 755 gfxprim-config
"$BIN_LOC"
43 install -m 755 demos
/spiv
/spiv
"$BIN_LOC"