pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/rpcemu Add emulators/rpcemu
details: https://anonhg.NetBSD.org/pkgsrc/rev/b3d9314b6750
branches: trunk
changeset: 441028:b3d9314b6750
user: js <js%pkgsrc.org@localhost>
date: Sat Oct 24 16:33:34 2020 +0000
description:
Add emulators/rpcemu
RPCEmu is an emulator of Acorn's Risc PC and A7000 machines. It is a work in
progress and should be considered of Alpha Quality.
The latest version is available from, this also has links to compilation
instructions for various platforms.
http://www.marutan.net/rpcemu/
The User Manual is available from
http://www.marutan.net/rpcemu/manual/
RPCEmu requires a RISC OS ROM image to work; check here for details:
http://www.marutan.net/rpcemu/manual/romimage.html
RPCEmu is licensed under the GPL, see COPYING for more details.
diffstat:
emulators/rpcemu/DESCR | 17 ++++++++++
emulators/rpcemu/Makefile | 26 ++++++++++++++++
emulators/rpcemu/PLIST | 2 +
emulators/rpcemu/distinfo | 8 +++++
emulators/rpcemu/patches/patch-src-qt5-rpc-qt5.cpp | 35 ++++++++++++++++++++++
emulators/rpcemu/patches/patch-src-qt5-rpcemu.pro | 32 ++++++++++++++++++++
6 files changed, 120 insertions(+), 0 deletions(-)
diffs (144 lines):
diff -r a6103cf3fe6b -r b3d9314b6750 emulators/rpcemu/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/rpcemu/DESCR Sat Oct 24 16:33:34 2020 +0000
@@ -0,0 +1,17 @@
+RPCEmu is an emulator of Acorn's Risc PC and A7000 machines. It is a work in
+progress and should be considered of Alpha Quality.
+
+The latest version is available from, this also has links to compilation
+instructions for various platforms.
+
+ http://www.marutan.net/rpcemu/
+
+The User Manual is available from
+
+ http://www.marutan.net/rpcemu/manual/
+
+RPCEmu requires a RISC OS ROM image to work; check here for details:
+
+ http://www.marutan.net/rpcemu/manual/romimage.html
+
+RPCEmu is licensed under the GPL, see COPYING for more details.
diff -r a6103cf3fe6b -r b3d9314b6750 emulators/rpcemu/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/rpcemu/Makefile Sat Oct 24 16:33:34 2020 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2020/10/24 16:33:34 js Exp $
+
+DISTNAME= rpcemu-0.9.3
+CATEGORIES= emulators
+MASTER_SITES= http://www.marutan.net/rpcemu/cgi/download.php?sFName=${PKGVERSION_NOREV}/
+
+MAINTAINER= js%pkgsrc.org@localhost
+HOMEPAGE= https://www.marutan.net/rpcemu/
+COMMENT= Emulator of classic Acorn computer systems
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES= c c++
+TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools
+
+INSTALLATION_DIRS+= bin
+
+do-configure:
+ cd ${WRKSRC} && ${QTDIR}/bin/qmake src/qt5/rpcemu.pro
+
+do-install:
+ ${INSTALL} -m 0755 ${WRKSRC}/rpcemu-interpreter \
+ ${DESTDIR}${PREFIX}/bin/rpcemu-interpreter
+
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.include "../../x11/qt5-qtmultimedia/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a6103cf3fe6b -r b3d9314b6750 emulators/rpcemu/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/rpcemu/PLIST Sat Oct 24 16:33:34 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/10/24 16:33:34 js Exp $
+bin/rpcemu-interpreter
diff -r a6103cf3fe6b -r b3d9314b6750 emulators/rpcemu/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/rpcemu/distinfo Sat Oct 24 16:33:34 2020 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2020/10/24 16:33:34 js Exp $
+
+SHA1 (rpcemu-0.9.3.tar.gz) = bc72bc7defa741459f2e1797f8d7a326c5513d64
+RMD160 (rpcemu-0.9.3.tar.gz) = 0e2b74257a0f9bbde1d696e891729ee0900ac27a
+SHA512 (rpcemu-0.9.3.tar.gz) = e785f0e911cf96a33a780289f0da69ef0e0d33d3383746825c205653e3aba34d255297cf3bf17c1eb3a5f7cd4c7f5550b7f6cbb10625b9e3d5618fa96c8732b1
+Size (rpcemu-0.9.3.tar.gz) = 384962 bytes
+SHA1 (patch-src-qt5-rpc-qt5.cpp) = 1971048028c3cb17d86ca454e8efdaff305a6e08
+SHA1 (patch-src-qt5-rpcemu.pro) = f575887375cef917a7efd6730a74beb07aeb271f
diff -r a6103cf3fe6b -r b3d9314b6750 emulators/rpcemu/patches/patch-src-qt5-rpc-qt5.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/rpcemu/patches/patch-src-qt5-rpc-qt5.cpp Sat Oct 24 16:33:34 2020 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-src-qt5-rpc-qt5.cpp,v 1.1 2020/10/24 16:33:34 js Exp $
+
+The qmake .pro only includes certain files when on Linux or Windows, but the
+code always assumes it's there, resulting in linker errors.
+
+--- src/qt5/rpc-qt5.cpp.orig 2020-05-06 19:19:23.000000000 +0000
++++ src/qt5/rpc-qt5.cpp
+@@ -554,6 +554,7 @@ Emulator::mainemuloop()
+ inscount = 0;
+ }
+
++#ifdef CONFIG_SLIRP
+ // If NAT networking, poll, but not too often
+ if (config.network_type == NetworkType_NAT) {
+ network_nat_rate++;
+@@ -561,6 +562,7 @@ Emulator::mainemuloop()
+ network_nat_poll();
+ }
+ }
++#endif
+ }
+
+ // Perform clean-up and finalising actions
+@@ -924,9 +926,11 @@ Emulator::network_config_updated(Network
+ QByteArray ba_ipaddress = ipaddress.toUtf8();
+ const char *ip_address = ba_ipaddress.constData();
+
++#ifdef CONFIG_NETWORK
+ if (network_config_changed(network_type, bridge_name, ip_address)) {
+ this->reset();
+ }
++#endif
+ }
+
+ /**
diff -r a6103cf3fe6b -r b3d9314b6750 emulators/rpcemu/patches/patch-src-qt5-rpcemu.pro
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/rpcemu/patches/patch-src-qt5-rpcemu.pro Sat Oct 24 16:33:34 2020 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-src-qt5-rpcemu.pro,v 1.1 2020/10/24 16:33:34 js Exp $
+
+Add a define to figure out network-related files are compiled.
+
+Disable debug mode to avoid error about QtWidgets_debug missing.
+
+--- src/qt5/rpcemu.pro.orig 2020-05-06 19:19:23.000000000 +0000
++++ src/qt5/rpcemu.pro
+@@ -1,6 +1,6 @@
+ # http://doc.qt.io/qt-5/qmake-tutorial.html
+
+-CONFIG += debug_and_release
++CONFIG += release
+
+
+ QT += core widgets gui multimedia
+@@ -125,6 +125,7 @@ win32 {
+ keyboard_win.c
+ HEADERS += ../network.h \
+ network_dialog.h
++ DEFINES += CONFIG_NETWORK
+
+ RC_ICONS = ../win/rpcemu.ico
+
+@@ -139,6 +140,7 @@ linux {
+ network_dialog.cpp
+ HEADERS += ../network.h \
+ network_dialog.h
++ DEFINES += CONFIG_NETWORK
+ }
+
+ unix {
Home |
Main Index |
Thread Index |
Old Index