Sun Dec 18 11:11:28 2016 UTC ()
There haven't been any simh releases in years, so convert this package
to take a snapshot from github. Update to 7964e2b72d9.

Changes: too many to list them all, full list of changes is available at
https://github.com/simh/simh/blob/master/README.md

Highlights:
- many new simulators
- simulator front panel API
- VAXstation video display simulation using SDL
- UDP and NAT packet transports
- scripting support


(hans)
diff -r1.43 -r1.44 pkgsrc/emulators/simh/Makefile
diff -r1.14 -r1.15 pkgsrc/emulators/simh/PLIST
diff -r1.26 -r1.27 pkgsrc/emulators/simh/distinfo
diff -r1.16 -r1.17 pkgsrc/emulators/simh/patches/patch-aa
diff -r1.8 -r0 pkgsrc/emulators/simh/patches/patch-ab
diff -r1.7 -r0 pkgsrc/emulators/simh/patches/patch-ac
diff -r0 -r1.1 pkgsrc/emulators/simh/patches/patch-sim__ether.c
diff -r1.1 -r0 pkgsrc/emulators/simh/patches/patch-sim__timer.h

cvs diff -r1.43 -r1.44 pkgsrc/emulators/simh/Makefile (expand / switch to context diff)
--- pkgsrc/emulators/simh/Makefile 2015/12/11 23:33:33 1.43
+++ pkgsrc/emulators/simh/Makefile 2016/12/18 11:11:28 1.44
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.43 2015/12/11 23:33:33 joerg Exp $
+# $NetBSD: Makefile,v 1.44 2016/12/18 11:11:28 hans Exp $
 
-DISTNAME=	simhv39-0
-PKGNAME=	simh-3.9.0
-PKGREVISION=	4
+DISTNAME=	simh-4.0.0
+PKGNAME=	simh-4.0.0.20161218
 CATEGORIES=	emulators
-MASTER_SITES=	http://simh.trailing-edge.com/sources/
-EXTRACT_SUFX=	.zip
+MASTER_SITES=	${MASTER_SITE_GITHUB:=simh/}
+GITHUB_PROJECT=	simh
+GITHUB_TAG=	7964e2b72d9cad0309afa7da08dd7e5e2336cd37
 
 MAINTAINER=	pkgsrc-users@NetBSD.org
 HOMEPAGE=	http://simh.trailing-edge.com/
@@ -15,11 +15,10 @@
 
 BUILDLINK_API_DEPENDS.libpcap+=	libpcap>=0.9
 
-WRKSRC=			${WRKDIR}
-
 .include "../../mk/bsd.prefs.mk"
 
 BUILDLINK_TRANSFORM+=	rm:-flto
+BUILDLINK_TRANSFORM+=	rm:-fwhole-program
 
 .if (${MACHINE_ARCH} == "arm")
 BUILDLINK_TRANSFORM+=	rm:-O2
@@ -30,10 +29,24 @@
 CFLAGS+=	-fforce-addr
 .endif
 
+CFLAGS.SunOS+=	-DBSD_COMP
+LDFLAGS.SunOS+=	-lm
+
 INSTALLATION_DIRS=	bin share/simh share/doc/simh
 
 MAKE_FILE=		makefile
-MAKE_ENV+=		BUILDLINK_DIR=${BUILDLINK_DIR:Q}
+INCLUDES=		${PREFIX:Q}/include:\
+			${BUILDLINK_PREFIX.SDL_ttf:Q}/include/SDL:\
+			${BUILDLINK_PREFIX.libpcap:Q}/include/pcap:\
+			${BUILDLINK_PREFIX.pcre:Q}/include/pcre:\
+			${BUILDLINK_PREFIX.png:Q}/include
+LIBRARIES=		${PREFIX:Q}/lib:\
+			${BUILDLINK_PREFIX.SDL_ttf:Q}/lib${LIBABISUFFIX}:\
+			${BUILDLINK_PREFIX.libpcap:Q}/lib${LIBABISUFFIX}:\
+			${BUILDLINK_PREFIX.pcre:Q}/lib${LIBABISUFFIX}:\
+			${BUILDLINK_PREFIX.png:Q}/lib${LIBABISUFFIX}
+MAKE_ENV+=		INCLUDES=${INCLUDES:Q}
+MAKE_ENV+=		LIBRARIES=${LIBRARIES:Q}
 MAKE_ENV+=		GCC=${CC:Q}
 MAKE_ENV+=		OS_LDFLAGS=${LDFLAGS:Q} CFLAGS_O=${CFLAGS:Q}
 
