]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Minor changes
authorvsr <vsr@opencascade.com>
Tue, 16 Apr 2013 14:42:16 +0000 (14:42 +0000)
committervsr <vsr@opencascade.com>
Tue, 16 Apr 2013 14:42:16 +0000 (14:42 +0000)
config_CentOS_5.5_64bit.xml
config_Debian_6.0_64bit.xml
config_Mandriva_2010.0.xml
config_Mandriva_2010.0_64bit.xml
config_files/boost.sh
config_files/swig.sh

index a61d23d96538abfde4e263ddb444231508a42bd6..29293b94d208e45cb6e2498a4aea0fcc5b4d4ec2 100755 (executable)
     <product name="Swig">
       <dep>Python</dep>
       <dep>tcltk</dep>
+      <dep>boost</dep>
     </product>
     <product name="ftgl">
       <dep>freetype</dep>
index 47897d66d683e3ca6307283375181463c4c9fb03..9f1ff83c2ca417b8b5a94ad80d45cf329f714fe3 100755 (executable)
     <product name="Swig">
       <dep>Python</dep>
       <dep>tcltk</dep>
+      <dep>boost</dep>
     </product>
     <product name="ftgl">
       <dep>freetype</dep>
index b28da79f6dcb4b272ac0c0452d96345d327e2597..bfd894538444729bc9168443c0243267076cd5eb 100755 (executable)
     <product name="Swig">
       <dep>Python</dep>
       <dep>tcltk</dep>
+      <dep>boost</dep>
     </product>
     <product name="ftgl">
       <dep>freetype</dep>
index 9bc494a9c486a2666f4c7a599c85dd57d8084e2c..ea779b7ddf7bf1d778d055f38c7914c1b063db87 100755 (executable)
     <product name="Swig">
       <dep>Python</dep>
       <dep>tcltk</dep>
+      <dep>boost</dep>
     </product>
     <product name="ftgl">
       <dep>freetype</dep>
index 22c56572504d73899714bf18b735a9b5dcfc93d8..1f9545a91382152cab164ea7cc4f47720c373ead 100755 (executable)
@@ -87,11 +87,14 @@ EOF
 
 # configure
 cd ${PRODUCT_SRC_DIR}
-check_job ${PRODUCT_DIR}/BUILD.LOG ./bootstrap.sh --with-toolset=gcc --with-python=`which python` --prefix=${PRODUCT_DIR}
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./bootstrap.sh --with-toolset=gcc --with-python=`which python` --prefix=${PRODUCT_DIR}
 
 # make & install
 cd ${PRODUCT_SRC_DIR}
 
+PRODUCT_BUILD_DIR=${PRODUCT_DIR}_build
+mkdir -p ${PRODUCT_BUILD_DIR} >& /dev/null
+
 ./b2 --prefix=${PRODUCT_DIR} toolset=gcc variant=release runtime-link=shared threading=multi --build-dir=${PRODUCT_BUILD_DIR} install >& ${PRODUCT_DIR}/INSTALL.LOG 
 
 if [ "$?" -ne "0" ] ; then
@@ -105,6 +108,7 @@ cd ${PRODUCT_DIR};
 # remove sources and temporary files after building
 if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
     test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+    test -d ${PRODUCT_BUILD_DIR} && rm -fr ${PRODUCT_BUILD_DIR}
 fi
 
 # to generate environment scripts
index 673fccaefba125bb4a6f3f2b193a7585eb276607..276d68816b0b891d30e8fa87bcd2f7902883ebc7 100755 (executable)
@@ -15,7 +15,7 @@
 #
 # swig version
 #
-SWIG_VERSION=2.0.9
+SWIG_VERSION=2.0.8
 
 check_version(){
 if [ -n "`which swig 2>/dev/null`" ]; then
@@ -33,8 +33,8 @@ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
 #$DELIM ${PRODUCT_TYPE} $DELIM 
 export SWIG_ROOT=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
 export SWIG_ROOT_DIR=\${SWIG_ROOT}
-export PATH=\${SWIG_ROOT}/bin:\${PATH}
 export SWIG_LIB=\${SWIG_ROOT}/share/swig/${SWIG_VERSION}
+export PATH=\${SWIG_ROOT}/bin:\${PATH}
 ##
 EOF
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})