mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
b020e1344e
Fix name clash with gri and nova, that caused conflicts Fix compilation warnings PR: 222968 Submitted by: bob@eager.cx (maintainer) Approved by: olivier (mentor) Differential Revision: https://reviews.freebsd.org/D12651
65 lines
2.0 KiB
Makefile
65 lines
2.0 KiB
Makefile
# Created by: jraynard
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= simh
|
|
PORTVERSION= 3.9.0
|
|
PORTREVISION= 3
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= http://simh.trailing-edge.com/sources/:src \
|
|
http://www.ml1.org.uk/distfiles/:pdf \
|
|
http://www.ancientgeek.org.uk/distfiles/:pdf
|
|
DISTNAME= ${PORTNAME}v${PORTVERSION:R:S/.//}-${PORTVERSION:E}
|
|
DISTFILES= ${PORTNAME}v${PORTVERSION:R:S/.//}-${PORTVERSION:E}.zip:src \
|
|
${PORTNAME}_docpdf.zip:pdf
|
|
|
|
MAINTAINER= bob@eager.cx
|
|
COMMENT= Emulates classic DEC, HP, GRI, IBM, Altair, SDS, Honeywell, and others
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
BROKEN_powerpc64= fails to compile: cc1: error: unrecognized command line option "-Wno-logical-op-parentheses"
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
USES= gmake dos2unix zip
|
|
DOS2UNIX_GLOB= *.c *.h *.txt *.mak *.ini makefile
|
|
CFLAGS+= -Wno-format-extra-args -Wno-comment -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses -Wno-shift-negative-value
|
|
MAKE_ENV= GCC="${CC}" CFLAGS_O="${CFLAGS}" USE_NETWORK=1
|
|
MAKEFILE= makefile
|
|
|
|
SUB_FILES= pkg-message simh.1
|
|
|
|
READMES= 0readme_${PORTVERSION:R:S/.//}.txt 0readme_ethernet.txt
|
|
PORTDOCS= ${READMES} pdf/*
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
pre-patch:
|
|
@${MKDIR} ${WRKSRC}/BIN
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
'/shell ldconfig/s|^|#| ; \
|
|
/-O2/s| = | ?= |' ${WRKSRC}/makefile
|
|
@${REINPLACE_CMD} -e \
|
|
's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/VAX/vax_sysdev.c
|
|
|
|
post-build:
|
|
# eclipse, gri and nova conflict with other ports, prefix with simh-
|
|
@${MV} ${WRKSRC}/BIN/eclipse ${WRKSRC}/BIN/simh-eclipse
|
|
@${MV} ${WRKSRC}/BIN/gri ${WRKSRC}/BIN/simh-gri
|
|
@${MV} ${WRKSRC}/BIN/nova ${WRKSRC}/BIN/simh-nova
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/BIN/* ${STAGEDIR}${PREFIX}/bin
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/VAX/ka655x.bin ${STAGEDIR}${DATADIR}
|
|
${INSTALL_MAN} ${WRKDIR}/simh.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/pdf
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${READMES} ${STAGEDIR}${DOCSDIR})
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} pdf ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|