Author: Alastair McKinstry <mckinstry@debian.org>
Description: Support more architectures under Debian.
Last-Updated: 2018-03-04
Forwarded: no

Index: ncl-6.5.0/config/ymake
===================================================================
--- ncl-6.5.0.orig/config/ymake
+++ ncl-6.5.0/config/ymake
@@ -271,6 +271,14 @@ case FreeBSD:
 case Darwin:
         set opsys = $foo
         breaksw
+case GNU/kFreeBSD:
+	# GNU/kFreeBSD on DEBIAN
+	set opsys = DEBIAN
+	breaksw
+case GNU:
+	# GNU/Hurd on Debian
+	set opsys = DEBIAN
+	breaksw
 case CYGWIN*:
         set opsys = CYGWIN
         breaksw
@@ -356,6 +364,14 @@ case    AIX:
 
         breaksw
 
+case 	DEBIAN:
+	set os = $opsys
+	set model = $mach
+	set arch = $mach
+        set sysincs = DEBIAN
+	set vendor = DEBIAN
+	breaksw
+
 case    Linux:
         set os = $opsys
 
@@ -366,18 +382,19 @@ case    Linux:
         case    i*64:
         case    x*64:
         case    p*64:
+        case    sparc*:
+        case    arm*:
+	case    s390*:
+	case    mip*:
+	case    parisc*:
+        case    ppc*:
+        case    aarch64*:
         case    alpha:
             set model   = $mach
             set arch    = $mach
             set sysincs = LINUX
             set vendor  = IBM
             breaksw
-        case    ppc:
-            set model   = $mach
-            set arch    = $mach
-            set sysincs = YDLINUX
-            set vendor  = APPLE
-            breaksw
         default:
             echo "$0 : Unknown machine type" 
             exit 1
@@ -650,6 +667,7 @@ case    UNICOS:
         breaksw
 case    Linux:
 case	FreeBSD:
+case    DEBIAN:
 case    CYGWIN:
         set cppopt = -traditional-cpp
         breaksw
