[37332] trunk/dports/benchmarks/nbench-byte/Portfile

jmr at macports.org jmr at macports.org
Tue Jun 3 08:46:26 PDT 2008


Revision: 37332
          http://trac.macosforge.org/projects/macports/changeset/37332
Author:   jmr at macports.org
Date:     2008-06-03 08:46:25 -0700 (Tue, 03 Jun 2008)

Log Message:
-----------
nbench-byte: simpler, more general 64-bit variant

Modified Paths:
--------------
    trunk/dports/benchmarks/nbench-byte/Portfile

Modified: trunk/dports/benchmarks/nbench-byte/Portfile
===================================================================
--- trunk/dports/benchmarks/nbench-byte/Portfile	2008-06-03 15:12:40 UTC (rev 37331)
+++ trunk/dports/benchmarks/nbench-byte/Portfile	2008-06-03 15:46:25 UTC (rev 37332)
@@ -41,20 +41,7 @@
 }
 
 variant use_64_bit description {Build a 64-bit executable} {
-    pre-fetch {
-        if {${os.platform} != "darwin"} {
-            return -code error "The use_64_bit variant only works on Darwin"
-        } elseif {${os.major} < 8} {
-            return -code error "The use_64_bit variant needs Darwin 8 or later"
-        }
-    }
-    if {${os.arch} == "i386"} {
-        build.env-append CFLAGS="-arch x86_64"
-    } elseif {${os.arch} == "powerpc"} {
-        build.env-append CFLAGS="-arch ppc64"
-    } else {
-        ui_warn "Unknown arch: ${os.arch}"
-    }
+    build.env-append CFLAGS="-m64"
 }
 
 platform darwin 8 {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080603/b44fac40/attachment.htm 


More information about the macports-changes mailing list