openbsd-ports/emulators/simh/Makefile
2002-11-28 17:02:12 +00:00

51 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.33 2002/11/28 17:02:12 fgsch Exp $
# $NetBSD: Makefile,v 1.2 1998/08/23 20:48:03 frueauf Exp $
COMMENT= "PDP, IBM 1401, Nova and other CPUs simulator"
DISTNAME= simh-2.10-1
CATEGORIES= emulators
MASTER_SITES= http://simh.trailing-edge.com/sources/
DISTFILES= simhv210-1.zip
HOMEPAGE= http://simh.trailing-edge.com/
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WRKDIST= ${WRKDIR}
UNZIP= unzip -a -o
COPTS= -DUSE_SOCKLEN_T
MAKE_FILE= makefile_ether
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
COPTS+= -O0
.endif
NO_REGRESS= Yes
SIMS= altair altairz80 eclipse gri h316 hp2100 i1401 i1620 \
ibm1130 nova pdp1 pdp10 pdp11 pdp15 pdp4 pdp7 pdp8 \
pdp9 s3 vax
VMEM_WARNING= Yes
pre-build:
@mkdir ${WRKBUILD}/BIN
do-install:
.for f in ${SIMS}
${INSTALL_PROGRAM} ${WRKBUILD}/BIN/${f} ${PREFIX}/bin/simh-${f}
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/lib/simh/vax
${INSTALL_DATA} ${WRKDIST}/VAX/ka655.bin ${PREFIX}/lib/simh/vax
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/simh
${INSTALL_DATA} ${WRKBUILD}/*.txt ${WRKBUILD}/*/*.txt \
${PREFIX}/share/doc/simh
.include <bsd.port.mk>