#####################################################
# !WARNING! This is current SALOME version number
####################################################
-export SALOME_VERSION="6.3.0"
-export YACSGEN_VERSION="6.3.0"
-export JOBMANAGER_VERSION="6.3.0"
+export SALOME_VERSION="6.4.0"
+export YACSGEN_VERSION="6.4.0"
+export JOBMANAGER_VERSION="6.4.0"
# Name of the single directory for SALOME modules
export SDIR_NAME="SALOME_${SALOME_VERSION}"
sed -e 's%exportp \([[:alnum:]_[:blank:]]*\)%setenvp \1%g' ${INSTALL_WORK}/_tmp2 > ${INSTALL_WORK}/_tmp1 2>/dev/null
sed -e 's%if \[ -n "\${PYTHONPATH}" \] ; then%if ( ${?PYTHONPATH} ) then%g' ${INSTALL_WORK}/_tmp1 > ${INSTALL_WORK}/_tmp2 2>/dev/null
sed -e 's%if \[ -n "\${ENV_FOR_LAUNCH}" \] ; then%if ( ${?ENV_FOR_LAUNCH} ) then%g' ${INSTALL_WORK}/_tmp2 > ${INSTALL_WORK}/_tmp1 2>/dev/null
-sed -e 's%if \[ "\${ENV_FOR_LAUNCH}" == "1" \] ; then%if ( "\${ENV_FOR_LAUNCH}" == "1" ) then%g' ${INSTALL_WORK}/_tmp1 > ${INSTALL_WORK}/_tmp2 2>/dev/null
+sed -e 's%if \[ "\${ENV_FOR_LAUNCH}" =\?= "1" \] ; then%if ( "\${ENV_FOR_LAUNCH}" == "1" ) then%g' ${INSTALL_WORK}/_tmp1 > ${INSTALL_WORK}/_tmp2 2>/dev/null
sed -e 's%^\([[:blank:]]*\)fi\([[:blank:]]*\)$%\1endif\2%g' ${INSTALL_WORK}/_tmp2 > ${INSTALL_WORK}/_tmp1 2>/dev/null
sed -e 's%var.sh%var.csh%g' ${INSTALL_WORK}/_tmp1 > ${INSTALL_WORK}/_tmp2 2>/dev/null
sed -e 's%if \[ -e "\${LICENSE_FILE}" \] ; then%if ( -e ${LICENSE_FILE} ) then%g' ${INSTALL_WORK}/_tmp2 > ${INSTALL_WORK}/_tmp1 2>/dev/null
srcdir=`pwd`
-#SALOME_MODULES="`env | awk -F_ '/[[:alnum:]]*_ROOT_DIR/ { print $1 }'`"
SALOME_MODULES="`env | awk -F_ '/[a-zA-Z0-9]*_ROOT_DIR/ { print $1 }'`"
cd $ldir
la_files=`find . -name "*.la"`
for l in X ${la_files}; do
+
if [ "$l" != "X" ] ; then
d=`dirname $l`
l=`basename $l`
cd $ldir; cd $d
- # 1. process salome modules dependencies
+ # . process salome modules dependencies
for mod in $SALOME_MODULES; do
moddir=`printenv ${mod}_ROOT_DIR`
if [ -n "${moddir}" ] ; then
- #echo $l $mod $moddir
-# sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${mod}[^[:space:]/]*/\(lib\|lib64\)% \1${moddir}/${myldir}%g" $l > $l"_"
-# sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${mod}[^[:space:]/]*/lib% \1${moddir}/lib%g" $l > $l"_"
- sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${mod}[^[:space:]/]*/lib% \1${moddir}/lib%g" \
- -e "s%^libdir='[^[:space:]]*${mod}[^[:space:]]*/\(lib.*\)'%libdir='${moddir}/\1'%g" $l > $l"_"
+ sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${mod}[1]\?/lib% \1${moddir}/lib%g" \
+ -e "s%^libdir='[^[:space:]]*${mod}[1]\?/\(lib.*\)'%libdir='${moddir}/\1'%g" $l > $l"_"
mv -f $l"_" $l
-# for mod1 in $SALOME_MODULES; do
-# sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${mod1}[^[:space:]]*/${mod1}_build%%g" $l > $l"_"
-# mv -f $l"_" $l
-# done
fi
done
- # 2. process CAS.CADE dependencies
+ # . process CASCASDE products dependencies
+ netgendir=`printenv NETGENHOME`
+ freetypedir=`printenv FREETYPEDIR`
+ ftgldir=`printenv FTGLDIR`
+ gl2psdir=`printenv GL2PSHOME`
+ freeimagedir=`printenv FREEIMAGEDIR`
+ tbbbasedir=`printenv TBBHOME`
+ cgnslibdir=`printenv CGNSHOME`
+
+ TBBKERNEL='cc4.1.0_libc2.4_kernel2.6.16.21'
+ if test `uname -m` = "x86_64" ; then
+ export TBBMODE="intel64/$TBBKERNEL"
+ else
+ export TBBMODE="ia32/$TBBKERNEL"
+ fi
+
+ tbbdir=${tbbbasedir}/lib/$TBBMODE
+
+ if [ -n "${netgendir}" ] && [ -d "${netgendir}" ] ; then
+ sed -e "s%\(.*\)\([[:space:]].*-L.*/netgen-[0-9]\.[0-9]\.[0-9][0-9]/lib[[:space:]]\)\(.*\)%\1 -L${netgendir}/lib \3%g" \
+ -e 's%\(.*\)\([[:space:]].*libnglib.la\)\(.*\)%\1 -lnglib \3%g' $l > _$l
+ mv -f _$l $l
+ fi
+ chmod a+x $l
+ if [ -n "${freetypedir}" ] && [ -d "${freetypedir}" ] ; then
+ sed -e "s%\(.*\)\([[:space:]].*-L.*/freetype-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 -L${freetypedir}/lib \3%g" \
+ -e 's%\(.*\)\([[:space:]].*libfreetype.la\)\(.*\)%\1 -lfreetype \3%g' $l > _$l
+ mv -f _$l $l
+ fi
+ chmod a+x $l
+ if [ -n "${ftgldir}" ] && [ -d "${ftgldir}" ] ; then
+ sed -e "s%\(.*\)\([[:space:]].*-L.*/ftgl-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 -L${ftgldir}/lib \3%g" \
+ -e 's%\(.*\)\([[:space:]].*libftgl.la\)\(.*\)%\1 -lftgl \3%g' $l > _$l
+ mv -f _$l $l
+ fi
+ chmod a+x $l
+ if [ -n "${gl2psdir}" ] && [ -d "${gl2psdir}" ] ; then
+ sed -e "s%\(.*\)\([[:space:]].*-L.*/gl2ps-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 -L${gl2psdir}/lib \3%g" $l > _$l
+ mv -f _$l $l
+ fi
+ chmod a+x $l
+ if [ -n "${freeimagedir}" ] && [ -d "${freeimagedir}" ] ; then
+ sed -e "s%\(.*\)\([[:space:]].*-L.*/freeimage-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 -L${freeimagedir}/lib \3%g" $l > _$l
+ mv -f _$l $l
+ fi
+ chmod a+x $l
+ if [ -n "${freeimagedir}" ] && [ -d "${freeimagedir}" ] ; then
+ sed -e "s%\(.*\)\([[:space:]].*-L.*/freeimage-[0-9]\.[0-9][0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 -L${freeimagedir}/lib \3%g" $l > _$l
+ mv -f _$l $l
+ fi
+ chmod a+x $l
+ if [ -n "${tbbdir}" ] && [ -d "${tbbdir}" ] ; then
+ sed -e "s%\(.*\)\([[:space:]].*-L.*/tbb[^[:space:]]*/lib[^[:space:]]*\)\(.*\)%\1 -L${tbbdir} \3%g" $l > _$l
+ mv -f _$l $l
+ fi
+ chmod a+x $l
+ if [ -n "${cgnslibdir}" ] && [ -d "${cgnslibdir}" ] ; then
+ sed -e "s%\(.*\)\([[:space:]].*-L.*/cgnslib-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 -L${cgnslibdir}/lib \3%g" $l > _$l
+ mv -f _$l $l
+ fi
+ chmod a+x $l
+
+ # . process CAS.CADE dependencies
casdir=`printenv CASROOT`/lib
if [ ! -d ${casdir} ] ; then casdir=`printenv CASROOT`/Linux/lib ; fi
if [ ! -d ${casdir} ] ; then casdir=`printenv CASROOT`/lin/lib ; fi
if [ -n "${CASROOT}" ] && [ -d "${casdir}" ] ; then
- # echo $l $CASROOT $casdir
- sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*\(OCT\|CAS\)[^[:space:]/]*/Linux/lib% \1${casdir}%g" \
- -e "s%[[:space:]]\(-L\)\?[^[:space:]]*\(OCT\|CAS\)[^[:space:]/]*/lin/lib% \1${casdir}%g" \
- -e "s%[[:space:]]\(-L\)\?[^[:space:]]*\(OCT\|CAS\)[^[:space:]/]*/lib% \1${casdir}%g" $l > $l"_"
- mv -f $l"_" $l
- sed -e "s%-L[^[:space:]]*OCCT[^[:space:]]*/Linux/lib%-L${casdir}%g" \
- -e "s%[^[:space:]]*OCCT[^[:space:]]*/lib/%${casdir}/%g" $l > $l"_"
+ sed -e "s%-L[^[:space:]]*OCCT[^[:space:]]*/install/lib%-L${casdir}%g" \
+ -e "s%[^[:space:]]*OCCT[^[:space:]]*/install/lib/%${casdir}/%g" \
+ -e "s%[[:space:]]-L[^[:space:]]*\(OCCT\|CAS\)[^[:space:]]*/lib\?% -L${CASROOT}/lib%g" \
+ -e "s%[[:space:]][^[:space:]]*\(OCCT\|CAS\)[^[:space:]]*/lib/lib\?% ${CASROOT}/lib/lib%g" $l > $l"_"
mv -f $l"_" $l
fi
- # 3. process omniORB dependencies
+
+ # . process omniORB dependencies
omnidir=`printenv OMNIORBDIR`/lib/i586_linux_2.0_glibc2.1
if [ ! -d ${omnidir} ] ; then omnidir=`printenv OMNIORBDIR`/lib ; fi
if [ -n "${OMNIORBDIR}" ] && [ -d "${omnidir}" ] ; then
-e "s%-R[^[:space:]]*omni[^[:space:]]*%-R${omnidir}%g" $l > $l"_"
mv -f $l"_" $l
fi
- # 4. process VTK dependencies
+
+ # . process VTK dependencies
vtkpath=`printenv VTKHOME`
if [ `uname -m` = "x86_64" ] && [ -d ${vtkpath}/lib64 ] ; then
LIB_PREFIX=64
-e "s%-L[^[:space:]]*VTK[^[:space:]]*/\(lib\|lib64\)%-L${vtkldir}%g" $l > $l"_"
mv -f $l"_" $l
fi
- # 5. process HDF dependencies
+
+ # . process HDF dependencies
hdfdir=`printenv HDF5HOME`/lib
if [ -n "${HDF5HOME}" ] && [ -d "${hdfdir}" ] ; then
# echo $l $HDF5HOME $hdfdir
sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*hdf[^[:space:]/]*/lib% \1${hdfdir}%g" $l > $l"_"
mv -f $l"_" $l
fi
- # 6. process MED dependencies
+
+ # . process MED dependencies
meddir=`printenv MED2HOME`/lib
if [ -n "${MED2HOME}" ] && [ -d "${meddir}" ] ; then
# echo $l $MED2HOME $meddir
sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*med[^[:space:]/]*/lib% \1${meddir}%g" $l > $l"_"
mv -f $l"_" $l
fi
- # 7. process qwt dependencies
+
+ # . process qwt dependencies
qwtdir=`find_in_path libqwt.so ${LD_LIBRARY_PATH}`
if [ -n "${qwtdir}" ] && [ -d "${qwtdir}" ] ; then
# echo $l $qwtdir
sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*qwt[^[:space:]/]*/lib% \1${qwtdir}%g" $l > $l"_"
mv -f $l"_" $l
fi
- # 8. process qt dependencies
+
+ # . process qt dependencies
qtdir=`printenv QTDIR`/lib
if [ -n "${QTDIR}" ] && [ -d "${qtdir}" ] ; then
# echo $l $QTDIR $qtdir
sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*qt[^[:space:]/]*/lib% \1${qtdir}%g" $l > $l"_"
mv -f $l"_" $l
fi
- # 9. process python dependencies
+
+ # . process python dependencies
where_python=`which python` # e.g. /usr/bin/python
if [ -n "$where_python" ] ; then
where_python=`dirname $where_python` # --> /usr/bin
sed -e "s%-L[^[:space:]]*python[0-9]\.[0-9]\([^[:space:]]*\)%-L${where_python}/lib/python${python_version}\1%g" $l > $l"_"
mv -f $l"_" $l
fi
- # 10. process sip dependencies
+
+ # . process sip dependencies
sipdir=`find_in_path sip.so ${LD_LIBRARY_PATH}`
if [ -n "${sipdir}" ] && [ -d "${sipdir}" ] ; then
# echo $l $sipdir
sed -e "s%-L[^[:space:]]*sip[^[:space:]]*%-L${sipdir}%g" $l > $l"_"
mv -f $l"_" $l
fi
- # 11. process PyQt dependencies
+
+ # . process PyQt dependencies
pyqtdir=`find_in_path Qt.so ${LD_LIBRARY_PATH}`
if [ -n "${pyqtdir}" ] && [ -d "${pyqtdir}" ] ; then
# echo $l $pyqtdir
sed -e "s%-L[^[:space:]]*PyQt[^[:space:]]*%-L${pyqtdir}%g" $l > $l"_"
mv -f $l"_" $l
fi
- # 12. process tcl/tk dependencies
+
+ # . process tcl/tk dependencies
tcldir=`printenv TCLHOME`/lib
if [ -n "${tcldir}" ] && [ -d "${tcldir}" ] ; then
# echo $l $TCLHOME $tcldir
sed -e "s%-L[^[:space:]]*tcltk[^[:space:]]*/lib%-L${tcldir}%g" $l > $l"_"
mv -f $l"_" $l
fi
- # 13. process boost dependencies
+
+ # . process boost dependencies
boostdir=`printenv BOOSTDIR`/lib
if [ -n "${boostdir}" ] && [ -d "${boostdir}" ] ; then
# echo $l $BOOSTDIR $boostdir
mv -f $l"_" $l
fi
+ # . process blsurf dependencies
blsurfdir=`printenv BLSURFHOME`/lib
if [ -n "${blsurfdir}" ] && [ -d "${blsurfdir}" ] ; then
# echo $l $BOOSTDIR $boostdir
mv -f $l"_" $l
fi
-# # 14. modify libdir
-# #sed -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib/salome'%g" $l > $l"_"
-# mod=`basename $ldir | awk -F_ '{print $1}'`
-# moddir=`printenv ${mod}_ROOT_DIR`
-# sed -e "s%^libdir='[^[:space:]]*${mod}[^[:space:]]*/\(lib.*\)'%libdir='${moddir}/\1'%g" $l > $l"_"
-# mv -f $l"_" $l
-
- # 15. process libxml dependencies
+ # . process libxml dependencies
libxmldir=`printenv LIBXML_DIR`/lib
if [ ! -d ${libxmldir} ] ; then libxmldir=`printenv LIBXML_DIR`/lib ; fi
sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*libxml2-[0-9]\.[0-9]\.[0-9]/lib% \1${libxmldir}%g" $l > $l"_"
sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*libxml2/lib% \1${libxmldir}%g" $l > $l"_"
mv -f $l"_" $l
- # 16. process metis dependencies
+ # . process metis dependencies
metisdir=`printenv METISDIR`
if [ ! -d ${metisdir} ] ; then metisdir=`printenv METISDIR` ; fi
sed -e "s%-L[^[:space:]]*metis[^[:space:]]*%-L${metisdir}%g" $l > $l"_"
mv -f $l"_" $l
- # 17. process scotch dependencies
+ # . process scotch dependencies
scotchdir=`printenv SCOTCHDIR`/bin
if [ ! -d ${scotchdir} ] ; then scotchdir=`printenv SCOTCHDIR`/bin ; fi
sed -e "s%-L[^[:space:]]*scotch[^[:space:]]*/bin%-L${scotchdir}%g" $l > $l"_"
mv -f $l"_" $l
+ scotchlib=`printenv SCOTCHDIR`/lib
+ if [ ! -d ${scotchlib} ] ; then scotchlib=`printenv SCOTCHDIR`/lib ; fi
+ sed -e "s%-L[^[:space:]]*scotch[^[:space:]]*/lib%-L${scotchlib}%g" $l > $l"_"
+ mv -f $l"_" $l
- # 18. process libGL.la dependencies
+ # . process libGL.la dependencies
if test `uname -m` = "x86_64" ; then
- libGLpath=/usr/lib64/libGL.la
+ libGLpath=/usr/lib64/libGL.la
else
- libGLpath=/usr/lib/libGL.la
+ libGLpath=/usr/lib/libGL.la
fi
- sed -e "s%$libGLpath%""%g" $l > $l"_"
- mv -f $l"_" $l
+ sed -e "s%$libGLpath%""%g" $l > $l"_"
+ mv -f $l"_" $l
- # 19. process graphviz dependencies
+ # . process graphviz dependencies
graphvizdir=`printenv GRAPHVIZHOME`/lib
if [ ! -d ${graphvizdir} ] ; then graphvizdir=`printenv GRAPHVIZHOME`/lib ; fi
sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*graphviz-[0-9]\.[0-9]\+\.[0-9]/lib% \1${graphvizdir}%g" \
chmod -f --reference=$l $l"_"
mv -f $l"_" $l
- # 20. process QScintilla-2.3 dependencies
+ # . process QScintilla dependencies
qscintilladir=`printenv QSCINTILLA_DIR`/lib
if [ ! -d ${qscintilladir} ] ; then qscintilladir=`printenv QSCINTILLA_DIR`/lib ; fi
sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*QScintilla-[0-9]\.[0-9]\(\.[0-9]\)\?/lib% \1${qscintilladir}%g" $l > $l"_"
chmod -f --reference=$l $l"_"
mv -f $l"_" $l
- # 21. process expat-2.0.1 dependencies
- expatdir=${EXPAT_ROOT}/lib
- sed -e "s%-L[^[:space:]]*expat[^[:space:]]*/lib%-L${expatdir}%g" \
- -e "s%[^[:space:]]*expat[^[:space:]]*/lib/libexpat.la%-lexpat%g" $l > $l"_"
- chmod -f --reference=$l $l"_"
- mv -f $l"_" $l
+ # . process expat-2.0.1 dependencies
+ expatdir=${EXPAT_ROOT}/lib
+ sed -e "s%-L[^[:space:]]*expat[^[:space:]]*/lib%-L${expatdir}%g" \
+ -e "s%[^[:space:]]*expat[^[:space:]]*/lib/libexpat.la%-lexpat%g" $l > $l"_"
+ chmod -f --reference=$l $l"_"
+ mv -f $l"_" $l
- # 22. process ParaView dependencies
+ # . process ParaView dependencies
paraviewdir=`printenv PVHOME`/lib
if [ ! -d ${paraviewdir} ] ; then paraviewdir=`printenv PVHOME`/lib ; fi
sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*ParaView-[0-9]\.[0-9]\+\.[0-9]/lib% \1${paraviewdir}%g" $l > $l"_"