Salome HOME
initial commit : transfert of salome configuration files from internal git base
[tools/sat_salome.git] / products / compil_scripts / ftgl_2.1.3.sh
1 #!/bin/bash
2
3 echo "###############################################"
4 echo "ftgl" $VERSION
5 echo "###############################################"
6
7
8 cp -r $SOURCE_DIR/* .
9
10
11
12 ./autogen.sh
13
14 echo
15 echo "*** configure"
16 ./configure --prefix=$PRODUCT_INSTALL --enable-shared=yes \
17     --with-ft-prefix=$FREETYPEDIR \
18     --with-gl-inc="-lm" 
19 #    --disable-doc
20 if [ $? -ne 0 ]
21 then
22     echo "ERROR on configure"
23     exit 1
24 fi
25
26 export ECHO=echo
27
28 echo
29 echo "*** make" $MAKE_OPTIONS
30 make $MAKE_OPTIONS
31 if [ $? -ne 0 ]
32 then
33     echo "ERROR on make"
34     exit 2
35 fi
36
37 echo
38 echo "*** make install"
39 make install
40 if [ $? -ne 0 ]
41 then
42     echo "ERROR on make install"
43     rm -Rf $PRODUCT_INSTALL
44     exit 3
45 fi
46
47 echo
48 echo "########## END"
49