summaryrefslogtreecommitdiffstats
path: root/emulators/klh10/Makefile
blob: 31fde08d779a79b5ce219e99f9695d20515601fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Created by: kstailey
# $FreeBSD$

PORTNAME=	klh10
PORTVERSION=	2.0a
PORTREVISION=	1
CATEGORIES=	emulators
MASTER_SITES=	http://klh10.trailing-edge.com/
DISTFILES=	${DISTNAME}.tgz klh10-2.0a-aux.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Emulator for DEC PDP-10

ONLY_FOR_ARCHS=	i386

BUILD_WRKSRC=	${WRKSRC}/bld/fbx86
INSTALL_WRKSRC=	${BUILD_WRKSRC}

OPTIONS_DEFINE=	DOCS

# someday add support for base-kl and base-ks targets
MAKE_ENV=		KLH10_HOME="${DATADIR}"
ALL_TARGET=		base-ks-its

SUB_FILES=		pkg-message

DATADIR=		${PREFIX}/share/${KSITS_KLH10_DIR}
DOCSDIR=		${PREFIX}/share/doc/${KSITS_KLH10_DIR}

KSITS_KLH10_DIR=	klh10-ks-its
KSITS_DRIVER_DIR=	${PREFIX}/libexec/${KSITS_KLH10_DIR}

KSITS_NATIVE_PROGS=	kn10-ks \
			tapedd \
			udlconv \
			vdkfmt \
			wfconv \
			wxtest

KSITS_EM_DRIVERS=	dprpxx \
			dptm03

KSITS_EM_SDRIVERS=	dpimp

KSITS_EM_DAT=		@.ddt-u \
			@.its-647kn-u \
			@.nsalv-260-u \
			itsbin.647kn-u \
			klh10-kn.ini

KSITS_PUBADM=		hosts.its \
			its.ipfw \
			rc.firewall-its \
			router.notes

KSITS_PUBDOC=		bootload.files \
			distrib.its \
			dumpsys.help

KSITS_DOCS=		Intro.txt \
			backgrnd.txt \
			cmdref.txt \
			cmdsum.txt \
			coding.txt \
			dfkfb.txt \
			dvhost.txt \
			history.txt \
			install.txt \
			kldiff.txt \
			klt10.txt \
			klt20.txt \
			ksits.txt \
			kst10.txt \
			kst20.txt \
			news.txt \
			usage.txt \
			utils.txt \
			vtape.txt

post-patch:
	@${FIND} ${WRKSRC} -name "*.c" | ${XARGS} ${REINPLACE_CMD} -e \
		's|logf |log_f |g ; \
		 s|logf,|log_f,|g ; \
		 s|logf;|log_f;|g ; \
		 s|logf)|log_f)|g'

do-install:
.for i in ${KSITS_NATIVE_PROGS}
	cd ${INSTALL_WRKSRC} && ${INSTALL_PROGRAM} ${i} \
		${STAGEDIR}${PREFIX}/bin
.endfor
	@ ${MKDIR} ${STAGEDIR}${KSITS_DRIVER_DIR}
.for i in ${KSITS_EM_DRIVERS} ${KSITS_EM_SDRIVERS}
	cd ${INSTALL_WRKSRC} && ${INSTALL_PROGRAM} ${i} \
		${STAGEDIR}${KSITS_DRIVER_DIR}
.endfor
	@ ${MKDIR} ${STAGEDIR}${DATADIR}
.for i in ${KSITS_EM_DAT}
	cd ${WRKSRC}/run/ksits && ${INSTALL_DATA} ${i} \
		${STAGEDIR}${DATADIR}
.endfor
	@ ${MKDIR} ${STAGEDIR}${DATADIR}/flushed
	@ ${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${FILESDIR} && ${INSTALL_DATA} PDPs \
		${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC}/run/ksits && ${INSTALL_DATA} README \
		${STAGEDIR}${DOCSDIR}
.for i in ${KSITS_DOCS}
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${i} \
		${STAGEDIR}${DOCSDIR}
.endfor
	@ ${MKDIR} ${STAGEDIR}${DOCSDIR}/pubits/adm
.for i in ${KSITS_PUBADM}
	cd ${WRKSRC}/run/ksits/pubits/adm && ${INSTALL_DATA} ${i} \
		${STAGEDIR}${DOCSDIR}/pubits/adm
.endfor
	@ ${MKDIR} ${STAGEDIR}${DOCSDIR}/pubits/doc
.for i in ${KSITS_PUBDOC}
	cd ${WRKSRC}/run/ksits/pubits/doc && ${INSTALL_DATA} ${i} \
		${STAGEDIR}${DOCSDIR}/pubits/doc
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud