openbsd-ports/emulators/simh/Makefile
2002-03-21 20:46:23 +00:00

41 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.17 2002/03/21 20:46:26 espie 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.9.2
CATEGORIES= emulators
NEED_VERSION= 1.515
MASTER_SITES= ftp://ftp.openbsd.ru/pub/PDP-11/Emulators/SIMH/2.9.2/ \
http://simh.trailing-edge.com/sources/
DISTFILES= simhv29.zip
HOMEPAGE= http://simh.trailing-edge.com/
MAINTAINER= Oleg Safiullin <form@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WRKDIST= ${WRKDIR}
SIMS= altair altairz80 eclipse h316 hp2100 i1401 nova pdp1 \
pdp10 pdp11 pdp15 pdp4 pdp7 pdp8 pdp9 s3
post-extract:
@cd ${WRKDIST} && mkdir BIN && \
find . -type f -exec \
sh -c 'tr -d \\015 < {} > {}.TMP && mv -f {}.TMP {}' \;
do-install:
.for f in ${SIMS}
${INSTALL_PROGRAM} ${WRKBUILD}/BIN/${f} ${PREFIX}/bin/simh-${f}
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/simh
${INSTALL_DATA} ${WRKBUILD}/*.txt ${WRKBUILD}/*/*.txt \
${PREFIX}/share/doc/simh
.include <bsd.port.mk>