View | Details | Raw Unified | Return to bug 111061
Collapse All | Expand All

(-)/home/trasz/simh/Makefile (+4 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	simh
8
PORTNAME=	simh
9
PORTVERSION=	3.7
9
PORTVERSION=	3.7
10
PORTREVISION=	1
10
CATEGORIES=	emulators
11
CATEGORIES=	emulators
11
MASTER_SITES=	http://simh.trailing-edge.com/sources/
12
MASTER_SITES=	http://simh.trailing-edge.com/sources/
12
DISTNAME=	${PORTNAME}v37-0
13
DISTNAME=	${PORTNAME}v37-0
Lines 46-51 Link Here
46
47
47
pre-patch:
48
pre-patch:
48
	@${MKDIR} ${WRKSRC}/BIN
49
	@${MKDIR} ${WRKSRC}/BIN
50
51
post-patch:
52
	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/VAX/vax_sysdev.c
49
53
50
do-install:
54
do-install:
51
.for file in ${BIN_FILES}
55
.for file in ${BIN_FILES}
(-)/home/trasz/simh/files/patch-VAX-vax_sysdev.c (+19 lines)
Line 0 Link Here
1
--- VAX/vax_sysdev.c.orig	Sat Mar 24 09:13:42 2007
2
+++ VAX/vax_sysdev.c	Sat Mar 24 09:17:45 2007
3
@@ -1524,8 +1524,15 @@
4
     if (sim_log) fprintf (sim_log, 
5
         "Loading boot code from ka655x.bin\n");
6
     r = load_cmd (0, "-R ka655x.bin");
7
-    if (r != SCPE_OK) return r;
8
+    if (r != SCPE_OK) {
9
+        printf ("Loading boot code from %%PREFIX%%/share/simh/ka655x.bin\n");
10
+        if (sim_log) fprintf (sim_log, 
11
+            "Loading boot code from %%PREFIX%%/share/simh/ka655x.bin\n");
12
+        r = load_cmd (0, "-R %%PREFIX%%/share/simh/ka655x.bin");
13
+        if (r != SCPE_OK)
14
+    	    return r;
15
     }
16
+}
17
 return SCPE_OK;
18
 }
19
 

Return to bug 111061