File: configure-site

package info (click to toggle)
vflib3 3.6.14.dfsg-3+nmu4
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 11,936 kB
  • sloc: ansic: 36,071; sh: 10,354; asm: 3,290; makefile: 960; lisp: 123; perl: 109; awk: 43
file content (48 lines) | stat: -rwxr-xr-x 855 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh

#
# Typical invocation of configure script
#
# Most of the case, you want to do this when configure VFlib.
#


machtype=`./config.guess`

case ${machtype} in
i386-*-freebsd*)
  ROOT=/usr/local
  ;;
*-*-linux*)
  ROOT=/usr
  OPT="--prefix=/usr"
  ;;
*)
  ROOT=/usr/local
  ;;
esac


OPT_K="--with-kpathsea \
       --with-kpathsea-includedir=${ROOT}/include \
       --with-kpathsea-libdir=${ROOT}/lib"
OPT_F="--with-freetype \
       --with-freetype-includedir=${ROOT}/include/freetype1/freetype \
       --with-freetype-libdir=${ROOT}/lib"
OPT_T="--with-t1lib \
       --with-t1lib-includedir=${ROOT}/include \
       --with-t1lib-libdir=${ROOT}/lib"
OPT_OPT=""

OPTION="${OPT} ${OPT_K} ${OPT_F} ${OPT_T} ${OPT_OPT}"

echo
echo Run configure for ${machtype}...
echo ./configure ${OPTION}
echo

rm -f config.cache 
./configure ${OPTION}


#EOF