From 675adc6746a70448b454f4c14accb3309951b126 Mon Sep 17 00:00:00 2001 From: Rong-En Fan Date: Mon, 2 Jul 2007 03:33:11 +0000 Subject: QtEmu is a graphical user interface for QEMU written in Qt4. WWW: http://qtemu.org/ PR: ports/113619 Submitted by: Max Brazhnikov --- emulators/Makefile | 1 + emulators/qtemu/Makefile | 61 ++++++++++++++++++++++++++++++ emulators/qtemu/distinfo | 3 ++ emulators/qtemu/files/patch-helpwindow.cpp | 20 ++++++++++ emulators/qtemu/files/patch-main.cpp | 11 ++++++ emulators/qtemu/files/patch-qtemu.pro | 19 ++++++++++ emulators/qtemu/pkg-descr | 3 ++ emulators/qtemu/pkg-plist | 44 +++++++++++++++++++++ 8 files changed, 162 insertions(+) create mode 100644 emulators/qtemu/Makefile create mode 100644 emulators/qtemu/distinfo create mode 100644 emulators/qtemu/files/patch-helpwindow.cpp create mode 100644 emulators/qtemu/files/patch-main.cpp create mode 100644 emulators/qtemu/files/patch-qtemu.pro create mode 100644 emulators/qtemu/pkg-descr create mode 100644 emulators/qtemu/pkg-plist (limited to 'emulators') diff --git a/emulators/Makefile b/emulators/Makefile index 235976c2d13d..faa3216c4ad3 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -111,6 +111,7 @@ SUBDIR += qemu-devel SUBDIR += qemu-launcher SUBDIR += qmc2 + SUBDIR += qtemu SUBDIR += quasi88 SUBDIR += raine SUBDIR += rtc diff --git a/emulators/qtemu/Makefile b/emulators/qtemu/Makefile new file mode 100644 index 000000000000..d4e8bc7b0371 --- /dev/null +++ b/emulators/qtemu/Makefile @@ -0,0 +1,61 @@ +# New ports collection makefile for: qtemu +# Date created: 2007-03-20 +# Whom: Max Brazhnikov +# +# $FreeBSD$ +# + +PORTNAME= qtemu +PORTVERSION= 1.0.3 +CATEGORIES= emulators +MASTER_SITES= SF + +MAINTAINER= makc@issp.ac.ru +COMMENT= A Qt4 front-end to Qemu + +WRKSRC= ${WRKDIR}/${PORTNAME} + +USE_BZIP2= yes +USE_QT_VER= 4 +QT_COMPONENTS= gui xml uic moc qmake rcc +HAS_CONFIGURE= yes +CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} + +DESKTOP_ENTRIES="QtEmu" "QEMU frontend" "" \ + "qtemu" "" false + +.include + +.if !defined(WITHOUT_NLS) +#QT_COMPONENTS+= linguist +BUILD_DEPENDS+= ${LOCALBASE}/bin/lupdate-qt4:${PORTSDIR}/devel/qt4-linguist +QTI_LANG= cz de es ru tr +PLIST_SUB+= NLS="" +.else +PLIST_SUB+= NLS="@comment " +.endif + +do-configure: + (cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE}) + +post-configure: + @${REINPLACE_CMD} -e \ + 's|^CC .*|CC=${CC}|; \ + s|^CXX .*|CXX=${CXX}|; \ + s|^LINK .*|LINK=${CXX}|; \ + s|-pipe||; \ + s|^\(CFLAGS .*= \)|\1${CFLAGS}|; \ + s|^\(CXXFLAGS = \)|\1${CXXFLAGS}|' \ + ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/qtemu ${PREFIX}/bin/qtemu +.if !defined(WITHOUT_NLS) + ${MKDIR} ${DATADIR} + (cd ${WRKSRC}/translations/ && ${COPYTREE_SHARE} '*.qm' ${DATADIR}/translations) +.endif +.if !defined(NOPORTDOCS) + (cd ${WRKSRC}/help/ && ${COPYTREE_SHARE} \* ${DOCSDIR}) +.endif + +.include diff --git a/emulators/qtemu/distinfo b/emulators/qtemu/distinfo new file mode 100644 index 000000000000..fbb8f3533dd4 --- /dev/null +++ b/emulators/qtemu/distinfo @@ -0,0 +1,3 @@ +MD5 (qtemu-1.0.3.tar.bz2) = 44560abe5b1df47f8ff6050d5864f453 +SHA256 (qtemu-1.0.3.tar.bz2) = b6db89fc88aced4453d17c0e52033846de72f36da16e9ff6659afb3397c959df +SIZE (qtemu-1.0.3.tar.bz2) = 495051 diff --git a/emulators/qtemu/files/patch-helpwindow.cpp b/emulators/qtemu/files/patch-helpwindow.cpp new file mode 100644 index 000000000000..a35138145efb --- /dev/null +++ b/emulators/qtemu/files/patch-helpwindow.cpp @@ -0,0 +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 @@ + 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 @@ + 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; + diff --git a/emulators/qtemu/files/patch-main.cpp b/emulators/qtemu/files/patch-main.cpp new file mode 100644 index 000000000000..d887d5085a0b --- /dev/null +++ b/emulators/qtemu/files/patch-main.cpp @@ -0,0 +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 @@ + 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); + } diff --git a/emulators/qtemu/files/patch-qtemu.pro b/emulators/qtemu/files/patch-qtemu.pro new file mode 100644 index 000000000000..8f7aa525cabf --- /dev/null +++ b/emulators/qtemu/files/patch-qtemu.pro @@ -0,0 +1,19 @@ +--- ./qtemu.pro.orig Mon Mar 19 15:56:21 2007 ++++ ./qtemu.pro Tue Jun 12 13:17:03 2007 +@@ -21,10 +21,12 @@ + RC_FILE = qtemu.rc + } + TEMPLATE = app +-TRANSLATIONS = translations/template_qtemu.ts \ +- translations/qtemu_de.ts \ ++TRANSLATIONS = translations/qtemu_de.ts \ + translations/qtemu_tr.ts \ + translations/qtemu_ru.ts \ + translations/qtemu_cz.ts \ + translations/qtemu_es.ts +-CONFIG += debug_and_release ++CONFIG += release ++ ++system($$(LOCALBASE)/bin/lupdate-qt4 -verbose qtemu.pro) ++system($$(LOCALBASE)/bin/lrelease-qt4 -verbose qtemu.pro) +\ No newline at end of file diff --git a/emulators/qtemu/pkg-descr b/emulators/qtemu/pkg-descr new file mode 100644 index 000000000000..5d7db43feaee --- /dev/null +++ b/emulators/qtemu/pkg-descr @@ -0,0 +1,3 @@ +QtEmu is a graphical user interface for QEMU written in Qt4. + +WWW: http://qtemu.org/ diff --git a/emulators/qtemu/pkg-plist b/emulators/qtemu/pkg-plist new file mode 100644 index 000000000000..1c127a8f7f0d --- /dev/null +++ b/emulators/qtemu/pkg-plist @@ -0,0 +1,44 @@ +bin/qtemu +%%PORTDOCS%%%%DOCSDIR%%/config.png +%%PORTDOCS%%%%DOCSDIR%%/de/config.png +%%PORTDOCS%%%%DOCSDIR%%/de/main.htm +%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow.png +%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_1.png +%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_2.png +%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_3.png +%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_4.png +%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_5.png +%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_6.png +%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_7.png +%%PORTDOCS%%%%DOCSDIR%%/de/mainwindow_new_machine_8.png +%%PORTDOCS%%%%DOCSDIR%%/de/toolbar.png +%%PORTDOCS%%%%DOCSDIR%%/de/wizard_1.png +%%PORTDOCS%%%%DOCSDIR%%/de/wizard_1_1.png +%%PORTDOCS%%%%DOCSDIR%%/de/wizard_2.png +%%PORTDOCS%%%%DOCSDIR%%/de/wizard_2_1.png +%%PORTDOCS%%%%DOCSDIR%%/de/wizard_3.png +%%PORTDOCS%%%%DOCSDIR%%/main.htm +%%PORTDOCS%%%%DOCSDIR%%/mainwindow.png +%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_1.png +%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_2.png +%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_3.png +%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_4.png +%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_5.png +%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_6.png +%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_7.png +%%PORTDOCS%%%%DOCSDIR%%/mainwindow_new_machine_8.png +%%PORTDOCS%%%%DOCSDIR%%/toolbar.png +%%PORTDOCS%%%%DOCSDIR%%/wizard_1.png +%%PORTDOCS%%%%DOCSDIR%%/wizard_1_1.png +%%PORTDOCS%%%%DOCSDIR%%/wizard_2.png +%%PORTDOCS%%%%DOCSDIR%%/wizard_2_1.png +%%PORTDOCS%%%%DOCSDIR%%/wizard_3.png +%%NLS%%%%DATADIR%%/translations/qtemu_cz.qm +%%NLS%%%%DATADIR%%/translations/qtemu_de.qm +%%NLS%%%%DATADIR%%/translations/qtemu_es.qm +%%NLS%%%%DATADIR%%/translations/qtemu_ru.qm +%%NLS%%%%DATADIR%%/translations/qtemu_tr.qm +%%NLS%%@dirrm %%DATADIR%%/translations +%%NLS%%@dirrm share/qtemu +%%PORTDOCS%%@dirrm %%DOCSDIR%%/de +%%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit v1.2.3