Mostly automated: git grep -l '.c_str() <<' | xargs sed -i 's|\.c_str() <<| <<|g'
This cpack generator basically replaces the obsolete PackageMaker generator.