2013-09-20 18:43:52 +02:00
|
|
|
# Created by: 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
|
2012-05-23 04:01:33 +02:00
|
|
|
PORTVERSION= 3.9.0
|
2017-01-03 15:00:47 +01: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/
|
2012-05-23 04:01:33 +02:00
|
|
|
DISTNAME= ${PORTNAME}v${PORTVERSION:R:S/.//}-${PORTVERSION:E}
|
1999-12-22 23:14:11 +01:00
|
|
|
|
2016-04-24 11:29:54 +02:00
|
|
|
MAINTAINER= bob@eager.cx
|
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
|
|
|
|
2017-01-03 15:00:47 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
|
2012-05-23 04:01:33 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2014-03-07 17:55:01 +01:00
|
|
|
USES= gmake dos2unix zip
|
2017-01-03 15:00:47 +01:00
|
|
|
CFLAGS+= -Wno-format-extra-args -Wno-comment -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses
|
2012-05-23 04:01:33 +02:00
|
|
|
MAKE_ENV= GCC="${CC}" CFLAGS_O="${CFLAGS}" USE_NETWORK=1
|
2003-02-08 02:31:12 +01:00
|
|
|
MAKEFILE= makefile
|
2012-05-23 04:01:33 +02:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
1997-11-08 21:33:01 +01:00
|
|
|
|
2012-05-23 04:01:33 +02:00
|
|
|
PORTDOCS= 0readme_${PORTVERSION:R:S/.//}.txt 0readme_ethernet.txt
|
2006-01-26 10:32:57 +01:00
|
|
|
|
2014-04-10 10:29:18 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
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:
|
2012-05-23 04:01:33 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/shell ldconfig/s|^|#| ; \
|
|
|
|
/-O2/s| = | ?= |' ${WRKSRC}/makefile
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/VAX/vax_sysdev.c
|
2007-04-09 19:48:43 +02:00
|
|
|
|
2016-01-31 22:46:19 +01:00
|
|
|
post-build:
|
2007-03-28 08:17:18 +02:00
|
|
|
# eclipse conflicts with java/eclipse, install it as simh-eclipse
|
2016-01-31 22:46:19 +01:00
|
|
|
@${MV} ${WRKSRC}/BIN/eclipse ${WRKSRC}/BIN/simh-eclipse
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/BIN/* ${STAGEDIR}${PREFIX}/bin
|
2014-04-10 10:29:18 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
2015-11-05 13:36:25 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/VAX/ka655x.bin ${STAGEDIR}${DATADIR}
|
2016-01-31 22:46:19 +01:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
2014-04-10 10:29:18 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2015-11-05 13:36:25 +01:00
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
2003-02-08 02:31:12 +01:00
|
|
|
|
2012-05-23 04:01:33 +02:00
|
|
|
.include <bsd.port.mk>
|