Fix up the compiler flags and enable the extended file support to allow
for more sane hard drive sizes. I'm really surprised no one has noticed
the lack of the extended file support.

Tested on amd64.


Index: Makefile
===================================================================
RCS file: /cvs/ports/emulators/simh/Makefile,v
retrieving revision 1.71
diff -u -p -r1.71 Makefile
--- Makefile    16 Oct 2011 15:03:24 -0000      1.71
+++ Makefile    20 Nov 2011 08:59:11 -0000
@@ -5,7 +5,7 @@ COMMENT=                PDP, IBM 1401, Nova and other 
 
 PKGNAME=               simh-3.8.1
 DISTNAME=              simhv38-1
-REVISION=              5
+REVISION=              6
 CATEGORIES=            emulators
 MASTER_SITES=          ${HOMEPAGE}/sources/
 
Index: patches/patch-makefile
===================================================================
RCS file: /cvs/ports/emulators/simh/patches/patch-makefile,v
retrieving revision 1.13
diff -u -p -r1.13 patch-makefile
--- patches/patch-makefile      21 Mar 2010 09:26:49 -0000      1.13
+++ patches/patch-makefile      20 Nov 2011 08:59:11 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-makefile,v 1.13 2010/03/21 09:26:49 jasper Exp $
 --- makefile.orig      Wed Nov 19 21:53:48 2008
-+++ makefile   Tue Jan 26 13:21:07 2010
++++ makefile   Sun Nov 20 03:46:22 2011
 @@ -1,32 +1,6 @@
 -#
 -# CC Command
@@ -32,8 +32,8 @@ $OpenBSD: patch-makefile,v 1.13 2010/03/
 -  endif
 -endif
 +OS_CCDEFS = -D_GNU_SOURCE
-+CFLAGS += $(OS_CCDEFS) -std=c99 -O2 -U__STRICT_ANSI__ -g -lm -I .
-+NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include -lpcap
++CFLAGS += $(OS_CCDEFS) -std=c99 -U__STRICT_ANSI__ -g -lm -I .
++NETWORK_OPT = -DUSE_NETWORK -lpcap
  
  #
  # Common Libraries
Index: patches/patch-sim_fio_c
===================================================================
RCS file: patches/patch-sim_fio_c
diff -N patches/patch-sim_fio_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-sim_fio_c     20 Nov 2011 08:59:11 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- sim_fio.c.orig     Sun Nov 20 03:55:26 2011
++++ sim_fio.c  Sun Nov 20 03:56:43 2011
+@@ -302,7 +302,7 @@ return fseeko64 (st, xpos, origin);
+ 
+ /* Apple OS/X */
+ 
+-#if defined (__APPLE__) || defined (__FreeBSD__)
++#if defined (__APPLE__) || defined (__FreeBSD__) || defined (__OpenBSD__)
+ #define _SIM_IO_FSEEK_EXT_      1
+ 
+ int sim_fseek (FILE *st, t_addr xpos, int origin) 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to