1997-11-08 21:33:01 +01:00
|
|
|
# New ports collection makefile for: sim
|
|
|
|
# Date created: 7 November 1997
|
|
|
|
# Whom: jraynard
|
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1997-11-08 21:33:01 +01:00
|
|
|
#
|
|
|
|
|
2007-03-28 08:17:18 +02:00
|
|
|
PORTNAME= simh
|
2007-07-13 21:32:55 +02:00
|
|
|
PORTVERSION= 3.7.2
|
2007-07-18 13:30:26 +02:00
|
|
|
PORTREVISION= 1
|
1997-11-08 21:33:01 +01:00
|
|
|
CATEGORIES= emulators
|
2004-06-23 18:28:59 +02:00
|
|
|
MASTER_SITES= http://simh.trailing-edge.com/sources/
|
2007-07-13 21:32:55 +02:00
|
|
|
DISTNAME= ${PORTNAME}v37-2
|
1999-12-22 23:14:11 +01:00
|
|
|
|
2007-07-12 00:06:16 +02:00
|
|
|
MAINTAINER= trasz@FreeBSD.org
|
2006-01-26 10:32:57 +01:00
|
|
|
COMMENT= Emulates classic DEC, HP, GRI, IBM, Altair, SDS, Honeywell, and others
|
1997-11-08 21:33:01 +01:00
|
|
|
|
2002-01-27 18:39:30 +01:00
|
|
|
USE_ZIP= yes
|
2006-01-26 10:32:57 +01:00
|
|
|
EXTRACT_BEFORE_ARGS= -qoa
|
2003-02-08 02:31:12 +01:00
|
|
|
USE_GMAKE= yes
|
2006-01-26 10:32:57 +01:00
|
|
|
RESTRICTED= Non-commercial use only
|
2003-02-08 02:31:12 +01:00
|
|
|
MAKEFILE= makefile
|
1997-11-08 21:33:01 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2006-01-26 10:32:57 +01:00
|
|
|
OPTIONS= NETWORK "Enable Sim_Ether module (and ports libpcap)" on
|
|
|
|
|
2007-07-18 13:30:26 +02:00
|
|
|
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 vax vax780
|
2004-01-10 13:03:04 +01:00
|
|
|
|
2007-02-12 09:17:36 +01:00
|
|
|
PORTDOCS= 0readme_37.txt 0readme_ethernet.txt
|
2002-03-04 14:29:01 +01:00
|
|
|
|
2007-03-28 08:17:18 +02:00
|
|
|
PLIST_FILES= ${BIN_FILES:S/^/bin\//g} %%DATADIR%%/ka655x.bin bin/simh-eclipse
|
2006-01-27 10:02:09 +01:00
|
|
|
PLIST_DIRS= %%DATADIR%%
|
2006-01-26 10:32:57 +01:00
|
|
|
|
2006-06-18 14:19:36 +02:00
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
|
2006-01-26 10:32:57 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
# XXX How do we know that libpcap.a is really the correct >0.9.x version?!
|
|
|
|
.if defined (WITH_NETWORK)
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
MAKE_ENV= USE_NETWORK=1
|
|
|
|
.endif
|
2004-06-23 18:28:59 +02:00
|
|
|
|
2002-05-22 20:02:28 +02:00
|
|
|
pre-patch:
|
2002-01-27 18:39:30 +01:00
|
|
|
@${MKDIR} ${WRKSRC}/BIN
|
1997-11-08 21:33:01 +01:00
|
|
|
|
2007-04-09 19:48:43 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/VAX/vax_sysdev.c
|
|
|
|
|
1997-11-08 21:33:01 +01:00
|
|
|
do-install:
|
2002-03-04 14:29:01 +01:00
|
|
|
.for file in ${BIN_FILES}
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/BIN/${file} ${PREFIX}/bin
|
|
|
|
.endfor
|
2007-03-28 08:17:18 +02:00
|
|
|
# eclipse conflicts with java/eclipse, install it as simh-eclipse
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/BIN/eclipse ${PREFIX}/bin/simh-eclipse
|
2003-02-08 02:31:12 +01:00
|
|
|
|
2006-03-01 21:56:24 +01:00
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/VAX/ka655x.bin ${DATADIR}
|
2003-02-08 02:31:12 +01:00
|
|
|
|
1997-11-16 03:14:26 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-06-23 18:28:59 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-01-10 13:03:04 +01:00
|
|
|
@for i in ${PORTDOCS}; do\
|
2004-06-23 18:28:59 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/$$i ${DOCSDIR}; \
|
2003-02-08 02:31:12 +01:00
|
|
|
done
|
1997-11-16 03:14:26 +01:00
|
|
|
.endif
|
1997-11-08 21:33:01 +01:00
|
|
|
|
2003-02-08 02:31:12 +01:00
|
|
|
post-install:
|
2006-06-18 14:19:36 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-02-08 02:31:12 +01:00
|
|
|
|
2006-01-26 10:32:57 +01:00
|
|
|
.include <bsd.port.post.mk>
|