@@ -53,6 +66,11 @@
 		${INSTALL_DATA} $$TXT ${DESTDIR}${PREFIX}/share/doc/simh;		\
 	done)
 
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../devel/SDL_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"

cvs diff -r1.14 -r1.15 pkgsrc/emulators/simh/PLIST (expand / switch to context diff)
--- pkgsrc/emulators/simh/PLIST 2013/03/26 13:53:42 1.14
+++ pkgsrc/emulators/simh/PLIST 2016/12/18 11:11:28 1.15
@@ -1,17 +1,27 @@
-@comment $NetBSD: PLIST,v 1.14 2013/03/26 13:53:42 martin Exp $
+@comment $NetBSD: PLIST,v 1.15 2016/12/18 11:11:28 hans Exp $
 bin/simh-altair
 bin/simh-altairz80
+bin/simh-b5500
+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-i7094
 bin/simh-ibm1130
 bin/simh-id16
 bin/simh-id32
+bin/simh-isys8010
+bin/simh-isys8020
+bin/simh-isys8024
+bin/simh-isys8030
 bin/simh-lgp
+bin/simh-microvax1
+bin/simh-microvax2
+bin/simh-microvax3900
 bin/simh-nova
 bin/simh-pdp1
 bin/simh-pdp10
@@ -21,29 +31,47 @@
 bin/simh-pdp7
 bin/simh-pdp8
 bin/simh-pdp9
+bin/simh-rtvax1000
 bin/simh-s3
 bin/simh-sds
+bin/simh-ssem
 bin/simh-swtp6800mp-a
 bin/simh-swtp6800mp-a2
+bin/simh-tx-0
 bin/simh-vax
+bin/simh-vax730
+bin/simh-vax750
 bin/simh-vax780
+bin/simh-vax8600
 share/doc/simh/0readme_39.txt
+share/doc/simh/0readmeAsynchIO.txt
 share/doc/simh/0readme_ethernet.txt
+share/doc/simh/CDC1700-Diagnostics.txt
+share/doc/simh/CDC1700-MSOS.txt
+share/doc/simh/CDC1700.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/hp3000_diag.txt
+share/doc/simh/hp3000_release.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/pdp10_bug_history.txt
 share/doc/simh/pdp18b_diag.txt
 share/doc/simh/pdp1_diag.txt
 share/doc/simh/readme1130.txt
 share/doc/simh/readme_s3.txt
+share/doc/simh/readme-sage.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/ka655x.bin
 share/simh/vmb.exe

cvs diff -r1.26 -r1.27 pkgsrc/emulators/simh/distinfo (expand / switch to context diff)
--- pkgsrc/emulators/simh/distinfo 2016/06/18 11:26:55 1.26
+++ pkgsrc/emulators/simh/distinfo 2016/12/18 11:11:28 1.27
@@ -1,10 +1,8 @@
-$NetBSD: distinfo,v 1.26 2016/06/18 11:26:55 ryoon Exp $
+$NetBSD: distinfo,v 1.27 2016/12/18 11:11:28 hans Exp $
 
-SHA1 (simhv39-0.zip) = 1de3938f0dcb51d55b0e53aea8ae9769ccc57bdb
+SHA1 (simh-4.0.0-7964e2b72d9cad0309afa7da08dd7e5e2336cd37.tar.gz) = 83ec0e23ef79e13d7149d9c4077d479f1e3c2b2c
-RMD160 (simhv39-0.zip) = a464e7d1fc6d58dd23a3ef623c3c018d5d60b050
+RMD160 (simh-4.0.0-7964e2b72d9cad0309afa7da08dd7e5e2336cd37.tar.gz) = c77adffe16248aa6c0a3f14de321b599c772c3ab
-SHA512 (simhv39-0.zip) = 5e8cbf92e980b7cb40d68ff60a266f70c0bef0eecdc169a8077ae72a6a71fe12a7be5c62bd033ca36727e2cb8f266a5a6f8a5ed6dd509afbf0a9d7b618f1a4f6
+SHA512 (simh-4.0.0-7964e2b72d9cad0309afa7da08dd7e5e2336cd37.tar.gz) = 8ceae000df2442df925fae0eb2e9142ba4d6be732ae930b88addc9530ba21257bb03f30493ccdf941e06d4f04deeffdfcf12e1f41b3855c34bf7a116edc4d31c
-Size (simhv39-0.zip) = 3103657 bytes
+Size (simh-4.0.0-7964e2b72d9cad0309afa7da08dd7e5e2336cd37.tar.gz) = 9915006 bytes
-SHA1 (patch-aa) = 00aa93c3d25359529de8fac356b664f13d85d3f2
+SHA1 (patch-aa) = 01ee641734c029fc2ea0de6947971c0bbdc0e267
-SHA1 (patch-ab) = aa6f7fa5246b469ec7de28182922d2e6e18ce0de
+SHA1 (patch-sim__ether.c) = 5a67f2cdde8917a32c7655853e5e79d4294d0790
-SHA1 (patch-ac) = 9d12df82e971b057be33d4cf54b1539597ae94f3
-SHA1 (patch-sim__timer.h) = 1ee43b9a6586cdeb0f4dd22321957de8d30d3376

