pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

simh3: Add simh version 3 (from the real Bob Supnik).



Module Name:	pkgsrc-wip
Committed By:	Olaf Seibert <rhialto%falu.nl@localhost>
Pushed By:	rhialto
Date:		Sun May 15 17:59:00 2022 +0200
Changeset:	93c41ebfe9a85404521836657322cb7bdd411f40

Added Files:
	simh3/DESCR
	simh3/Makefile
	simh3/PLIST
	simh3/distinfo
	simh3/patches/patch-makefile

Log Message:
simh3: Add simh version 3 (from the real Bob Supnik).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=93c41ebfe9a85404521836657322cb7bdd411f40

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 simh3/DESCR                  |  4 +++
 simh3/Makefile               | 60 ++++++++++++++++++++++++++++++++++++++++++++
 simh3/PLIST                  | 42 +++++++++++++++++++++++++++++++
 simh3/distinfo               |  6 +++++
 simh3/patches/patch-makefile | 32 +++++++++++++++++++++++
 5 files changed, 144 insertions(+)

diffs:
diff --git a/simh3/DESCR b/simh3/DESCR
new file mode 100644
index 0000000000..93a6b7fa61
--- /dev/null
+++ b/simh3/DESCR
@@ -0,0 +1,4 @@
+Bob Supnik's historical computer simulator.
+
+See http://www.netbsd.org/ports/vax/emulator-howto.html on how to
+install NetBSD/vax on simh!
diff --git a/simh3/Makefile b/simh3/Makefile
new file mode 100644
index 0000000000..2a050ef936
--- /dev/null
+++ b/simh3/Makefile
@@ -0,0 +1,60 @@
+# $NetBSD$
+
+DISTNAME=	simhv312-2
+PKGNAME=	simh3-3.12.2
+CATEGORIES=	emulators
+MASTER_SITES=	http://simh.trailing-edge.com/sources/
+EXTRACT_SUFX=	.zip
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://simh.trailing-edge.com/
+COMMENT=	Bob Supnik's simulator for historic computer systems
+LICENSE=	modified-bsd # (essentially)
+
+WRKSRC=		${WRKDIR}/sim
+USE_TOOLS+=	gmake
+
+BUILDLINK_API_DEPENDS.libpcap+=	libpcap>=0.9
+
+BUILDLINK_TRANSFORM+=	rm:-flto
+BUILDLINK_TRANSFORM+=	rm:-fwhole-program
+
+INSTALLATION_DIRS=	bin share/simh3 share/doc/simh3
+
+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
+
+do-install:
+	(cd ${WRKSRC}/BIN && for BIN in *; do                           \
+		if [ -f $$BIN ] ; then                                  \
+		${INSTALL_PROGRAM} $$BIN ${DESTDIR}${PREFIX}/bin/simh3-$$BIN; \
+		fi ;                                                    \
+	done)
+	cd ${WRKSRC} && ${INSTALL_DATA} VAX/ka655x.bin ${DESTDIR}${PREFIX}/share/simh3
+	(cd ${WRKSRC} && for TXT in *.txt */*.txt; do                   \
+		${INSTALL_DATA} "$$TXT" ${DESTDIR}${PREFIX}/share/doc/simh3; \
+	done)
+
+.include "../../devel/SDL2/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 --git a/simh3/PLIST b/simh3/PLIST
new file mode 100644
index 0000000000..f2cc179768
--- /dev/null
+++ b/simh3/PLIST
@@ -0,0 +1,42 @@
+@comment $NetBSD$
+bin/simh3-altair
+bin/simh3-eclipse
+bin/simh3-gri
+bin/simh3-h316
+bin/simh3-i1401
+bin/simh3-i1620
+bin/simh3-i7094
+bin/simh3-id16
+bin/simh3-id32
+bin/simh3-lgp
+bin/simh3-nova
+bin/simh3-pdp1
+bin/simh3-pdp10
+bin/simh3-pdp11
+bin/simh3-pdp15
+bin/simh3-pdp4
+bin/simh3-pdp7
+bin/simh3-pdp8
+bin/simh3-pdp9
+bin/simh3-sds
+bin/simh3-sigma
+bin/simh3-uc15
+bin/simh3-vax
+bin/simh3-vax780
+share/doc/simh3/0readme_ethernet.txt
+share/doc/simh3/altair.txt
+share/doc/simh3/eclipse.txt
+share/doc/simh3/haltguide.txt
+share/doc/simh3/i1620_error_matrix.txt
+share/doc/simh3/i7094_bug_history.txt
+share/doc/simh3/id_diag.txt
+share/doc/simh3/pdp10_bug_history.txt
+share/doc/simh3/pdp18b_diag.txt
+share/doc/simh3/pdp1_diag.txt
+share/doc/simh3/readme_s3.txt
+share/doc/simh3/sds_diag.txt
+share/doc/simh3/sigma_bugs.txt
+share/doc/simh3/sigma_disks.txt
+share/doc/simh3/system3.txt
+share/doc/simh3/vax780_bug_history.txt
+share/simh3/ka655x.bin
diff --git a/simh3/distinfo b/simh3/distinfo
new file mode 100644
index 0000000000..7b4f4fe1ef
--- /dev/null
+++ b/simh3/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (simhv312-2.zip) = b4b165980c213e86215f59d063c58dbfe92e60587cc9718ab40bce9e74ebff0f
+SHA512 (simhv312-2.zip) = f6e593e07b536901160e53b6825a261107a2ea3655917b33ae53a104a969e518f37170852558b65abe4819e569e4f35ca41f4ea843b78c9af25b74cb83dacec2
+Size (simhv312-2.zip) = 2847102 bytes
+SHA1 (patch-makefile) = 20b74c26ee5bf17889b4b958944a6f7e56fd1938
diff --git a/simh3/patches/patch-makefile b/simh3/patches/patch-makefile
new file mode 100644
index 0000000000..b5482e8c32
--- /dev/null
+++ b/simh3/patches/patch-makefile
@@ -0,0 +1,32 @@
+$NetBSD$
+
+Fix finding the png16 library.
+Avoid using /usr/local.
+
+--- makefile.orig	2022-03-19 07:49:08.000000000 +0000
++++ makefile
+@@ -459,8 +459,8 @@ ifeq (${WIN32},)  #*nix Environments (&&
+               OS_CCDEFS += -I/usr/pkg/include
+             endif
+             ifeq (/usr/local/lib,$(findstring /usr/local/lib,${LIBPATH}))
+-              INCPATH += /usr/local/include
+-              OS_CCDEFS += -I/usr/local/include
++              #INCPATH += /usr/local/include
++              #OS_CCDEFS += -I/usr/local/include
+             endif
+             ifneq (,$(findstring NetBSD,$(OSTYPE))$(findstring FreeBSD,$(OSTYPE))$(findstring AIX,$(OSTYPE)))
+               LIBEXT = so
+@@ -598,10 +598,10 @@ ifeq (${WIN32},)  #*nix Environments (&&
+     OS_CCDEFS += -DHAVE_UTIME
+   endif
+   ifneq (,$(call find_include,png))
+-    ifneq (,$(call find_lib,png))
++    ifneq (,$(call find_lib,png16))
+       OS_CCDEFS += -DHAVE_LIBPNG
+-      OS_LDFLAGS += -lpng
+-      $(info using libpng: $(call find_lib,png) $(call find_include,png))
++      OS_LDFLAGS += -lpng16
++      $(info using libpng: $(call find_lib,png16) $(call find_include,png))
+       ifneq (,$(call find_include,zlib))
+         ifneq (,$(call find_lib,z))
+           OS_CCDEFS += -DHAVE_ZLIB


Home | Main Index | Thread Index | Old Index