pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/open-simh Add emulators/open-simh.
details: https://anonhg.NetBSD.org/pkgsrc/rev/f23f2b7361fb
branches: trunk
changeset: 380412:f23f2b7361fb
user: rhialto <rhialto%pkgsrc.org@localhost>
date: Mon Jun 06 14:20:07 2022 +0000
description:
Add emulators/open-simh.
The fork from emulators/simh due to licensing issues.
diffstat:
emulators/open-simh/DESCR | 11 +
emulators/open-simh/Makefile | 99 ++++++++++++
emulators/open-simh/PLIST | 113 ++++++++++++++
emulators/open-simh/distinfo | 6 +
emulators/open-simh/patches/patch-makefile | 233 +++++++++++++++++++++++++++++
5 files changed, 462 insertions(+), 0 deletions(-)
diffs (truncated from 482 to 300 lines):
diff -r 7bd39bd96382 -r f23f2b7361fb emulators/open-simh/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/open-simh/DESCR Mon Jun 06 14:20:07 2022 +0000
@@ -0,0 +1,11 @@
+Bob Supnik's historical computer simulator, including:
+
+ 3b2 alpha altair altairz80 b5000 besm6 cdc1700 eclipse gri
+ h316 hp2100 hp3000 i1401 i1620 i650 i7000 i7094 ibm1130
+ intel-systems id16 id32 lgp nova pdp1 pdp6 pdp10 pdp11 pdp18b
+ pdp4 pdp7 pdp8 pdp9 s3 sage sds ssem tx0 vax
+
+This version is maintained by the SIMH Steering Group.
+
+See http://www.netbsd.org/ports/vax/emulator-howto.html on how to
+install NetBSD/vax on simh!
diff -r 7bd39bd96382 -r f23f2b7361fb emulators/open-simh/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/open-simh/Makefile Mon Jun 06 14:20:07 2022 +0000
@@ -0,0 +1,99 @@
+# $NetBSD: Makefile,v 1.1 2022/06/06 14:20:07 rhialto Exp $
+
+DISTNAME= open-simh-4.0.0
+PKGNAME= open-simh-4.0.0.20220531
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_GITHUB:=open-simh/}
+GITHUB_PROJECT= simh
+GITHUB_TAG= 5a7a4c778edf6bad66bc688923316ccf951398be
+
+MAINTAINER= rhialto%NetBSD.org@localhost
+HOMEPAGE= http://simh.trailing-edge.com/
+COMMENT= Bob Supniks historical computer simulator
+LICENSE= mit
+
+DEPENDS+= dejavu-ttf-[0-9]*:../../fonts/dejavu-ttf
+
+USE_TOOLS+= gmake
+
+BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.9
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+# Doesn't seem to work with pkgsrc pcap, and dylib path is hardcoded.
+PREFER.libpcap= native
+# Link error with the native version: _zlibVersion
+PREFER.zlib= pkgsrc
+.endif
+
+BUILDLINK_TRANSFORM+= rm:-flto
+BUILDLINK_TRANSFORM+= rm:-fwhole-program
+
+.if (${MACHINE_ARCH} == "arm")
+BUILDLINK_TRANSFORM+= rm:-O2
+.endif
+
+# Needed for PDP11/pdp11_dc.c on gcc 4.1.3
+.if (${MACHINE_ARCH} == "vax")
+CFLAGS+= -fforce-addr
+.endif
+
+CFLAGS.SunOS+= -DBSD_COMP
+LDFLAGS.SunOS+= -lm
+
+LDFLAGS.Linux+= -lm -pthread -lrt
+
+INSTALLATION_DIRS= bin share/simh share/simh/TX-0 share/doc/simh
+
+MAKE_FILE= makefile
+INCLUDES= ${PREFIX:Q}/include:\
+ ${BUILDLINK_PREFIX.SDL2:Q}/include/SDL2:\
+ ${BUILDLINK_PREFIX.libpcap:Q}/include/pcap:\
+ ${BUILDLINK_PREFIX.pcre:Q}/include/pcre:\
+ ${BUILDLINK_PREFIX.png:Q}/include:\
+ /usr/include
+LIBRARIES= ${PREFIX:Q}/lib:\
+ ${BUILDLINK_PREFIX.SDL2:Q}/lib${LIBABISUFFIX}:\
+ ${BUILDLINK_PREFIX.libpcap:Q}/lib${LIBABISUFFIX}:\
+ ${BUILDLINK_PREFIX.pcre:Q}/lib${LIBABISUFFIX}:\
+ ${BUILDLINK_PREFIX.png:Q}/lib${LIBABISUFFIX}:\
+ /usr/lib${LIBABISUFFIX}
+MAKE_ENV+= INCLUDES=${INCLUDES:Q}
+MAKE_ENV+= LIBRARIES=${LIBRARIES:Q}
+MAKE_ENV+= GCC=${CC:Q}
+MAKE_ENV+= OS_LDFLAGS=${LDFLAGS:Q}
+MAKE_ENV+= FONTPATH=${PREFIX}/share/fonts/X11/TTF
+
+BUILD_MAKE_FLAGS= TESTS=0
+
+
+post-extract:
+ ${MKDIR} ${WRKSRC}/BIN
+
+do-install:
+ (cd ${WRKSRC}/BIN && for BIN in *; do \
+ if [ -f $$BIN ] ; then \
+ ${INSTALL_PROGRAM} $$BIN ${DESTDIR}${PREFIX}/bin/simh-$$BIN; \
+ fi ; \
+ done)
+
+ ${INSTALL_DATA} ${WRKSRC}/TX-0/*.bin ${DESTDIR}${PREFIX}/share/simh/TX-0
+ (cd ${WRKSRC} && for TXT in *.txt */*.txt; do \
+ ${INSTALL_DATA} "$$TXT" ${DESTDIR}${PREFIX}/share/doc/simh; \
+ done)
+
+# Note: tests require shm (/var/shm is a tmpfs) for the uc15.
+# They are part of the build and can't be run separately.
+do-test:
+ cd ${WRKSRC} && ${TEST_MAKE_CMD} clean
+ cd ${WRKSRC} && ${TEST_MAKE_CMD} all
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../fonts/SDL2_ttf/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../net/libpcap/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 7bd39bd96382 -r f23f2b7361fb emulators/open-simh/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/open-simh/PLIST Mon Jun 06 14:20:07 2022 +0000
@@ -0,0 +1,113 @@
+@comment $NetBSD: PLIST,v 1.1 2022/06/06 14:20:07 rhialto Exp $
+bin/simh-3b2
+bin/simh-altair
+bin/simh-altairz80
+bin/simh-b5500
+bin/simh-besm6
+bin/simh-cdc1700
+bin/simh-eclipse
+bin/simh-gri
+bin/simh-h316
+bin/simh-hp2100
+bin/simh-hp3000
+bin/simh-i1401
+bin/simh-i1620
+bin/simh-i650
+bin/simh-i701
+bin/simh-i7010
+bin/simh-i704
+bin/simh-i7070
+bin/simh-i7080
+bin/simh-i7090
+bin/simh-i7094
+bin/simh-ibm1130
+bin/simh-id16
+bin/simh-id32
+bin/simh-imlac
+bin/simh-infoserver100
+bin/simh-infoserver1000
+bin/simh-infoserver150vxt
+bin/simh-intel-mds
+bin/simh-lgp
+bin/simh-microvax1
+bin/simh-microvax2
+bin/simh-microvax2000
+bin/simh-microvax3100
+bin/simh-microvax3100e
+bin/simh-microvax3100m80
+bin/simh-microvax3900
+bin/simh-nova
+bin/simh-pdp1
+bin/simh-pdp10
+bin/simh-pdp10-ka
+bin/simh-pdp10-ki
+bin/simh-pdp10-kl
+bin/simh-pdp10-ks
+bin/simh-pdp11
+bin/simh-pdp15
+bin/simh-pdp4
+bin/simh-pdp6
+bin/simh-pdp7
+bin/simh-pdp8
+bin/simh-pdp9
+bin/simh-rtvax1000
+bin/simh-s3
+bin/simh-scelbi
+bin/simh-sds
+bin/simh-sel32
+bin/simh-sigma
+bin/simh-ssem
+bin/simh-swtp6800mp-a
+bin/simh-swtp6800mp-a2
+bin/simh-tt2500
+bin/simh-tx-0
+bin/simh-uc15
+bin/simh-vax
+bin/simh-vax730
+bin/simh-vax750
+bin/simh-vax780
+bin/simh-vax8200
+bin/simh-vax8600
+bin/simh-vaxstation3100m30
+bin/simh-vaxstation3100m38
+bin/simh-vaxstation3100m76
+bin/simh-vaxstation4000m60
+bin/simh-vaxstation4000vlc
+share/doc/simh/0ReadMe_Projects.txt
+share/doc/simh/0readmeAsynchIO.txt
+share/doc/simh/0readme_39.txt
+share/doc/simh/0readme_ethernet.txt
+share/doc/simh/CDC1700-Customization.txt
+share/doc/simh/CDC1700-Diagnostics.txt
+share/doc/simh/CDC1700-MSOS.txt
+share/doc/simh/CDC1700.txt
+share/doc/simh/LICENSE.txt
+share/doc/simh/altair.txt
+share/doc/simh/eclipse.txt
+share/doc/simh/haltguide.txt
+share/doc/simh/hp2100_bugfixes.txt
+share/doc/simh/hp2100_diag.txt
+share/doc/simh/hp2100_release.txt
+share/doc/simh/hp3000_diag.txt
+share/doc/simh/hp3000_release.txt
+share/doc/simh/i1620_error_matrix.txt
+share/doc/simh/i7094_bug_history.txt
+share/doc/simh/id_diag.txt
+share/doc/simh/input.txt
+share/doc/simh/m68k_parse.y.txt
+share/doc/simh/m68kasm.y.txt
+share/doc/simh/pdp10_bug_history.txt
+share/doc/simh/pdp18b_diag.txt
+share/doc/simh/pdp1_diag.txt
+share/doc/simh/readme-sage.txt
+share/doc/simh/readme1130.txt
+share/doc/simh/readme_s3.txt
+share/doc/simh/readme_update.txt
+share/doc/simh/sds_diag.txt
+share/doc/simh/sigma_bugs.txt
+share/doc/simh/sigma_disks.txt
+share/doc/simh/system3.txt
+share/doc/simh/tx0_diag.txt
+share/doc/simh/vax780_bug_history.txt
+share/simh/TX-0/bin_newMouse_3-22-66.bin
+share/simh/TX-0/bin_tic-tac-toe_new_code_12-16-61.bin
diff -r 7bd39bd96382 -r f23f2b7361fb emulators/open-simh/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/open-simh/distinfo Mon Jun 06 14:20:07 2022 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/06/06 14:20:07 rhialto Exp $
+
+BLAKE2s (open-simh-4.0.0-5a7a4c778edf6bad66bc688923316ccf951398be.tar.gz) = 1ba6b9c9495a45f422a52ec86ff3333bea5c07e833db37cfa285eb536ae92a06
+SHA512 (open-simh-4.0.0-5a7a4c778edf6bad66bc688923316ccf951398be.tar.gz) =
cef85c91a32aed6a75eeee39cd5bfaa146a1ad44e07d5334c51acd397259fb06d01028c6e8587bad7c7feee46e3762970c0ab1017d239f957468780039e6750b
+Size (open-simh-4.0.0-5a7a4c778edf6bad66bc688923316ccf951398be.tar.gz) = 31258284 bytes
+SHA1 (patch-makefile) = a532dde8a12d359cd66a2447ed95812cc0dd5dbe
diff -r 7bd39bd96382 -r f23f2b7361fb emulators/open-simh/patches/patch-makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/open-simh/patches/patch-makefile Mon Jun 06 14:20:07 2022 +0000
@@ -0,0 +1,233 @@
+$NetBSD: patch-makefile,v 1.1 2022/06/06 14:20:07 rhialto Exp $
+
+Exclude -flto for gcc 4.1.3 (used in NetBSD/vax 6)
+Exclude -flto for clang on NetBSD
+Exclude -flto for gcc 4.4.7 (Used in DragonFly 2.13 - 3.1)
+NO_LTO=1 is in effect for gcc and clang, except Darwin.
+Fix png16 detection.
+Let INCLUDES and LIBRARIES be the sole source for INCPATH and LIBPATH,
+to avoid seeing non-pkgsrc libraries (except MacOS platform).
+
+--- makefile.orig 2022-04-01 19:37:11.000000000 +0000
++++ makefile
+@@ -307,7 +307,7 @@ ifeq (${WIN32},) #*nix Environments (&&
+ $(shell git log -1 --pretty="SIM_GIT_COMMIT_ID %H$(GIT_EXTRA_FILES)%nSIM_GIT_COMMIT_TIME $(isodate)" >.git-commit-id)
+ endif
+ endif
+- LTO_EXCLUDE_VERSIONS =
++ LTO_EXCLUDE_VERSIONS = 4.1.3 4.4.7 4.8.3 4.8.4 4.8.5 5.3.0 5.4.0
+ PCAPLIB = pcap
+ ifeq (agcc,$(findstring agcc,${GCC})) # Android target build?
+ OS_CCDEFS += -D_GNU_SOURCE -DSIM_ASYNCH_IO
+@@ -348,16 +348,16 @@ ifeq (${WIN32},) #*nix Environments (&&
+ ifeq (Darwin,$(OSTYPE))
+ OSNAME = OSX
+ LIBEXT = dylib
+- ifneq (include,$(findstring include,$(UNSUPPORTED_BUILD)))
+- INCPATH:=$(shell LANG=C; ${GCC} -x c -v -E /dev/null 2>&1 | grep -A 10 '> search starts here' | grep '^ ' | grep -v 'framework directory' | tr -d '\n')
+- endif
++ #ifneq (include,$(findstring include,$(UNSUPPORTED_BUILD)))
++ INCPATH+=$(shell LANG=C; ${GCC} -x c -v -E /dev/null 2>&1 | grep -A 10 '> search starts here' | grep '^ ' | grep -v 'framework directory' | tr -d '\n')
++ #endif
+ ifeq (incopt,$(shell if ${TEST} -d /opt/local/include; then echo incopt; fi))
+- INCPATH += /opt/local/include
+- OS_CCDEFS += -I/opt/local/include
++ # INCPATH += /opt/local/include
++ # OS_CCDEFS += -I/opt/local/include
+ endif
+ ifeq (libopt,$(shell if ${TEST} -d /opt/local/lib; then echo libopt; fi))
+- LIBPATH += /opt/local/lib
+- OS_LDFLAGS += -L/opt/local/lib
++ # LIBPATH += /opt/local/lib
++ # OS_LDFLAGS += -L/opt/local/lib
+ endif
+ ifeq (HomeBrew,$(or $(shell if ${TEST} -d /usr/local/Cellar; then echo HomeBrew; fi),$(shell if ${TEST} -d /opt/homebrew/Cellar; then echo HomeBrew; fi)))
+ ifeq (local,$(shell if $(TEST) -d /usr/local/Cellar; then echo local; fi))
+@@ -365,8 +365,8 @@ ifeq (${WIN32},) #*nix Environments (&&
+ else
+ HBPATH = /opt/homebrew
+ endif
+- INCPATH += $(foreach dir,$(wildcard $(HBPATH)/Cellar/*/*),$(realpath $(dir)/include))
+- LIBPATH += $(foreach dir,$(wildcard $(HBPATH)/Cellar/*/*),$(realpath $(dir)/lib))
Home |
Main Index |
Thread Index |
Old Index