48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.76 2013/03/11 11:06:04 espie Exp $
|
|
|
|
COMMENT= PDP, IBM 1401, Nova and other CPUs simulator
|
|
|
|
DISTNAME= simhv39-0
|
|
PKGNAME= simh-3.9.0
|
|
REVISION= 1
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= ${HOMEPAGE}/sources/
|
|
EXTRACT_SUFX= .zip
|
|
|
|
HOMEPAGE= http://simh.trailing-edge.com/
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM= 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_TEST= 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 <bsd.port.mk>
|