[57730] trunk/dports/math/gsl/Portfile

jochen at macports.org jochen at macports.org
Tue Sep 15 12:22:21 PDT 2009


Revision: 57730
          http://trac.macports.org/changeset/57730
Author:   jochen at macports.org
Date:     2009-09-15 12:22:16 -0700 (Tue, 15 Sep 2009)
Log Message:
-----------
separate compiler selection and optimization

Modified Paths:
--------------
    trunk/dports/math/gsl/Portfile

Modified: trunk/dports/math/gsl/Portfile
===================================================================
--- trunk/dports/math/gsl/Portfile	2009-09-15 18:53:47 UTC (rev 57729)
+++ trunk/dports/math/gsl/Portfile	2009-09-15 19:22:16 UTC (rev 57730)
@@ -5,6 +5,7 @@
 
 name                gsl
 version             1.13
+revision            1
 categories          math science
 maintainers         openmaintainer jochen
 homepage            http://www.gnu.org/software/gsl
@@ -59,20 +60,22 @@
     }
 }
 
-variant gcc43 conflicts gcc43 description "Use GCC 4.3 for compilation of GSL - optimized for host machine" {
+variant gcc43 conflicts gcc43 description "Use GCC 4.3 for compilation of GSL" {
     depends_build-append        port:gcc43
     configure.compiler          macports-gcc-4.3
-    configure.cflags-append     "-ftree-vectorize -O3"
 }
 
-variant gcc44 conflicts gcc43 description "Use GCC 4.4 for compilation of GSL - optimized for host machine" {
+variant gcc44 conflicts gcc43 description "Use GCC 4.4 for compilation of GSL" {
     depends_build-append        port:gcc44
     configure.compiler          macports-gcc-4.4
+}
+
+variant optimize description "Provide further optimization options (depending on compiler used)" {
     configure.cflags-append     "-ftree-vectorize -O3"
 }
 
 platform darwin i386 {
-  if {[variant_isset gcc43] || [variant_isset gcc44]} {
-    configure.cflags-append     "-march=native"
-  }
+    if { [variant_isset optimize] && ( [variant_isset gcc43] || [variant_isset gcc44] ) } {
+        configure.cflags-append "-march=native"
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090915/270ba99b/attachment.html>


More information about the macports-changes mailing list