Sat Jun 16 14:58:36 2012 UTC ()
- Pickup pkgsrc CFLAGS correctly
- Fix build on NetBSD/vax 6.0
- Bump PKGREVISION


(abs)
diff -r1.36 -r1.37 pkgsrc/emulators/simh/Makefile
diff -r1.18 -r1.19 pkgsrc/emulators/simh/distinfo
diff -r1.10 -r1.11 pkgsrc/emulators/simh/patches/patch-aa
diff -r1.7 -r1.8 pkgsrc/emulators/simh/patches/patch-ab
diff -r1.6 -r1.7 pkgsrc/emulators/simh/patches/patch-ac

cvs diff -r1.36 -r1.37 pkgsrc/emulators/simh/Makefile (expand / switch to unified diff)

--- pkgsrc/emulators/simh/Makefile 2012/05/26 08:50:53 1.36
+++ pkgsrc/emulators/simh/Makefile 2012/06/16 14:58:35 1.37
@@ -1,40 +1,45 @@ @@ -1,40 +1,45 @@
1# $NetBSD: Makefile,v 1.36 2012/05/26 08:50:53 obache Exp $ 1# $NetBSD: Makefile,v 1.37 2012/06/16 14:58:35 abs Exp $
2# 
3 2
4DISTNAME= simhv39-0 3DISTNAME= simhv39-0
5PKGNAME= simh-3.9.0 4PKGNAME= simh-3.9.0
 5PKGREVISION= 1
6CATEGORIES= emulators 6CATEGORIES= emulators
7MASTER_SITES= http://simh.trailing-edge.com/sources/ 7MASTER_SITES= http://simh.trailing-edge.com/sources/
8EXTRACT_SUFX= .zip 8EXTRACT_SUFX= .zip
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://simh.trailing-edge.com/ 11HOMEPAGE= http://simh.trailing-edge.com/
12COMMENT= Bob Supniks historical computer simulator 12COMMENT= Bob Supniks historical computer simulator
13 13
14PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
15 15
16USE_TOOLS+= gmake 16USE_TOOLS+= gmake
17 17
18BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.9 18BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.9
19 19
20WRKSRC= ${WRKDIR} 20WRKSRC= ${WRKDIR}
21 21
22.include "../../mk/bsd.prefs.mk" 22.include "../../mk/bsd.prefs.mk"
23 23
24.if (${MACHINE_ARCH} == "arm") 24.if (${MACHINE_ARCH} == "arm")
25BUILDLINK_TRANSFORM+= rm:-O2 25BUILDLINK_TRANSFORM+= rm:-O2
26.endif 26.endif
27 27
 28# Needed for PDP11/pdp11_dc.c on gcc 4.1.3
 29.if (${MACHINE_ARCH} == "vax")
 30CFLAGS+= -fforce-addr
 31.endif
 32
