Salome HOME
TTK: on DB10, switch off CPU optimization as requested by A.Geay
[tools/sat_salome.git] / products / compil_scripts / freetype-2.3.sh
1 #!/bin/bash
2
3 echo "###############################################"
4 echo "freetype" $VERSION
5 echo "###############################################"
6
7
8
9 echo
10 echo "*** configure"
11 if [[ $BITS == "64" ]]
12 then
13     $SOURCE_DIR/configure CFLAGS="-fPIC -m64" --prefix=$PRODUCT_INSTALL --with-harfbuzz=no
14 else
15     $SOURCE_DIR/configure --prefix=$PRODUCT_INSTALL
16 fi
17 if [ $? -ne 0 ]
18 then
19     echo "ERROR on configure"
20     exit 1
21 fi
22
23 echo
24 echo "*** make" $MAKE_OPTIONS
25 make $MAKE_OPTIONS
26 if [ $? -ne 0 ]
27 then
28     echo "ERROR on make"
29     exit 2
30 fi
31
32 echo
33 echo "*** make install"
34 make install
35 if [ $? -ne 0 ]
36 then
37     echo "ERROR on make install"
38     exit 3
39 fi
40
41 cp $PRODUCT_INSTALL/include/ft2build.h $PRODUCT_INSTALL/include/freetype2 #Fix for ParaView detection of ft2build.h
42
43 echo
44 echo "########## END"
45