1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/emulators/simh/Makefile
Mathieu Arnold 02e619a5d8 - Convert to dos2unix.mk
- While at it convert to gmake.mk ports that still USE_GMAKE.
2013-11-19 23:08:44 +00:00

60 lines
1.6 KiB
Makefile

# Created by: jraynard
# $FreeBSD$
PORTNAME= simh
PORTVERSION= 3.9.0
CATEGORIES= emulators
MASTER_SITES= http://simh.trailing-edge.com/sources/
DISTNAME= ${PORTNAME}v${PORTVERSION:R:S/.//}-${PORTVERSION:E}
MAINTAINER= ports@FreeBSD.org
COMMENT= Emulates classic DEC, HP, GRI, IBM, Altair, SDS, Honeywell, and others
NO_WRKSUBDIR= yes
USES= gmake dos2unix
USE_ZIP= yes
DOS2UNIX_FILES= VAX/vax_sysdev.c
MAKE_ENV= GCC="${CC}" CFLAGS_O="${CFLAGS}" USE_NETWORK=1
MAKEFILE= makefile
SUB_FILES= pkg-message
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 swtp6800mp-a swtp6800mp-a2 vax vax780
PORTDOCS= 0readme_${PORTVERSION:R:S/.//}.txt 0readme_ethernet.txt
PLIST_FILES= ${BIN_FILES:S/^/bin\//g} bin/simh-eclipse %%DATADIR%%/ka655x.bin
PLIST_DIRS= %%DATADIR%%
NO_STAGE= yes
pre-patch:
@${MKDIR} ${WRKSRC}/BIN
post-patch:
@${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
do-install:
.for file in ${BIN_FILES}
${INSTALL_PROGRAM} ${WRKDIR}/BIN/${file} ${PREFIX}/bin
.endfor
# eclipse conflicts with java/eclipse, install it as simh-eclipse
${INSTALL_PROGRAM} ${WRKDIR}/BIN/eclipse ${PREFIX}/bin/simh-eclipse
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/VAX/ka655x.bin ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKDIR}/${file} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>