source ${INSTALL_WORK}/$SHRC
check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
+check_jb tar xfz ${SOURCE_DIR}/ParaViewData-${PVVERSION}.tar.gz -C ${INST_ROOT}
# to generate environment scripts
try_preinstalled
test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+check_jb tar xfz ${SOURCE_DIR}/../../SOURCES/ParaViewData-${PVVERSION}.tar.gz -C ${INST_ROOT}
+
+cd ${PRODUCT_DIR}
+
+for f in `find . -name *.cmake` ; do
+sed -e "s%/[^\";]*/bin/moc%$QTDIR/bin/moc%g" \
+ -e "s%/[^\";]*/bin/uic%$QTDIR/bin/uic%g" \
+ -e "s%/[^\";]*/bin/rcc%$QTDIR/bin/rcc%g" \
+ -e "s%/[^\";]*/bin/qmake%$QTDIR/bin/qmake%g" \
+ -e "s%/[^\";]*/lib/libQt%$QTDIR/lib/libQt%g" \
+ -e "s%/[^\";]*/lib64/libQt%$QTDIR/lib64/libQt%g" \
+ -e "s%/[^\";]*/lib/python\([0-9].[0-9]\)/config/libpython%$PYTHONHOME/lib/python\1/config/libpython%g" \
+ -e "s%/[^\";]*/include/python\([0-9].[0-9]\)%$PYTHONHOME/include/python\1%g" \
+ ${f} > ${f}.new
+ mv -f ${f}.new ${f}
+done
+
# to generate environment script for sources
try_preinstalled