Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # $OpenBSD: Makefile,v 1.78 2017/05/13 20:11:24 espie Exp $
  2. COMMENT= PDP, IBM 1401, Nova and other CPUs simulator
  3. DISTNAME= simhv39-0
  4. PKGNAME= simh-3.9.0
  5. REVISION= 1
  6. CATEGORIES= emulators
  7. MASTER_SITES= ${HOMEPAGE}/sources/
  8. EXTRACT_SUFX= .zip
  9. HOMEPAGE= http://simh.trailing-edge.com/
  10. # MIT
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB= c m pcap pthread
  13. WRKDIST= ${WRKDIR}
  14. UNZIP= unzip -a -o
  15. CFLAGS+= -DPATH_KA655X_BIN=\"${PREFIX}/lib/simh/vax/ka655x.bin\" \
  16. -DPATH_VMB_EXE=\"${PREFIX}/lib/simh/vax/vmb.exe\"
  17. USE_GMAKE= Yes
  18. MAKE_FILE= makefile
  19. MAKE_FLAGS= GCC="${CC}" USE_NETWORK=1
  20. # makefile magic detects clang does lto, but we don't have the linker
  21. MAKE_FLAGS += NO_LTO=1
  22. NO_TEST= Yes
  23. pre-build:
  24. @mkdir -p ${WRKBUILD}/BIN
  25. do-install:
  26. ${INSTALL_DATA_DIR} ${PREFIX}/lib/simh/vax
  27. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/simh
  28. @cd ${WRKBUILD}/BIN && for f in `echo *`; do \
  29. ${INSTALL_PROGRAM} $${f} ${PREFIX}/bin/simh-$${f}; \
  30. done;
  31. ${INSTALL_DATA} ${WRKDIST}/VAX/ka655x.bin ${PREFIX}/lib/simh/vax
  32. ${INSTALL_DATA} ${WRKDIST}/VAX/vmb.exe ${PREFIX}/lib/simh/vax
  33. ${INSTALL_DATA} ${WRKBUILD}/*.txt ${WRKBUILD}/*/*.txt \
  34. ${PREFIX}/share/doc/simh
  35. .include <bsd.port.mk>