2013-09-20 16:43:52 +00:00
|
|
|
# Created by: jraynard
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1997-11-08 20:33:01 +00:00
|
|
|
|
2007-03-28 06:17:18 +00:00
|
|
|
PORTNAME= simh
|
2012-05-23 02:01:33 +00:00
|
|
|
PORTVERSION= 3.9.0
|
1997-11-08 20:33:01 +00:00
|
|
|
CATEGORIES= emulators
|
2004-06-23 16:28:59 +00:00
|
|
|
MASTER_SITES= http://simh.trailing-edge.com/sources/
|
2012-05-23 02:01:33 +00:00
|
|
|
DISTNAME= ${PORTNAME}v${PORTVERSION:R:S/.//}-${PORTVERSION:E}
|
1999-12-22 22:14:11 +00:00
|
|
|
|
2010-10-25 20:09:06 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-01-26 09:32:57 +00:00
|
|
|
COMMENT= Emulates classic DEC, HP, GRI, IBM, Altair, SDS, Honeywell, and others
|
1997-11-08 20:33:01 +00:00
|
|
|
|
2012-05-23 02:01:33 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2014-03-07 16:55:01 +00:00
|
|
|
USES= gmake dos2unix zip
|
2013-11-19 23:08:44 +00:00
|
|
|
DOS2UNIX_FILES= VAX/vax_sysdev.c
|
2012-05-23 02:01:33 +00:00
|
|
|
MAKE_ENV= GCC="${CC}" CFLAGS_O="${CFLAGS}" USE_NETWORK=1
|
2003-02-08 01:31:12 +00:00
|
|
|
MAKEFILE= makefile
|
2012-05-23 02:01:33 +00:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
1997-11-08 20:33:01 +00:00
|
|
|
|
2007-07-18 11:30:26 +00:00
|
|
|
BIN_FILES= altair altairz80 gri h316 hp2100 i1401 i1620 i7094 ibm1130 \
|
|
|
|
id16 id32 lgp nova pdp1 pdp10 pdp11 pdp15 pdp4 pdp7 pdp8 pdp9 \
|
2012-05-23 02:01:33 +00:00
|
|
|
s3 sds swtp6800mp-a swtp6800mp-a2 vax vax780
|
2002-03-04 13:29:01 +00:00
|
|
|
|
2012-05-23 02:01:33 +00:00
|
|
|
PORTDOCS= 0readme_${PORTVERSION:R:S/.//}.txt 0readme_ethernet.txt
|
|
|
|
PLIST_FILES= ${BIN_FILES:S/^/bin\//g} bin/simh-eclipse %%DATADIR%%/ka655x.bin
|
2006-01-26 09:32:57 +00:00
|
|
|
|
2014-04-10 08:29:18 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2002-05-22 18:02:28 +00:00
|
|
|
pre-patch:
|
2002-01-27 17:39:30 +00:00
|
|
|
@${MKDIR} ${WRKSRC}/BIN
|
1997-11-08 20:33:01 +00:00
|
|
|
|
2007-04-09 17:48:43 +00:00
|
|
|
post-patch:
|
2012-05-23 02:01:33 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/shell ldconfig/s|^|#| ; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS}| ; \
|
|
|
|
/-O2/s| = | ?= |' ${WRKSRC}/makefile
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/VAX/vax_sysdev.c
|
2007-04-09 17:48:43 +00:00
|
|
|
|
1997-11-08 20:33:01 +00:00
|
|
|
do-install:
|
2014-04-10 08:29:18 +00:00
|
|
|
(cd ${WRKDIR}/BIN && ${INSTALL_PROGRAM} ${BIN_FILES} \
|
|
|
|
${STAGEDIR}${PREFIX}/bin)
|
2007-03-28 06:17:18 +00:00
|
|
|
# eclipse conflicts with java/eclipse, install it as simh-eclipse
|
2014-04-10 08:29:18 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/BIN/eclipse \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/simh-eclipse
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/VAX/ka655x.bin ${STAGEDIR}${DATADIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
(cd ${WRKDIR} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
2003-02-08 01:31:12 +00:00
|
|
|
|
2012-05-23 02:01:33 +00:00
|
|
|
.include <bsd.port.mk>
|