Index: head/emulators/qtemu/Makefile =================================================================== --- head/emulators/qtemu/Makefile (revision 425730) +++ head/emulators/qtemu/Makefile (revision 425731) @@ -1,37 +1,40 @@ # $FreeBSD$ PORTNAME= qtemu PORTVERSION= 1.0.5 PORTREVISION= 4 CATEGORIES= emulators MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Qt 4 based frontend for QEMU -USE_QT4= gui xml uic_build moc_build rcc_build +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING + USES= qmake tar:bzip2 -CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} +USE_QT4= gui xml uic_build moc_build rcc_build +CONFIGURE_ENV= LOCALBASE=${LOCALBASE} DESKTOP_ENTRIES="QtEmu" "QEMU frontend" "" \ "qtemu" "" true OPTIONS_DEFINE= DOCS NLS OPTIONS_SUB= yes NLS_USE= QT4=linguisttools_build post-configure-NLS-on: (cd ${WRKSRC} && ${LRELEASE} qtemu.pro) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/qtemu ${STAGEDIR}${PREFIX}/bin/qtemu do-install-NLS-on: @${MKDIR} ${STAGEDIR}${DATADIR}/translations ${INSTALL_DATA} ${WRKSRC}/translations/qtemu*.qm ${STAGEDIR}${DATADIR}/translations do-install-DOCS-on: (cd ${WRKSRC}/help && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include Index: head/emulators/qtemu/files/patch-helpwindow.cpp =================================================================== --- head/emulators/qtemu/files/patch-helpwindow.cpp (revision 425730) +++ head/emulators/qtemu/files/patch-helpwindow.cpp (revision 425731) @@ -1,20 +1,20 @@ ---- ./helpwindow.cpp.orig Mon Mar 19 15:56:21 2007 -+++ ./helpwindow.cpp Tue Jun 12 13:23:44 2007 -@@ -72,7 +72,7 @@ +--- helpwindow.cpp.orig 2007-11-12 19:31:00 UTC ++++ helpwindow.cpp +@@ -80,7 +80,7 @@ QUrl HelpWindow::getHelpFile() return testUrl; //check for case when qtemu executable is in bin/ (installed on linux) - testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../help/" + locale + "/main.htm"); + testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../share/doc/qtemu/" + locale + "/main.htm"); if (QFile::exists(testUrl.toString())) return testUrl; } -@@ -88,7 +88,7 @@ +@@ -96,7 +96,7 @@ QUrl HelpWindow::getHelpFile() return testUrl; //check for case when qtemu executable is in bin/ (installed on linux) - testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../help/main.htm"); + testUrl = QUrl(QCoreApplication::applicationDirPath()+"/../share/doc/qtemu/main.htm"); if (QFile::exists(testUrl.toString())) return testUrl; Index: head/emulators/qtemu/files/patch-main.cpp =================================================================== --- head/emulators/qtemu/files/patch-main.cpp (revision 425730) +++ head/emulators/qtemu/files/patch-main.cpp (revision 425731) @@ -1,11 +1,11 @@ ---- ./main.cpp.orig Mon Mar 19 15:56:21 2007 -+++ ./main.cpp Tue Jun 12 13:17:03 2007 -@@ -45,7 +45,7 @@ +--- main.cpp.orig 2007-11-12 19:31:00 UTC ++++ main.cpp +@@ -45,7 +45,7 @@ int main(int argc, char *argv[]) translator.load(path); else { - path = QCoreApplication::applicationDirPath()+"/../translations/qtemu_" + locale + ".qm"; + path = QCoreApplication::applicationDirPath()+"/../share/qtemu/translations/qtemu_" + locale + ".qm"; if (QFile::exists(path)) translator.load(path); } Index: head/emulators/qtemu/files/patch-qtemu.pro =================================================================== --- head/emulators/qtemu/files/patch-qtemu.pro (revision 425730) +++ head/emulators/qtemu/files/patch-qtemu.pro (revision 425731) @@ -1,8 +1,8 @@ ---- ./qtemu.pro.orig 2007-11-12 22:31:00.000000000 +0300 -+++ ./qtemu.pro 2007-11-15 00:11:48.000000000 +0300 -@@ -31,4 +31,4 @@ +--- qtemu.pro.orig 2007-11-12 19:31:00 UTC ++++ qtemu.pro +@@ -31,4 +31,4 @@ TRANSLATIONS = translations/template_q translations/qtemu_es.ts \ translations/qtemu_pt-BR.ts \ translations/qtemu_pl.ts -CONFIG += debug_and_release +CONFIG += release