]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Small update
authormaintenance team <salome-mnt@opencascade.com>
Thu, 19 Nov 2009 13:27:46 +0000 (13:27 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Thu, 19 Nov 2009 13:27:46 +0000 (13:27 +0000)
config_files/expat-2.0.1.sh
config_files/graphviz-2.24.0.sh

index ee90ceb4d057e46d65a2b4876ccbd046e300f407..49a40195646fd6320201ee13388e2bd4983e1159 100755 (executable)
@@ -25,8 +25,9 @@ return 0
 print_env_bin(){
 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
-export PATH=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}/bin:\${PATH}
-export LD_LIBRARY_PATH=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}/lib:\${LD_LIBRARY_PATH}
+export EXPAT_ROOT=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PATH=\${EXPAT_ROOT}/bin:\${PATH}
+export LD_LIBRARY_PATH=\${EXPAT_ROOT}/lib:\${LD_LIBRARY_PATH}
 ##
 EOF
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
index d309cb7e1a08aa165ec9a1730db501ff32ae312d..62e156027e171b9423f2eea6165e99fdb6358614 100755 (executable)
@@ -81,11 +81,16 @@ test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
 
 sed -i 's%PYTHON_LIBS="\(.*\)"%PYTHON_LIBS="-L\$PYTHON_PREFIX/lib \1"%g' configure
 
-  if test `uname -m` = "x86_64" ; then
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG configure --prefix=${PRODUCT_DIR} --with-mylibgd --with-gdlibdir=/usr/lib64 --with-fontconfiglibdir=/usr/lib64 --with-expatlibdir=/usr/lib64 --with-freetypelibdir=/usr/lib64 --with-tcl=${TCLHOME} --disable-rpath  --enable-perl=no CFLAGS=-m64 CXXFLAGS=-m64
-  else
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG configure --prefix=${PRODUCT_DIR} --with-tcl=${TCLHOME} --disable-rpath --enable-perl=no
-  fi
+CONFIGURE_FLAGS="--disable-rpath"
+if [ "${EXPAT_ROOT}" != "" ] ; then
+    CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-expat --with-expatincludedir=${EXPAT_ROOT}/include --with-expatlibdir=${EXPAT_ROOT}/lib  --enable-perl=no "
+fi
+if test `uname -m` == "x86_64" ; then
+    CONFIGURE_FLAGS="${CONFIGURE_FLAGS} CFLAGS=-m64 CXXFLAGS=-m64"
+fi
+
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG configure --prefix=${PRODUCT_DIR} ${CONFIGURE_FLAGS}
+
 GCC=`which gcc`
 cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
 used gcc=$GCC