Maemo: Add some hints to debian/rules.

Task-number: QTCREATORBUG-3661
This commit is contained in:
Christian Kandeler
2011-02-15 15:10:43 +01:00
parent 22a49fd4a8
commit 4fe5021cd4

View File

@@ -747,15 +747,12 @@ bool AbstractDebBasedQt4MaemoTarget::adaptRulesFile()
return false;
}
QByteArray rulesContents = rulesFile.readAll();
const QByteArray comment("# Uncomment this line for use without Qt Creator");
rulesContents.replace("DESTDIR", "INSTALL_ROOT");
rulesContents.replace("dh_shlibdeps", "# dh_shlibdeps");
// rulesContents.replace("$(MAKE) clean", "# $(MAKE) clean");
// const Qt4Project * const qt4Project
// = static_cast<const Qt4Project *>(project);
// const QString proFileName
// = QFileInfo(qt4Project->rootProjectNode()->path()).fileName();
// rulesContents.replace("# Add here commands to configure the package.",
// "qmake " + proFileName.toLocal8Bit());
rulesContents.replace("dh_shlibdeps", "# dh_shlibdeps " + comment);
rulesContents.replace("# Add here commands to configure the package.",
"# qmake PREFIX=/usr" + comment);
rulesContents.replace("$(MAKE)\n", "# $(MAKE) " + comment + '\n');
// Would be the right solution, but does not work (on Windows),
// because dpkg-genchanges doesn't know about it (and can't be told).