cd ${PRODUCT_DIR}
-for f in `find . -name *.cmake` ; do
+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%/[^\";]*/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" \
+ -e "s%/[^\";]*/tcltk[^/]*/include%${TCLHOME}/include%g" \
+ -e "s%/[^\";]*/tcltk[^/]*/lib%${TCLHOME}/lib%g" \
+ -e "s%/[^\";]*/lib/libhdf5.so%${HDF5HOME}/lib/libhdf5.so%g" \
+ -e "s%/[^\";]*/lib64/libhdf5.so%${HDF5HOME}/lib64/libhdf5.so%g" \
${f} > ${f}.new
mv -f ${f}.new ${f}
done