aboutsummaryrefslogtreecommitdiff
path: root/emulators/simh/Makefile
blob: 3c43f5c6a6d6d740335b6349c79dff885069dfc3 (plain) (blame)
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
# New ports collection makefile for:    sim
# Date created:         7 November 1997
# Whom:			jraynard
#
# $FreeBSD$
#

PORTNAME=	sim
PORTVERSION=	3.0.2
PORTREVISION=	1
CATEGORIES=	emulators
MASTER_SITES=	http://simh.trailing-edge.com/sources/ \
		${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=jedgar
DISTNAME=	${PORTNAME}hv30-2

MAINTAINER=	jedgar@FreeBSD.org
COMMENT=	PDP-8, PDP-11, PDP-1, other 18b PDP, Nova, and IBM 1401 simulators

USE_ZIP=	yes
USE_GMAKE=	yes
RESTRICTED=	"Non-commercial use only"
MAKEFILE=	makefile
NO_WRKSUBDIR=	yes

SHELL=${SH}

BIN_FILES=	pdp1 pdp4 pdp7 pdp8 pdp9 \
		pdp15 pdp11 pdp10 vax nova \
		eclipse h316 hp2100 i1401 \
		i1620 s3 altair altairz80 \
		gri ibm1130 id16 id32 sds

PORTDOCS=	0readme_30.txt simh_doc.txt simh_swre.txt \
		0readme_ethernet.txt simh_faq.txt

pre-patch:
	@${MKDIR} ${WRKSRC}/BIN
	@for i in ${WRKSRC}/makefile `${FIND} ${WRKSRC} -name "*.[hc]"`; do \
		${CAT} $$i | ${TR} -d '\r' > $$i.new; \
		${MV} $$i.new $$i; \
	done

do-install:
.for file in ${BIN_FILES}
	${INSTALL_PROGRAM} ${WRKDIR}/BIN/${file} ${PREFIX}/bin
.endfor

	@${MKDIR} ${PREFIX}/share/sim
	${INSTALL_DATA} ${WRKDIR}/VAX/ka655.bin ${PREFIX}/share/sim

.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/sim
	@for i in ${PORTDOCS}; do\
		${INSTALL_DATA} ${WRKDIR}/$$i ${PREFIX}/share/doc/sim; \
	done
.endif

post-install:
	@${CAT} pkg-message

.include <bsd.port.mk>