pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/simh3 Add emulators/simh3.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/810b6af67664
branches:  trunk
changeset: 380410:810b6af67664
user:      rhialto <rhialto%pkgsrc.org@localhost>
date:      Mon Jun 06 14:18:05 2022 +0000

description:
Add emulators/simh3.

The "original" Bob Supnik-maintained series.

diffstat:

 emulators/simh3/DESCR                  |   5 ++
 emulators/simh3/Makefile               |  60 ++++++++++++++++++++++++++++++++++
 emulators/simh3/PLIST                  |  42 +++++++++++++++++++++++
 emulators/simh3/distinfo               |   6 +++
 emulators/simh3/patches/patch-makefile |  32 ++++++++++++++++++
 5 files changed, 145 insertions(+), 0 deletions(-)

diffs (165 lines):

diff -r d1f610c8b6c0 -r 810b6af67664 emulators/simh3/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/simh3/DESCR     Mon Jun 06 14:18:05 2022 +0000
@@ -0,0 +1,5 @@
+Bob Supnik's historical computer simulator, release series 3,
+maintained solely by Bob Supnik.
+
+See http://www.netbsd.org/ports/vax/emulator-howto.html on how to
+install NetBSD/vax on simh!
diff -r d1f610c8b6c0 -r 810b6af67664 emulators/simh3/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/simh3/Makefile  Mon Jun 06 14:18:05 2022 +0000
@@ -0,0 +1,60 @@
+# $NetBSD: Makefile,v 1.1 2022/06/06 14:18:05 rhialto Exp $
+
+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 -r d1f610c8b6c0 -r 810b6af67664 emulators/simh3/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/simh3/PLIST     Mon Jun 06 14:18:05 2022 +0000
@@ -0,0 +1,42 @@
+@comment $NetBSD: PLIST,v 1.1 2022/06/06 14:18:05 rhialto Exp $
+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 -r d1f610c8b6c0 -r 810b6af67664 emulators/simh3/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/simh3/distinfo  Mon Jun 06 14:18:05 2022 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/06/06 14:18:05 rhialto Exp $
+
+BLAKE2s (simhv312-2.zip) = b4b165980c213e86215f59d063c58dbfe92e60587cc9718ab40bce9e74ebff0f
+SHA512 (simhv312-2.zip) = f6e593e07b536901160e53b6825a261107a2ea3655917b33ae53a104a969e518f37170852558b65abe4819e569e4f35ca41f4ea843b78c9af25b74cb83dacec2
+Size (simhv312-2.zip) = 2847102 bytes
+SHA1 (patch-makefile) = 20b74c26ee5bf17889b4b958944a6f7e56fd1938
diff -r d1f610c8b6c0 -r 810b6af67664 emulators/simh3/patches/patch-makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/simh3/patches/patch-makefile    Mon Jun 06 14:18:05 2022 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-makefile,v 1.1 2022/06/06 14:18:05 rhialto Exp $
+
+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