summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-04-09 17:48:43 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-04-09 17:48:43 +0000
commit2606c0102d0a9c6756c199ba7084e70e249aaedc (patch)
tree9df9e76d38fc451fcb816c8d979082f81215207c
parentSimple C library for partitioned convolution. (diff)
- Fix firmware directory
PR: 111061 Submitted by: trasz (maintainer)
Notes
Notes: svn path=/head/; revision=189589
-rw-r--r--emulators/simh/Makefile4
-rw-r--r--emulators/simh/files/patch-VAX-vax_sysdev.c19
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;
+ }
+