pkgsrc/emulators/simh/Makefile

45 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2003/03/29 12:40:51 jmmv Exp $
#
DISTNAME= simhv210-0b2
PKGNAME= simh-2.10.0b2
PKGREVISION= 2
WRKSRC= ${WRKDIR}
CATEGORIES= emulators
MASTER_SITES= http://simh.trailing-edge.com/sources/
EXTRACT_SUFX= .zip
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
xq_beta5${EXTRACT_SUFX}
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://simh.trailing-edge.com/
COMMENT= Bob Supnik's historical computer simulator
EXTRACT_CMD= unzip -aoq ${DOWNLOADED_DISTFILE}
.include "../../mk/bsd.prefs.mk"
.if (${MACHINE_ARCH} == "arm")
.if (${CFLAGS:M-O2} == "-O2")
CFLAGS:= ${CFLAGS:S/-O2//}
.endif
.endif
post-extract:
${MKDIR} ${WRKSRC}/BIN
${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile
${MV} ${WRKSRC}/AltairZ80/altairZ80_defs.h \
${WRKSRC}/AltairZ80/altairz80_defs.h
do-install:
(cd ${WRKSRC}/BIN && for BIN in *; do \
${INSTALL_PROGRAM} $$BIN ${PREFIX}/bin/simh-$$BIN; \
done)
${INSTALL_DATA_DIR} ${PREFIX}/share/simh
${INSTALL_DATA} ${WRKSRC}/VAX/ka655.bin ${PREFIX}/share/simh
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/simh
(cd ${WRKSRC} && for TXT in *.txt */*.txt; do \
${INSTALL_DATA} $$TXT ${PREFIX}/share/doc/simh; \
done)
.include "../../mk/bsd.pkg.mk"