[92167] trunk/dports/graphics/povray/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Fri Apr 20 15:03:52 PDT 2012


Revision: 92167
          https://trac.macports.org/changeset/92167
Author:   jeremyhu at macports.org
Date:     2012-04-20 15:03:51 -0700 (Fri, 20 Apr 2012)
Log Message:
-----------
povray: Fix --host and --build for x86_64 non-universal

Modified Paths:
--------------
    trunk/dports/graphics/povray/Portfile

Modified: trunk/dports/graphics/povray/Portfile
===================================================================
--- trunk/dports/graphics/povray/Portfile	2012-04-20 21:53:04 UTC (rev 92166)
+++ trunk/dports/graphics/povray/Portfile	2012-04-20 22:03:51 UTC (rev 92167)
@@ -59,6 +59,24 @@
 test.run		yes
 test.target		check
 
+# Unable to cross compile, so we need to be able to run the built code
+if {${os.arch} == "i386" && ${os.major} >= 11} {
+    supported_archs i386 x86_64
+    set universal_archs_supported {i386 x86_64}
+} elseif {${os.arch} == "i386" && ${build_arch} == "x86_64"} {
+    supported_archs i386 x86_64 ppc
+    set universal_archs_supported {i386 x86_64 ppc}
+} elseif {${os.arch} == "i386"} {
+    supported_archs i386 ppc
+    set universal_archs_supported {i386 ppc}
+} elseif {${build_arch} == "ppc64"} {
+    supported_archs ppc ppc64
+    set universal_archs_supported {ppc ppc64}
+} else {
+    supported_archs ${build_arch}
+    set universal_archs_supported ${build_arch}
+}
+
 platform darwin {
     if {[variant_isset universal]} {
         set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
@@ -73,10 +91,18 @@
         configure.args-append \
             --host=i686-apple-${os.platform}${os.major} \
             --build=i686-apple-${os.platform}${os.major}
-    } else {
+    } elseif {${build_arch} == "x86_64"} {
         configure.args-append \
-            --host=${os.arch}-apple-${os.platform}${os.major} \
-            --build=${os.arch}-apple-${os.platform}${os.major}
+            --host=x86_64-apple-${os.platform}${os.major} \
+            --build=x86_64-apple-${os.platform}${os.major}
+    } elseif {${build_arch} == "ppc"} {
+        configure.args-append \
+            --host=powerpc-apple-${os.platform}${os.major} \
+            --build=powerpc-apple-${os.platform}${os.major}
+    } elseif {${build_arch} == "ppc64"} {
+        configure.args-append \
+            --host=powerpc64-apple-${os.platform}${os.major} \
+            --build=powerpc64-apple-${os.platform}${os.major}
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120420/8c028402/attachment.html>


More information about the macports-changes mailing list