diff options
-rw-r--r-- | emulators/simh/Makefile | 4 | ||||
-rw-r--r-- | emulators/simh/files/patch-VAX-vax_sysdev.c | 19 |
2 files changed, 23 insertions, 0 deletions
diff --git a/emulators/simh/Makefile b/emulators/simh/Makefile index 5fab8852e116..31d541e09941 100644 --- a/emulators/simh/Makefile +++ b/emulators/simh/Makefile @@ -7,6 +7,7 @@ PORTNAME= simh PORTVERSION= 3.7 +PORTREVISION= 1 CATEGORIES= emulators MASTER_SITES= http://simh.trailing-edge.com/sources/ DISTNAME= ${PORTNAME}v37-0 @@ -47,6 +48,9 @@ MAKE_ENV= USE_NETWORK=1 pre-patch: @${MKDIR} ${WRKSRC}/BIN +post-patch: + ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/VAX/vax_sysdev.c + do-install: .for file in ${BIN_FILES} ${INSTALL_PROGRAM} ${WRKDIR}/BIN/${file} ${PREFIX}/bin diff --git a/emulators/simh/files/patch-VAX-vax_sysdev.c b/emulators/simh/files/patch-VAX-vax_sysdev.c new file mode 100644 index 000000000000..f9821dc3d69a --- /dev/null +++ b/emulators/simh/files/patch-VAX-vax_sysdev.c @@ -0,0 +1,19 @@ +--- VAX/vax_sysdev.c.orig Sat Mar 24 09:13:42 2007 ++++ VAX/vax_sysdev.c Sat Mar 24 09:17:45 2007 +@@ -1524,8 +1524,15 @@ + if (sim_log) fprintf (sim_log, + "Loading boot code from ka655x.bin\n"); + r = load_cmd (0, "-R ka655x.bin"); +- if (r != SCPE_OK) return r; ++ if (r != SCPE_OK) { ++ printf ("Loading boot code from %%PREFIX%%/share/simh/ka655x.bin\n"); ++ if (sim_log) fprintf (sim_log, ++ "Loading boot code from %%PREFIX%%/share/simh/ka655x.bin\n"); ++ r = load_cmd (0, "-R %%PREFIX%%/share/simh/ka655x.bin"); ++ if (r != SCPE_OK) ++ return r; + } ++} + return SCPE_OK; + } + |