Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > cf8175317e651ab9ab01ee3cc5da2c94 > files > 13

gluegen2-2.0-5.mga3.src.rpm

diff -Nru gluegen2-2.0-rc3/src/java/com/jogamp/common/os/Platform.java gluegen2-2.0-rc3-gil/src/java/com/jogamp/common/os/Platform.java
--- gluegen2-2.0-rc3/src/java/com/jogamp/common/os/Platform.java	2011-12-04 16:23:01.636825178 +0100
+++ gluegen2-2.0-rc3-gil/src/java/com/jogamp/common/os/Platform.java	2011-12-04 16:22:34.860826871 +0100
@@ -191,6 +191,16 @@
             CPU_ARCH = CPUType.PA_RISC2_0;
         } else if( ARCH_lower.equals("ppc") ) {
             CPU_ARCH = CPUType.PPC;
+        } else if( ARCH_lower.equals("alpha") ) {
+            CPU_ARCH = CPUType.ALPHA;
+        } else if( ARCH_lower.equals("hppa") ) {
+            CPU_ARCH = CPUType.HPPA;
+        } else if( ARCH_lower.equals("mips") ) {
+            CPU_ARCH = CPUType.MIPS;
+        } else if( ARCH_lower.equals("mipsel") ) {
+            CPU_ARCH = CPUType.MIPSEL;
+        } else if( ARCH_lower.equals("s390") ) {
+            CPU_ARCH = CPUType.S390;
         } else {
             throw new RuntimeException("Please port CPU detection to your platform (" + OS_lower + "/" + ARCH_lower + ")");
         }               
@@ -440,6 +450,21 @@
             case PPC:
                 _os_and_arch = "ppc"; // TODO: sync with gluegen-cpptasks-base.xml
                 break;
+            case ALPHA:
+                _os_and_arch = "alpha"; 
+                break;
+            case HPPA:
+                _os_and_arch = "hppa"; 
+                break;
+            case MIPS:
+                _os_and_arch = "mips"; 
+                break;
+            case MIPSEL:
+                _os_and_arch = "mipsel"; 
+                break;
+            case S390:
+                _os_and_arch = "s390"; 
+                break;
             case X86_64:
                 _os_and_arch = "amd64";
                 break;