Hello,

The following diff lets lang/gforth build on mips64el.  It
runs fine for me, and "make regress" is happy too.

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/gforth/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- Makefile    4 Jun 2012 21:02:15 -0000       1.9
+++ Makefile    3 Oct 2012 18:34:50 -0000
@@ -1,6 +1,6 @@
 # $OpenBSD: Makefile,v 1.9 2012/06/04 21:02:15 pascal Exp $
 
-ONLY_FOR_ARCHS =       amd64 i386 powerpc sparc sparc64
+ONLY_FOR_ARCHS =       amd64 i386 mips64el powerpc sparc sparc64
 
 COMMENT =              ANS Standard Forth interpreter and compiler
 
Index: patches/patch-arch_mips_machine_h
===================================================================
RCS file: patches/patch-arch_mips_machine_h
diff -N patches/patch-arch_mips_machine_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-arch_mips_machine_h   3 Oct 2012 18:34:50 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Let the MIPS backend build on OpenBSD.
+
+--- arch/mips/machine.h.orig   Sun Mar  9 16:06:31 2003
++++ arch/mips/machine.h        Wed Oct  3 20:28:31 2012
+@@ -31,8 +31,10 @@
+ #endif
+ 
+ /* cache flush stuff */
+-#ifdef ultrix
++#if defined(ultrix)
+ #include <mips/cachectl.h>
++#elif defined(__OpenBSD__)
++#include <mips64/sysarch.h>
+ #else
+ /* works on Irix */
+ #include <sys/cachectl.h>

Reply via email to