check_jb tar xfz ${SOURCE_DIR}/CALCULATORbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export CALCULATOR_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
if [ ! -d $ldir ]; then ldir=${PRODUCT_DIR}/Linux/lib; fi
if [ ! -d $ldir ]; then ldir=${PRODUCT_DIR}/lin/lib; fi
cd $ldir
+tcldir=`printenv TCLHOME`
for l in X `find . -name "*.la"`; do
if [ "$l" != "X" ] ; then
l=`basename $l`
libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"`
sed -e "s%${libdir}%${ldir}%g" $l > _$l
mv -f _$l $l
+ if [ -n "${tcldir}" ] && [ -d "${tcldir}" ] ; then
+ sed -e "s%-L[^[:space:]]*tcltk[^[:space:]]*/lib%-L${tcldir}/lib%g" $l > _$l
+ mv -f _$l $l
+ fi
chmod a+x $l
fi
done
check_jb tar xfz ${SOURCE_DIR}/COMPONENTbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export COMPONENT_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
check_jb tar xfz ${SOURCE_DIR}/GEOMbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export GEOM_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
check_jb tar xfz ${SOURCE_DIR}/GHS3DPLUGINbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export GHS3DPLUGIN_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
check_jb tar xfz ${SOURCE_DIR}/GUIbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export GUI_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
check_jb tar xfz ${SOURCE_DIR}/HELLObinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export HELLO_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
fi
# modify all *.la files
+export KERNEL_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
check_jb tar xfz ${SOURCE_DIR}/LIGHTbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export LIGHT_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
check_jb tar xfz ${SOURCE_DIR}/MEDbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export MED_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
check_jb tar xfz ${SOURCE_DIR}/NETGENPLUGINbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export NETGENPLUGIN_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
check_jb tar xfz ${SOURCE_DIR}/PYCALCULATORbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export PYCALCULATOR_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
check_jb tar xfz ${SOURCE_DIR}/PYHELLObinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export PYHELLO_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
check_jb tar xfz ${SOURCE_DIR}/SMESHbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export SMESH_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
check_jb tar xfz ${SOURCE_DIR}/SUPERVbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export SUPERV_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
check_jb tar xfz ${SOURCE_DIR}/VISUbinariesV3.1.0.tar.gz -C ${INSTALL_ROOT}
# modify all *.la files
+export VISU_ROOT_DIR=${PRODUCT_DIR}
modif_la_files ${PRODUCT_DIR}/lib/salome
print_env
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. modify libdir
+ # 10. 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
+ 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
+ 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. modify libdir
sed -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib/salome'%g" $l > _$l
mv -f _$l $l
fi
if [ -n "${HDF5HOME}" ]; then
tmp="-L${HDF5HOME}/lib"
fi
-sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-1\.4\.4/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmed.la > libmed.la.new
+sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-1\.6\.3/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmed.la > libmed.la.new
mv -f libmed.la.new libmed.la
-sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-1\.4\.4/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedC.la > libmedC.la.new
+sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-1\.6\.3/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedC.la > libmedC.la.new
mv -f libmedC.la.new libmedC.la
chmod 755 libmed.la
if [ -n "${HDF5HOME}" ]; then
tmp="-L${HDF5HOME}/lib"
fi
-sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-1\.4\.4/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmed.la > libmed.la.new
+sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-1\.6\.3/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmed.la > libmed.la.new
mv -f libmed.la.new libmed.la
-sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-1\.4\.4/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedC.la > libmedC.la.new
+sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-1\.6\.3/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedC.la > libmedC.la.new
mv -f libmedC.la.new libmedC.la
chmod 755 libmed.la