cvs diff -r1.16 -r1.17 pkgsrc/emulators/simh/patches/Attic/patch-aa (expand / switch to context diff)
--- pkgsrc/emulators/simh/patches/Attic/patch-aa 2016/06/18 11:26:56 1.16
+++ pkgsrc/emulators/simh/patches/Attic/patch-aa 2016/12/18 11:11:28 1.17
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.16 2016/06/18 11:26:56 ryoon Exp $
+$NetBSD: patch-aa,v 1.17 2016/12/18 11:11:28 hans Exp $
 
 Exclude -flto for gcc 4.1.3 (used in NetBSD/vax 6)
 Exclude -flto for gcc 4.4.7 (Used in DragonFly 2.13 - 3.1)
@@ -6,21 +6,35 @@
 
 --- makefile.orig	2012-04-23 16:28:04.000000000 +0000
 +++ makefile
-@@ -63,7 +63,7 @@ ifeq ($(WIN32),)  #*nix Environments (&&
+@@ -187,7 +187,7 @@ ifeq ($(WIN32),)  #*nix Environments (&&
-     OSNAME = windows-build
+       endif
-   endif
+     endif
-   GCC_VERSION = $(shell $(GCC) -v /dev/null 2>&1 | grep 'gcc version' | awk '{ print $$3 }')
+   endif
--  LTO_EXCLUDE_VERSIONS = 
+-  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
++  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
+   PCAPLIB = pcap
-   ifeq (agcc,$(findstring agcc,$(GCC))) # Android target build?
+   ifeq (agcc,$(findstring agcc,$(GCC))) # Android target build?
-     OS_CCDEFS = -D_GNU_SOURCE
+     OS_CCDEFS = -D_GNU_SOURCE
-@@ -300,7 +300,7 @@ ifneq ($(DEBUG),)
+@@ -903,11 +903,11 @@ ifneq (,$(UNSUPPORTED_BUILD))
-   CFLAGS_O = -O0
+ endif
-   BUILD_FEATURES = - debugging support
+ ifneq ($(DEBUG),)
- else
+   CFLAGS_G = -g -ggdb -g3
--  CFLAGS_O = -O2
+-  CFLAGS_O = -O0
-+  CFLAGS_O ?= -O2
++  CFLAGS_O ?= -O0
-   LDFLAGS_O = 
+   BUILD_FEATURES = - debugging support
-   GCC_MAJOR_VERSION = $(firstword $(subst  ., ,$(GCC_VERSION)))
+ else
-   ifneq (3,$(GCC_MAJOR_VERSION))
+   ifneq (clang,$(findstring clang,$(COMPILER_NAME)))
+-    CFLAGS_O = -O2
++    CFLAGS_O ?= -O2
+     ifeq (Darwin,$(OSTYPE))
+       NO_LTO = 1
+     endif
+@@ -916,7 +916,7 @@ else
+     ifeq (Darwin,$(OSTYPE))
+       CFLAGS_O += -O4 -fno-strict-overflow -flto -fwhole-program
+     else
+-      CFLAGS_O := -O2 -fno-strict-overflow 
++      CFLAGS_O ?= -O2 -fno-strict-overflow 
+     endif
+   endif
+   LDFLAGS_O = 

File Deleted: pkgsrc/emulators/simh/patches/Attic/patch-ab

File Deleted: pkgsrc/emulators/simh/patches/Attic/patch-ac

File Added: pkgsrc/emulators/simh/patches/Attic/patch-sim__ether.c
$NetBSD: patch-sim__ether.c,v 1.1 2016/12/18 11:11:28 hans Exp $

SunOS needs sys/ioctl.h for FIONBIO definition.

--- sim_ether.c.orig	2016-11-22 10:24:26.000000000 +0100
+++ sim_ether.c
@@ -366,6 +366,7 @@
 */
 
 #include <ctype.h>
+#include <sys/ioctl.h>
 #include "sim_ether.h"
 #include "sim_sock.h"
 #include "sim_timer.h"

File Deleted: pkgsrc/emulators/simh/patches/Attic/patch-sim__timer.h