28INSTALLATION_DIRS= bin share/simh share/doc/simh 33INSTALLATION_DIRS= bin share/simh share/doc/simh
29 34
30MAKE_FILE= makefile 35MAKE_FILE= makefile
31MAKE_ENV+= BUILDLINK_DIR=${BUILDLINK_DIR:Q} 36MAKE_ENV+= BUILDLINK_DIR=${BUILDLINK_DIR:Q}
32MAKE_ENV+= GCC=${CC:Q} 37MAKE_ENV+= GCC=${CC:Q}
33MAKE_ENV+= OS_LDFLAGS=${LDFLAGS:Q} CFLAGS_O=${CFLAGS:Q} 38MAKE_ENV+= OS_LDFLAGS=${LDFLAGS:Q} CFLAGS_O=${CFLAGS:Q}
34 39
35post-extract: 40post-extract:
36 ${MKDIR} ${WRKSRC}/BIN 41 ${MKDIR} ${WRKSRC}/BIN
37 42
38do-install: 43do-install:
39 (cd ${WRKSRC}/BIN && for BIN in *; do \ 44 (cd ${WRKSRC}/BIN && for BIN in *; do \
40 if [ -f $$BIN ] ; then \ 45 if [ -f $$BIN ] ; then \

cvs diff -r1.18 -r1.19 pkgsrc/emulators/simh/distinfo (expand / switch to unified diff)

--- pkgsrc/emulators/simh/distinfo 2012/05/26 08:50:53 1.18
+++ pkgsrc/emulators/simh/distinfo 2012/06/16 14:58:35 1.19
@@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
1$NetBSD: distinfo,v 1.18 2012/05/26 08:50:53 obache Exp $ 1$NetBSD: distinfo,v 1.19 2012/06/16 14:58:35 abs Exp $
2 2
3SHA1 (simhv39-0.zip) = 1de3938f0dcb51d55b0e53aea8ae9769ccc57bdb 3SHA1 (simhv39-0.zip) = 1de3938f0dcb51d55b0e53aea8ae9769ccc57bdb
4RMD160 (simhv39-0.zip) = a464e7d1fc6d58dd23a3ef623c3c018d5d60b050 4RMD160 (simhv39-0.zip) = a464e7d1fc6d58dd23a3ef623c3c018d5d60b050
5Size (simhv39-0.zip) = 3103657 bytes 5Size (simhv39-0.zip) = 3103657 bytes
6SHA1 (patch-aa) = c2f9eda37314040fd4405d9d04567bc5023d42fa 6SHA1 (patch-aa) = 198ec84295792523d52c8713aa144c4ece2f0fbd
7SHA1 (patch-ab) = c82bb9a1ca5f149e994e1894a1753a99bccdec89 7SHA1 (patch-ab) = aa6f7fa5246b469ec7de28182922d2e6e18ce0de
8SHA1 (patch-ac) = 16673f3bb5c42cdfd0497cd1f0657cbbe3bbecdb 8SHA1 (patch-ac) = 9d12df82e971b057be33d4cf54b1539597ae94f3

cvs diff -r1.10 -r1.11 pkgsrc/emulators/simh/patches/Attic/patch-aa (expand / switch to unified diff)

--- pkgsrc/emulators/simh/patches/Attic/patch-aa 2012/05/26 08:50:53 1.10
+++ pkgsrc/emulators/simh/patches/Attic/patch-aa 2012/06/16 14:58:35 1.11
@@ -1,29 +1,25 @@ @@ -1,29 +1,25 @@
1$NetBSD: patch-aa,v 1.10 2012/05/26 08:50:53 obache Exp $ 1$NetBSD: patch-aa,v 1.11 2012/06/16 14:58:35 abs Exp $
2 2
3--- makefile.orig 2012-04-23 07:28:04.000000000 +0000 3Exclude -flto for gcc 4.1.3 (used in NetBSD/vax 6)
 4Make -O2 conditional so can be overridden by environment
 5
 6--- makefile.orig 2012-06-13 16:46:32.000000000 +0000
4+++ makefile 7+++ makefile
5@@ -72,8 +72,8 @@ ifeq ($(WIN32),) #*nix Environments (&& 8@@ -63,7 +63,7 @@ ifeq ($(WIN32),) #*nix Environments (&&
6 endif 9 OSNAME = windows-build
7 OS_LDFLAGS = -lm 
8 else # Non-Android Builds 
9- INCPATH:=/usr/include 
10- LIBPATH:=/usr/lib 
11+ INCPATH:=${BUILDLINK_DIR}/include /usr/include 
12+ LIBPATH:=${BUILDLINK_DIR}/lib /usr/lib 
13 OS_CCDEFS = -D_GNU_SOURCE 
14 GCC_OPTIMIZERS_CMD = $(GCC) -v --help 2>&1 
15 GCC_WARNINGS_CMD = $(GCC) -v --help 2>&1 
16@@ -141,11 +141,11 @@ ifeq ($(WIN32),) #*nix Environments (&& 
17 endif 
18 ifneq (,$(call find_lib,pthread)) 
19 ifneq (,$(call find_include,pthread)) 
20- OS_CCDEFS += -DUSE_READER_THREAD 
21+ OS_CCDEFS += -DUSE_READER_THREAD ${PTHREAD_CFLAGS} 
22 ifeq (,$(NOASYNCH)) 
23 OS_CCDEFS += -DSIM_ASYNCH_IO  
24 endif 
25- OS_LDFLAGS += -lpthread 
26+ OS_LDFLAGS += ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} 
27 $(info using libpthread: $(call find_lib,pthread) $(call find_include,pthread)) 
28 endif 
29 endif 10 endif
 11 GCC_VERSION = $(shell $(GCC) -v /dev/null 2>&1 | grep 'gcc version' | awk '{ print $$3 }')
 12- LTO_EXCLUDE_VERSIONS =
 13+ LTO_EXCLUDE_VERSIONS = 4.1.3
 14 PCAPLIB = pcap
 15 ifeq (agcc,$(findstring agcc,$(GCC))) # Android target build?
 16 OS_CCDEFS = -D_GNU_SOURCE
 17@@ -300,7 +300,7 @@ ifneq ($(DEBUG),)
 18 CFLAGS_O = -O0
 19 BUILD_FEATURES = - debugging support
 20 else
 21- CFLAGS_O = -O2
 22+ CFLAGS_O ?= -O2
 23 LDFLAGS_O =
 24 GCC_MAJOR_VERSION = $(firstword $(subst ., ,$(GCC_VERSION)))
 25 ifneq (3,$(GCC_MAJOR_VERSION))

cvs diff -r1.7 -r1.8 pkgsrc/emulators/simh/patches/Attic/patch-ab (expand / switch to unified diff)

--- pkgsrc/emulators/simh/patches/Attic/patch-ab 2012/05/04 09:38:23 1.7
+++ pkgsrc/emulators/simh/patches/Attic/patch-ab 2012/06/16 14:58:36 1.8
@@ -1,13 +1,13 @@ @@ -1,13 +1,13 @@
1$NetBSD: patch-ab,v 1.7 2012/05/04 09:38:23 hans Exp $ 1$NetBSD: patch-ab,v 1.8 2012/06/16 14:58:36 abs Exp $
2 2
3--- sim_ether.c.orig 2012-03-30 16:30:26.000000000 +0200 3--- sim_ether.c.orig 2012-03-30 15:30:26.000000000 +0000
4+++ sim_ether.c 2012-05-03 23:31:13.438944514 +0200 4+++ sim_ether.c
5@@ -806,6 +806,8 @@ void eth_show_dev (FILE* st, ETH_DEV* de 5@@ -806,6 +806,8 @@ void eth_show_dev (FILE* st, ETH_DEV* de
6 #include <sys/ioctl.h>  6 #include <sys/ioctl.h>
7 #include <net/if.h>  7 #include <net/if.h>
8 #include <linux/if_tun.h>  8 #include <linux/if_tun.h>
9+#elif defined(__sun) 9+#elif defined(__sun)
10+#undef USE_TAP_NETWORK 10+#undef USE_TAP_NETWORK
11 #elif defined(USE_BSDTUNTAP) 11 #elif defined(USE_BSDTUNTAP)
12 #include <sys/types.h> 12 #include <sys/types.h>
13 #include <net/if_types.h> 13 #include <net/if_types.h>

cvs diff -r1.6 -r1.7 pkgsrc/emulators/simh/patches/Attic/patch-ac (expand / switch to unified diff)

--- pkgsrc/emulators/simh/patches/Attic/patch-ac 2010/05/28 13:21:26 1.6
+++ pkgsrc/emulators/simh/patches/Attic/patch-ac 2012/06/16 14:58:36 1.7
@@ -1,22 +1,22 @@ @@ -1,22 +1,22 @@
1$NetBSD: patch-ac,v 1.6 2010/05/28 13:21:26 tsutsui Exp $ 1$NetBSD: patch-ac,v 1.7 2012/06/16 14:58:36 abs Exp $
2 2
3--- sim_console.c.orig 2008-11-20 04:50:44.000000000 +0000 3--- sim_console.c.orig 2012-03-18 08:40:08.000000000 +0000
4+++ sim_console.c 4+++ sim_console.c
5@@ -429,7 +429,7 @@ 5@@ -430,7 +430,7 @@ for (i = 0; i < sec; i++) {
6 if (tmxr_poll_conn (&sim_con_tmxr) >= 0) { /* poll connect */ 6 if (tmxr_poll_conn (&sim_con_tmxr) >= 0) { /* poll connect */
7 sim_con_ldsc.rcve = 1; /* rcv enabled */ 7 sim_con_ldsc.rcve = 1; /* rcv enabled */
8 if (i) { /* if delayed */ 8 if (i) { /* if delayed */
9- printf ("Running\n"); /* print transition */ 9- printf ("Running\n"); /* print transition */
10+ printf ("Running\r\n"); /* print transition */ 10+ printf ("Running\r\n"); /* print transition */
11 fflush (stdout); 11 fflush (stdout);
12 } 12 }
13 return SCPE_OK; /* ready to proceed */ 13 return SCPE_OK; /* ready to proceed */
14@@ -438,7 +438,7 @@ 14@@ -439,7 +439,7 @@ for (i = 0; i < sec; i++) {
15 if ((c == SCPE_STOP) || stop_cpu) 15 if ((c == SCPE_STOP) || stop_cpu)
16 return SCPE_STOP; 16 return SCPE_STOP;
17 if ((i % 10) == 0) { /* Status every 10 sec */ 17 if ((i % 10) == 0) { /* Status every 10 sec */
18- printf ("Waiting for console Telnet connection\n"); 18- printf ("Waiting for console Telnet connection\n");
19+ printf ("Waiting for console Telnet connection\r\n"); 19+ printf ("Waiting for console Telnet connection\r\n");
20 fflush (stdout); 20 fflush (stdout);
21 } 21 }
22 sim_os_sleep (1); /* wait 1 second */ 22 sim_os_sleep (1); /* wait 1 second */