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 supportdiff -r1.43 -r1.44 pkgsrc/emulators/simh/Makefile
(hans)
@@ -1,58 +1,76 @@ | @@ -1,58 +1,76 @@ | |||
1 | # $NetBSD: Makefile,v 1.43 2015/12/11 23:33:33 joerg Exp $ | 1 | # $NetBSD: Makefile,v 1.44 2016/12/18 11:11:28 hans Exp $ | |
2 | 2 | |||
3 | DISTNAME= simhv39-0 | 3 | DISTNAME= simh-4.0.0 | |
4 | PKGNAME= simh-3.9.0 | 4 | PKGNAME= simh-4.0.0.20161218 | |
5 | PKGREVISION= 4 | |||
6 | CATEGORIES= emulators | 5 | CATEGORIES= emulators | |
7 | MASTER_SITES= http://simh.trailing-edge.com/sources/ | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=simh/} | |
8 | EXTRACT_SUFX= .zip | 7 | GITHUB_PROJECT= simh | |
8 | GITHUB_TAG= 7964e2b72d9cad0309afa7da08dd7e5e2336cd37 | |||
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://simh.trailing-edge.com/ | 11 | HOMEPAGE= http://simh.trailing-edge.com/ | |
12 | COMMENT= Bob Supniks historical computer simulator | 12 | COMMENT= Bob Supniks historical computer simulator | |
13 | 13 | |||
14 | USE_TOOLS+= gmake | 14 | USE_TOOLS+= gmake | |
15 | 15 | |||
16 | BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.9 | 16 | BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.9 | |
17 | 17 | |||
18 | WRKSRC= ${WRKDIR} | |||
19 | ||||
20 | .include "../../mk/bsd.prefs.mk" | 18 | .include "../../mk/bsd.prefs.mk" | |
21 | 19 | |||
22 | BUILDLINK_TRANSFORM+= rm:-flto | 20 | BUILDLINK_TRANSFORM+= rm:-flto | |
21 | BUILDLINK_TRANSFORM+= rm:-fwhole-program | |||
23 | 22 | |||
24 | .if (${MACHINE_ARCH} == "arm") | 23 | .if (${MACHINE_ARCH} == "arm") | |
25 | BUILDLINK_TRANSFORM+= rm:-O2 | 24 | BUILDLINK_TRANSFORM+= rm:-O2 | |
26 | .endif | 25 | .endif | |
27 | 26 | |||
28 | # Needed for PDP11/pdp11_dc.c on gcc 4.1.3 | 27 | # Needed for PDP11/pdp11_dc.c on gcc 4.1.3 | |
29 | .if (${MACHINE_ARCH} == "vax") | 28 | .if (${MACHINE_ARCH} == "vax") | |
30 | CFLAGS+= -fforce-addr | 29 | CFLAGS+= -fforce-addr | |
31 | .endif | 30 | .endif | |
32 | 31 | |||
32 | CFLAGS.SunOS+= -DBSD_COMP | |||
33 | LDFLAGS.SunOS+= -lm | |||
34 | ||||
33 | INSTALLATION_DIRS= bin share/simh share/doc/simh | 35 | INSTALLATION_DIRS= bin share/simh share/doc/simh | |
34 | 36 | |||
35 | MAKE_FILE= makefile | 37 | MAKE_FILE= makefile | |
36 | MAKE_ENV+= BUILDLINK_DIR=${BUILDLINK_DIR:Q} | 38 | INCLUDES= ${PREFIX:Q}/include:\ | |
39 | ${BUILDLINK_PREFIX.SDL_ttf:Q}/include/SDL:\ | |||
40 | ${BUILDLINK_PREFIX.libpcap:Q}/include/pcap:\ | |||
41 | ${BUILDLINK_PREFIX.pcre:Q}/include/pcre:\ | |||
42 | ${BUILDLINK_PREFIX.png:Q}/include | |||
43 | LIBRARIES= ${PREFIX:Q}/lib:\ | |||
44 | ${BUILDLINK_PREFIX.SDL_ttf:Q}/lib${LIBABISUFFIX}:\ | |||
45 | ${BUILDLINK_PREFIX.libpcap:Q}/lib${LIBABISUFFIX}:\ | |||
46 | ${BUILDLINK_PREFIX.pcre:Q}/lib${LIBABISUFFIX}:\ | |||
47 | ${BUILDLINK_PREFIX.png:Q}/lib${LIBABISUFFIX} | |||
48 | MAKE_ENV+= INCLUDES=${INCLUDES:Q} | |||
49 | MAKE_ENV+= LIBRARIES=${LIBRARIES:Q} | |||
37 | MAKE_ENV+= GCC=${CC:Q} | 50 | MAKE_ENV+= GCC=${CC:Q} | |
38 | MAKE_ENV+= OS_LDFLAGS=${LDFLAGS:Q} CFLAGS_O=${CFLAGS:Q} | 51 | MAKE_ENV+= OS_LDFLAGS=${LDFLAGS:Q} CFLAGS_O=${CFLAGS:Q} | |
39 | 52 | |||
40 | post-extract: | 53 | post-extract: | |
41 | ${MKDIR} ${WRKSRC}/BIN | 54 | ${MKDIR} ${WRKSRC}/BIN | |
42 | 55 | |||
43 | do-install: | 56 | do-install: | |
44 | (cd ${WRKSRC}/BIN && for BIN in *; do \ | 57 | (cd ${WRKSRC}/BIN && for BIN in *; do \ | |
45 | if [ -f $$BIN ] ; then \ | 58 | if [ -f $$BIN ] ; then \ | |
46 | ${INSTALL_PROGRAM} $$BIN ${DESTDIR}${PREFIX}/bin/simh-$$BIN; \ | 59 | ${INSTALL_PROGRAM} $$BIN ${DESTDIR}${PREFIX}/bin/simh-$$BIN; \ | |
47 | fi ; \ | 60 | fi ; \ | |
48 | done) | 61 | done) | |
49 | 62 | |||
50 | ${INSTALL_DATA} ${WRKSRC}/VAX/ka655x.bin ${DESTDIR}${PREFIX}/share/simh | 63 | ${INSTALL_DATA} ${WRKSRC}/VAX/ka655x.bin ${DESTDIR}${PREFIX}/share/simh | |
51 | ${INSTALL_DATA} ${WRKSRC}/VAX/vmb.exe ${DESTDIR}${PREFIX}/share/simh | 64 | ${INSTALL_DATA} ${WRKSRC}/VAX/vmb.exe ${DESTDIR}${PREFIX}/share/simh | |
52 | (cd ${WRKSRC} && for TXT in *.txt */*.txt; do \ | 65 | (cd ${WRKSRC} && for TXT in *.txt */*.txt; do \ | |
53 | ${INSTALL_DATA} $$TXT ${DESTDIR}${PREFIX}/share/doc/simh; \ | 66 | ${INSTALL_DATA} $$TXT ${DESTDIR}${PREFIX}/share/doc/simh; \ | |
54 | done) | 67 | done) | |
55 | 68 | |||
69 | .include "../../devel/SDL/buildlink3.mk" | |||
70 | .include "../../devel/SDL_ttf/buildlink3.mk" | |||
71 | .include "../../devel/pcre/buildlink3.mk" | |||
72 | .include "../../graphics/png/buildlink3.mk" | |||
56 | .include "../../net/libpcap/buildlink3.mk" | 73 | .include "../../net/libpcap/buildlink3.mk" | |
74 | .include "../../mk/dlopen.buildlink3.mk" | |||
57 | .include "../../mk/pthread.buildlink3.mk" | 75 | .include "../../mk/pthread.buildlink3.mk" | |
58 | .include "../../mk/bsd.pkg.mk" | 76 | .include "../../mk/bsd.pkg.mk" |
@@ -1,49 +1,77 @@ | @@ -1,49 +1,77 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.14 2013/03/26 13:53:42 martin Exp $ | 1 | @comment $NetBSD: PLIST,v 1.15 2016/12/18 11:11:28 hans Exp $ | |
2 | bin/simh-altair | 2 | bin/simh-altair | |
3 | bin/simh-altairz80 | 3 | bin/simh-altairz80 | |
4 | bin/simh-b5500 | |||
5 | bin/simh-cdc1700 | |||
4 | bin/simh-eclipse | 6 | bin/simh-eclipse | |
5 | bin/simh-gri | 7 | bin/simh-gri | |
6 | bin/simh-h316 | 8 | bin/simh-h316 | |
7 | bin/simh-hp2100 | 9 | bin/simh-hp2100 | |
10 | bin/simh-hp3000 | |||
8 | bin/simh-i1401 | 11 | bin/simh-i1401 | |
9 | bin/simh-i1620 | 12 | bin/simh-i1620 | |
10 | bin/simh-i7094 | 13 | bin/simh-i7094 | |
11 | bin/simh-ibm1130 | 14 | bin/simh-ibm1130 | |
12 | bin/simh-id16 | 15 | bin/simh-id16 | |
13 | bin/simh-id32 | 16 | bin/simh-id32 | |
17 | bin/simh-isys8010 | |||
18 | bin/simh-isys8020 | |||
19 | bin/simh-isys8024 | |||
20 | bin/simh-isys8030 | |||
14 | bin/simh-lgp | 21 | bin/simh-lgp | |
22 | bin/simh-microvax1 | |||
23 | bin/simh-microvax2 | |||
24 | bin/simh-microvax3900 | |||
15 | bin/simh-nova | 25 | bin/simh-nova | |
16 | bin/simh-pdp1 | 26 | bin/simh-pdp1 | |
17 | bin/simh-pdp10 | 27 | bin/simh-pdp10 | |
18 | bin/simh-pdp11 | 28 | bin/simh-pdp11 | |
19 | bin/simh-pdp15 | 29 | bin/simh-pdp15 | |
20 | bin/simh-pdp4 | 30 | bin/simh-pdp4 | |
21 | bin/simh-pdp7 | 31 | bin/simh-pdp7 | |
22 | bin/simh-pdp8 | 32 | bin/simh-pdp8 | |
23 | bin/simh-pdp9 | 33 | bin/simh-pdp9 | |
34 | bin/simh-rtvax1000 | |||
24 | bin/simh-s3 | 35 | bin/simh-s3 | |
25 | bin/simh-sds | 36 | bin/simh-sds | |
37 | bin/simh-ssem | |||
26 | bin/simh-swtp6800mp-a | 38 | bin/simh-swtp6800mp-a | |
27 | bin/simh-swtp6800mp-a2 | 39 | bin/simh-swtp6800mp-a2 | |
40 | bin/simh-tx-0 | |||
28 | bin/simh-vax | 41 | bin/simh-vax | |
42 | bin/simh-vax730 | |||
43 | bin/simh-vax750 | |||
29 | bin/simh-vax780 | 44 | bin/simh-vax780 | |
45 | bin/simh-vax8600 | |||
30 | share/doc/simh/0readme_39.txt | 46 | share/doc/simh/0readme_39.txt | |
47 | share/doc/simh/0readmeAsynchIO.txt | |||
31 | share/doc/simh/0readme_ethernet.txt | 48 | share/doc/simh/0readme_ethernet.txt | |
49 | share/doc/simh/CDC1700-Diagnostics.txt | |||
50 | share/doc/simh/CDC1700-MSOS.txt | |||
51 | share/doc/simh/CDC1700.txt | |||
32 | share/doc/simh/altair.txt | 52 | share/doc/simh/altair.txt | |
33 | share/doc/simh/eclipse.txt | 53 | share/doc/simh/eclipse.txt | |
34 | share/doc/simh/haltguide.txt | 54 | share/doc/simh/haltguide.txt | |
35 | share/doc/simh/hp2100_bugfixes.txt | 55 | share/doc/simh/hp2100_bugfixes.txt | |
36 | share/doc/simh/hp2100_diag.txt | 56 | share/doc/simh/hp2100_diag.txt | |
57 | share/doc/simh/hp3000_diag.txt | |||
58 | share/doc/simh/hp3000_release.txt | |||
37 | share/doc/simh/i7094_bug_history.txt | 59 | share/doc/simh/i7094_bug_history.txt | |
38 | share/doc/simh/id_diag.txt | 60 | share/doc/simh/id_diag.txt | |
61 | share/doc/simh/input.txt | |||
62 | share/doc/simh/m68k_parse.y.txt | |||
39 | share/doc/simh/pdp10_bug_history.txt | 63 | share/doc/simh/pdp10_bug_history.txt | |
40 | share/doc/simh/pdp18b_diag.txt | 64 | share/doc/simh/pdp18b_diag.txt | |
41 | share/doc/simh/pdp1_diag.txt | 65 | share/doc/simh/pdp1_diag.txt | |
42 | share/doc/simh/readme1130.txt | 66 | share/doc/simh/readme1130.txt | |
43 | share/doc/simh/readme_s3.txt | 67 | share/doc/simh/readme_s3.txt | |
68 | share/doc/simh/readme-sage.txt | |||
44 | share/doc/simh/readme_update.txt | 69 | share/doc/simh/readme_update.txt | |
45 | share/doc/simh/sds_diag.txt | 70 | share/doc/simh/sds_diag.txt | |
71 | share/doc/simh/sigma_bugs.txt | |||
72 | share/doc/simh/sigma_disks.txt | |||
46 | share/doc/simh/system3.txt | 73 | share/doc/simh/system3.txt | |
74 | share/doc/simh/tx0_diag.txt | |||
47 | share/doc/simh/vax780_bug_history.txt | 75 | share/doc/simh/vax780_bug_history.txt | |
48 | share/simh/ka655x.bin | 76 | share/simh/ka655x.bin | |
49 | share/simh/vmb.exe | 77 | share/simh/vmb.exe |
@@ -1,10 +1,8 @@ | @@ -1,10 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.26 2016/06/18 11:26:55 ryoon Exp $ | 1 | $NetBSD: distinfo,v 1.27 2016/12/18 11:11:28 hans Exp $ | |
2 | 2 | |||
3 | SHA1 (simhv39-0.zip) = 1de3938f0dcb51d55b0e53aea8ae9769ccc57bdb | 3 | SHA1 (simh-4.0.0-7964e2b72d9cad0309afa7da08dd7e5e2336cd37.tar.gz) = 83ec0e23ef79e13d7149d9c4077d479f1e3c2b2c | |
4 | RMD160 (simhv39-0.zip) = a464e7d1fc6d58dd23a3ef623c3c018d5d60b050 | 4 | RMD160 (simh-4.0.0-7964e2b72d9cad0309afa7da08dd7e5e2336cd37.tar.gz) = c77adffe16248aa6c0a3f14de321b599c772c3ab | |
5 | SHA512 (simhv39-0.zip) = 5e8cbf92e980b7cb40d68ff60a266f70c0bef0eecdc169a8077ae72a6a71fe12a7be5c62bd033ca36727e2cb8f266a5a6f8a5ed6dd509afbf0a9d7b618f1a4f6 | 5 | SHA512 (simh-4.0.0-7964e2b72d9cad0309afa7da08dd7e5e2336cd37.tar.gz) = 8ceae000df2442df925fae0eb2e9142ba4d6be732ae930b88addc9530ba21257bb03f30493ccdf941e06d4f04deeffdfcf12e1f41b3855c34bf7a116edc4d31c | |
6 | Size (simhv39-0.zip) = 3103657 bytes | 6 | Size (simh-4.0.0-7964e2b72d9cad0309afa7da08dd7e5e2336cd37.tar.gz) = 9915006 bytes | |
7 | SHA1 (patch-aa) = 00aa93c3d25359529de8fac356b664f13d85d3f2 | 7 | SHA1 (patch-aa) = 01ee641734c029fc2ea0de6947971c0bbdc0e267 | |
8 | SHA1 (patch-ab) = aa6f7fa5246b469ec7de28182922d2e6e18ce0de | 8 | SHA1 (patch-sim__ether.c) = 5a67f2cdde8917a32c7655853e5e79d4294d0790 | |
9 | SHA1 (patch-ac) = 9d12df82e971b057be33d4cf54b1539597ae94f3 | |||
10 | SHA1 (patch-sim__timer.h) = 1ee43b9a6586cdeb0f4dd22321957de8d30d3376 |
@@ -1,26 +1,40 @@ | @@ -1,26 +1,40 @@ | |||
1 | $NetBSD: patch-aa,v 1.16 2016/06/18 11:26:56 ryoon Exp $ | 1 | $NetBSD: patch-aa,v 1.17 2016/12/18 11:11:28 hans Exp $ | |
2 | 2 | |||
3 | Exclude -flto for gcc 4.1.3 (used in NetBSD/vax 6) | 3 | Exclude -flto for gcc 4.1.3 (used in NetBSD/vax 6) | |
4 | Exclude -flto for gcc 4.4.7 (Used in DragonFly 2.13 - 3.1) | 4 | Exclude -flto for gcc 4.4.7 (Used in DragonFly 2.13 - 3.1) | |
5 | Make -O2 conditional so can be overridden by environment | 5 | Make -O2 conditional so can be overridden by environment | |
6 | 6 | |||
7 | --- makefile.orig 2012-04-23 16:28:04.000000000 +0000 | 7 | --- makefile.orig 2012-04-23 16:28:04.000000000 +0000 | |
8 | +++ makefile | 8 | +++ makefile | |
9 | @@ -63,7 +63,7 @@ ifeq ($(WIN32),) #*nix Environments (&& | 9 | @@ -187,7 +187,7 @@ ifeq ($(WIN32),) #*nix Environments (&& | |
10 | OSNAME = windows-build | 10 | endif | |
11 | endif | 11 | endif | |
12 | GCC_VERSION = $(shell $(GCC) -v /dev/null 2>&1 | grep 'gcc version' | awk '{ print $$3 }') | 12 | endif | |
13 | - LTO_EXCLUDE_VERSIONS = | 13 | - LTO_EXCLUDE_VERSIONS = | |
14 | + LTO_EXCLUDE_VERSIONS = 4.1.3 4.4.7 4.8.3 4.8.4 4.8.5 5.3.0 5.4.0 | 14 | + LTO_EXCLUDE_VERSIONS = 4.1.3 4.4.7 4.8.3 4.8.4 4.8.5 5.3.0 5.4.0 | |
15 | PCAPLIB = pcap | 15 | PCAPLIB = pcap | |
16 | ifeq (agcc,$(findstring agcc,$(GCC))) # Android target build? | 16 | ifeq (agcc,$(findstring agcc,$(GCC))) # Android target build? | |
17 | OS_CCDEFS = -D_GNU_SOURCE | 17 | OS_CCDEFS = -D_GNU_SOURCE | |
18 | @@ -300,7 +300,7 @@ ifneq ($(DEBUG),) | 18 | @@ -903,11 +903,11 @@ ifneq (,$(UNSUPPORTED_BUILD)) | |
19 | CFLAGS_O = -O0 | 19 | endif | |
20 | BUILD_FEATURES = - debugging support | 20 | ifneq ($(DEBUG),) | |
21 | else | 21 | CFLAGS_G = -g -ggdb -g3 | |
22 | - CFLAGS_O = -O2 | 22 | - CFLAGS_O = -O0 | |
23 | + CFLAGS_O ?= -O2 | 23 | + CFLAGS_O ?= -O0 | |
24 | LDFLAGS_O = | 24 | BUILD_FEATURES = - debugging support | |
25 | GCC_MAJOR_VERSION = $(firstword $(subst ., ,$(GCC_VERSION))) | 25 | else | |
26 | ifneq (3,$(GCC_MAJOR_VERSION)) | 26 | ifneq (clang,$(findstring clang,$(COMPILER_NAME))) | |
27 | - CFLAGS_O = -O2 | |||
28 | + CFLAGS_O ?= -O2 | |||
29 | ifeq (Darwin,$(OSTYPE)) | |||
30 | NO_LTO = 1 | |||
31 | endif | |||
32 | @@ -916,7 +916,7 @@ else | |||
33 | ifeq (Darwin,$(OSTYPE)) | |||
34 | CFLAGS_O += -O4 -fno-strict-overflow -flto -fwhole-program | |||
35 | else | |||
36 | - CFLAGS_O := -O2 -fno-strict-overflow | |||
37 | + CFLAGS_O ?= -O2 -fno-strict-overflow | |||
38 | endif | |||
39 | endif | |||
40 | LDFLAGS_O = |
$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"