aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/simh
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-02-01 05:46:19 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-02-01 05:46:19 +0800
commit97bdce7188fc794c8e6a94a55f456fe82ce7e1b2 (patch)
tree5ccb0885441ffcecca4f8b82840bb5dfd1675c30 /emulators/simh
parent1fde59a17029a540441131f1aa6d7317ff0eea1e (diff)
downloadfreebsd-ports-gnome-97bdce7188fc794c8e6a94a55f456fe82ce7e1b2.tar.gz
freebsd-ports-gnome-97bdce7188fc794c8e6a94a55f456fe82ce7e1b2.tar.zst
freebsd-ports-gnome-97bdce7188fc794c8e6a94a55f456fe82ce7e1b2.zip
- Switch to options helpers
- Simplift plist handling
Diffstat (limited to 'emulators/simh')
-rw-r--r--emulators/simh/Makefile17
-rw-r--r--emulators/simh/pkg-plist29
2 files changed, 36 insertions, 10 deletions
diff --git a/emulators/simh/Makefile b/emulators/simh/Makefile
index fb22cb03877f..e44b774a3157 100644
--- a/emulators/simh/Makefile
+++ b/emulators/simh/Makefile
@@ -19,12 +19,7 @@ MAKEFILE= makefile
SUB_FILES= pkg-message
-BIN_FILES= altair altairz80 gri h316 hp2100 i1401 i1620 i7094 ibm1130 \
- id16 id32 lgp nova pdp1 pdp10 pdp11 pdp15 pdp4 pdp7 pdp8 pdp9 \
- s3 sds swtp6800mp-a swtp6800mp-a2 vax vax780
-
PORTDOCS= 0readme_${PORTVERSION:R:S/.//}.txt 0readme_ethernet.txt
-PLIST_FILES= ${BIN_FILES:S/^/bin\//g} bin/simh-eclipse %%DATADIR%%/ka655x.bin
OPTIONS_DEFINE= DOCS
@@ -38,14 +33,16 @@ post-patch:
@${REINPLACE_CMD} -e \
's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/VAX/vax_sysdev.c
-do-install:
- (cd ${WRKSRC}/BIN && ${INSTALL_PROGRAM} ${BIN_FILES} \
- ${STAGEDIR}${PREFIX}/bin)
+post-build:
# eclipse conflicts with java/eclipse, install it as simh-eclipse
- ${INSTALL_PROGRAM} ${WRKSRC}/BIN/eclipse \
- ${STAGEDIR}${PREFIX}/bin/simh-eclipse
+ @${MV} ${WRKSRC}/BIN/eclipse ${WRKSRC}/BIN/simh-eclipse
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/BIN/* ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/VAX/ka655x.bin ${STAGEDIR}${DATADIR}
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
diff --git a/emulators/simh/pkg-plist b/emulators/simh/pkg-plist
new file mode 100644
index 000000000000..2ca5c0e0b15c
--- /dev/null
+++ b/emulators/simh/pkg-plist
@@ -0,0 +1,29 @@
+bin/altair
+bin/altairz80
+bin/gri
+bin/h316
+bin/hp2100
+bin/i1401
+bin/i1620
+bin/i7094
+bin/ibm1130
+bin/id16
+bin/id32
+bin/lgp
+bin/nova
+bin/pdp1
+bin/pdp10
+bin/pdp11
+bin/pdp15
+bin/pdp4
+bin/pdp7
+bin/pdp8
+bin/pdp9
+bin/s3
+bin/sds
+bin/simh-eclipse
+bin/swtp6800mp-a
+bin/swtp6800mp-a2
+bin/vax
+bin/vax780
+%%DATADIR%%/ka655x.bin