# modify all *.la files
export ATOMGEN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeATOMGENConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeATOMGENTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeATOMGENConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeATOMGENTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export ATOMIC_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeATOMICConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeATOMICTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeATOMICConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeATOMICTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export ATOMSOLV_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeATOMSOLVConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeATOMSOLVTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeATOMSOLVConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeATOMSOLVTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export BLSURFPLUGIN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeBLSURFPLUGINConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeBLSURFPLUGINTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeBLSURFPLUGINConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeBLSURFPLUGINTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export CALCULATOR_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeCALCULATORConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeCALCULATORTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeCALCULATORConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeCALCULATORTargets-release.cmake
sed -i "s%export KERNEL_ROOT_DIR=.*%export KERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}%g;s%export CALCULATOR_ROOT_DIR=.*%export CALCULATOR_ROOT_DIR=${CALCULATOR_ROOT_DIR}%g" ${PRODUCT_DIR}/bin/salome/runAppli
# to generate environment scripts
# modify all *.la files
export COMPONENT_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeCOMPONENTConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeCOMPONENTTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeCOMPONENTConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeCOMPONENTTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export GEOM_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGEOMConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGEOMTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeGEOMConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeGEOMTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export GHS3DPLUGIN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGHS3DPLUGINConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGHS3DPLUGINTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeGHS3DPLUGINConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeGHS3DPLUGINTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export GHS3DPRLPLUGIN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGHS3DPRLPLUGINConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGHS3DPRLPLUGINTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeGHS3DPRLPLUGINConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeGHS3DPRLPLUGINTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export GUI_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGUIConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeGUITargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeGUIConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeGUITargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export HELLO_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHELLOConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHELLOTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeHELLOConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeHELLOTargets-release.cmake
sed -i "s%export KERNEL_ROOT_DIR=.*%export KERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}%g;s%export HELLO_ROOT_DIR=.*%export HELLO_ROOT_DIR=${HELLO_ROOT_DIR}%g" ${PRODUCT_DIR}/bin/salome/runAppli
# to generate environment scripts
# modify all *.la files
export HEXABLOCK_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHEXABLOCKConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHEXABLOCKTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeHEXABLOCKConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeHEXABLOCKTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export HEXABLOCKPLUGIN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHEXABLOCKPLUGINConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHEXABLOCKPLUGINTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeHEXABLOCKPLUGINConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeHEXABLOCKPLUGINTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export HOMARD_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHOMARDConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHOMARDTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeHOMARDConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeHOMARDTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export HexoticPLUGIN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHexoticPLUGINConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeHexoticPLUGINTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeHexoticPLUGINConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeHexoticPLUGINTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export JOBMANAGER_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeJOBMANAGERConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeJOBMANAGERTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeJOBMANAGERConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeJOBMANAGERTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export LIGHT_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeLIGHTConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeLIGHTTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeLIGHTConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeLIGHTTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export MED_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeMEDConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeMEDTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeMEDConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeMEDTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export NETGENPLUGIN_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeNETGENPLUGINConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeNETGENPLUGINTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeNETGENPLUGINConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeNETGENPLUGINTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export PARAVIS_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePARAVISConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePARAVISTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomePARAVISConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomePARAVISTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export PYCALCULATOR_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePYCALCULATORConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePYCALCULATORTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomePYCALCULATORConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomePYCALCULATORTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export PYHELLO_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePYHELLOConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePYHELLOTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomePYHELLOConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomePYHELLOTargets-release.cmake
sed -e "s%export KERNEL_ROOT_DIR=.*%export KERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}%g;s%export PYHELLO_ROOT_DIR=.*%export PYHELLO_ROOT_DIR=${PYHELLO_ROOT_DIR}%g" ${PRODUCT_DIR}/bin/salome/runAppli
# to generate environment scripts
# modify all *.la files
export PYLIGHT_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePYLIGHTConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomePYLIGHTTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomePYLIGHTConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomePYLIGHTTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export RANDOMIZER_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeRANDOMIZERConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeRANDOMIZERTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeRANDOMIZERConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeRANDOMIZERTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export SIERPINSKY_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeSIERPINSKYConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeSIERPINSKYTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeSIERPINSKYConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeSIERPINSKYTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export SMESH_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeSMESHConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeSMESHTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeSMESHConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeSMESHTargets-release.cmake
# to generate environment scripts
try_preinstalled
# modify all *.la files
export YACS_ROOT_DIR=${PRODUCT_DIR}
test -z ${SINGLE_DIR} && modif_la_files ${PRODUCT_DIR}
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeYACSConfig.cmake
-modif_cfg_file ${PRODUCT_DIR}/salome_adm/cmake_files/SalomeYACSTargets-release.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeYACSConfig.cmake
+modif_cfg_file ${PRODUCT_DIR}/adm_local/cmake_files/SalomeYACSTargets-release.cmake
# to generate environment scripts
try_preinstalled
if [ "${QT4_ROOT_DIR}" != "" ] ; then
sed -i "s%\([^/]*\)[^;]*/qt-[0-9.]\+%\1${QT4_ROOT_DIR}%g" $1
fi
+ if [ "${QWT_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/qwt-[0-9.]\+%\1${QWT_ROOT_DIR}%g" $1
+ fi
if [ "${SIP_ROOT_DIR}" != "" ] ; then
sed -i "s%\([^/]*\)[^;]*/sip-[0-9.]\+%\1${SIP_ROOT_DIR}%g" $1
fi
if [ "${NETGEN_ROOT_DIR}" != "" ] ; then
sed -i "s%\([^/]*\)[^;]*/netgen-[0-9.]\+%\1${NETGEN_ROOT_DIR}%g" $1
fi
+ if [ "${CGNS_ROOT_DIR}" != "" ] ; then
+ sed -i "s%\([^/]*\)[^;]*/cgnslib-[0-9.]\+%\1${CGNS_ROOT_DIR}%g" $1
+ fi
if [ "${NUMPY_ROOT_DIR}" != "" ] ; then
sed -i "s%\([^/]*\)[^;]*/numpy-[0-9.]\+%\1${NUMPY_ROOT_DIR}%g" $1
fi
check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+# modifing la files
+for f in `find ${PRODUCT_DIR} -name "*.la"` X ; do
+ case ${f} in
+ X ) ;;
+ * ) sed -i "s%^libdir='.*/wso2-wsf-cpp-[0-9.]\+%libdir='${PRODUCT_DIR}%g;s%[[:space:]][^[:space:]]\+/wso2-wsf-cpp-[0-9.]\+/% ${PRODUCT_DIR}/%g" ${f} ;;
+ esac
+done
+# modify pkgconfig
+if [ -d ${PRODUCT_DIR}/lib/pkgconfig ] ; then
+ for f in X `find ${PRODUCT_DIR}/lib/pkgconfig -name "*.pc"`; do
+ case ${f} in
+ X ) ;;
+ * ) sed -i "s%^prefix=.*%prefix=${PRODUCT_DIR}%g" ${f}
+ esac
+ done
+fi
+
+
# to generate environment script for sources
try_preinstalled
}