Salome HOME
add pip symbolic link to pip3
[tools/sat_salome.git] / products / compil_scripts / tcltk.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo "tcl/tk" $VERSION
5 echo "##########################################################################"
6
7 echo
8 echo "INFO: building tcl..."
9 echo "INFO: running command: configure --enable-shared --enable-threads"
10
11 mkdir -p $BUILD_DIR/tcl && cd $BUILD_DIR/tcl
12 $SOURCE_DIR/tcl/unix/configure --prefix=$PRODUCT_INSTALL --enable-shared --enable-threads
13 if [ $? -ne 0 ]
14 then
15     echo "ERROR on configure (tcl)"
16     exit 1
17 fi
18
19 echo
20 echo "INFO: running command: make " $MAKE_OPTIONS
21 make $MAKE_OPTIONS
22 if [ $? -ne 0 ]
23 then
24     echo "ERROR on make (tcl)"
25     exit 2
26 fi
27
28 echo
29 echo "INFO: running command: make install (tcl)"
30 make install
31 if [ $? -ne 0 ]
32 then
33     echo "ERROR on make install (tcl)"
34     exit 3
35 fi
36
37 echo "INFO: building tk..."
38 mkdir -p $BUILD_DIR/tk && cd $BUILD_DIR/tk
39 echo "INFO: running command:  configure --enable-shared --enable-threads --with-tcl=$PRODUCT_INSTALL/lib --with-tclinclude=$PRODUCT_INSTALL/include"
40 $SOURCE_DIR/tk/unix/configure --prefix=$PRODUCT_INSTALL --enable-shared --enable-threads \
41     --with-tcl=$PRODUCT_INSTALL/lib --with-tclinclude=$PRODUCT_INSTALL/include
42 if [ $? -ne 0 ]
43 then
44     echo "ERROR on configure (tk)"
45     exit 2
46 fi
47
48 echo
49 echo "INFO: running command: make"
50 make
51 if [ $? -ne 0 ]
52 then
53     echo "ERROR on make (tk)"
54     exit 2
55 fi
56
57 echo
58 echo "INFO: running command: make install"
59 make install 
60 if [ $? -ne 0 ]
61 then
62     echo "ERROR on make install (tk)"
63     exit 3
64 fi
65
66 cp tkConfig.sh $PRODUCT_INSTALL/lib # needed by Netgen
67
68 echo
69 echo "########## END"
70