# $OpenBSD: Makefile,v 1.74 2012/08/19 21:20:52 jasper Exp $ COMMENT= PDP, IBM 1401, Nova and other CPUs simulator DISTNAME= simhv39-0 PKGNAME= simh-3.9.0 REVISION= 0 CATEGORIES= emulators MASTER_SITES= ${HOMEPAGE}/sources/ EXTRACT_SUFX= .zip HOMEPAGE= http://simh.trailing-edge.com/ # MIT PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes WANTLIB= c m pcap pthread WRKDIST= ${WRKDIR} UNZIP= unzip -a -o CFLAGS+= -DPATH_KA655X_BIN=\"${PREFIX}/lib/simh/vax/ka655x.bin\" \ -DPATH_VMB_EXE=\"${PREFIX}/lib/simh/vax/vmb.exe\" USE_GMAKE= Yes MAKE_FILE= makefile MAKE_FLAGS= GCC="${CC}" USE_NETWORK=1 NO_REGRESS= Yes VMEM_WARNING= Yes pre-build: @mkdir -p ${WRKBUILD}/BIN do-install: ${INSTALL_DATA_DIR} ${PREFIX}/lib/simh/vax ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/simh @cd ${WRKBUILD}/BIN && for f in `echo *`; do \ ${INSTALL_PROGRAM} $${f} ${PREFIX}/bin/simh-$${f}; \ done; ${INSTALL_DATA} ${WRKDIST}/VAX/ka655x.bin ${PREFIX}/lib/simh/vax ${INSTALL_DATA} ${WRKDIST}/VAX/vmb.exe ${PREFIX}/lib/simh/vax ${INSTALL_DATA} ${WRKBUILD}/*.txt ${WRKBUILD}/*/*.txt \ ${PREFIX}/share/doc/simh .include