Revision
117570
Author
jeremyhu@macports.org
Date
2014-03-03 16:24:15 -0800 (Mon, 03 Mar 2014)

Log Message

llvm*: arm_runtime by default on Xcode 4+

Modified Paths

Diff

Modified: trunk/dports/lang/llvm-2.9/Portfile (117569 => 117570)


--- trunk/dports/lang/llvm-2.9/Portfile	2014-03-04 00:16:55 UTC (rev 117569)
+++ trunk/dports/lang/llvm-2.9/Portfile	2014-03-04 00:24:15 UTC (rev 117570)
@@ -267,11 +267,16 @@
 } elseif {${subport} == "clang-${llvm_version}"} {
     variant arm_runtime description {Build and install the arm runtime for iOS development (requires iOS SDK)} {}
 
+    # The iOS SDK was shipped with all Xcode releases after 4.0
+    if {[info exists xcodeversion] && [vercmp "4.0" ${xcodeversion}] <= 0} {
+       default_variants-append +arm_runtime
+    }
+
     set pythonver ""
     set pythonverdot ""
 
     if {![variant_isset python25] && ![variant_isset python26]} {
-        default_variants +python27
+        default_variants-append +python27
     }
 
     variant python25 conflicts python26 python27 description {Use python 2.5} {

Modified: trunk/dports/lang/llvm-3.0/Portfile (117569 => 117570)


--- trunk/dports/lang/llvm-3.0/Portfile	2014-03-04 00:16:55 UTC (rev 117569)
+++ trunk/dports/lang/llvm-3.0/Portfile	2014-03-04 00:24:15 UTC (rev 117570)
@@ -263,11 +263,16 @@
 } elseif {${subport} == "clang-${llvm_version}"} {
     variant arm_runtime description {Build and install the arm runtime for iOS development (requires iOS SDK)} {}
 
+    # The iOS SDK was shipped with all Xcode releases after 4.0
+    if {[info exists xcodeversion] && [vercmp "4.0" ${xcodeversion}] <= 0} {
+       default_variants-append +arm_runtime
+    }
+
     set pythonver ""
     set pythonverdot ""
 
     if {![variant_isset python25] && ![variant_isset python26]} {
-        default_variants +python27
+        default_variants-append +python27
     }
 
     variant python25 conflicts python26 python27 description {Use python 2.5} {

Modified: trunk/dports/lang/llvm-3.1/Portfile (117569 => 117570)


--- trunk/dports/lang/llvm-3.1/Portfile	2014-03-04 00:16:55 UTC (rev 117569)
+++ trunk/dports/lang/llvm-3.1/Portfile	2014-03-04 00:24:15 UTC (rev 117570)
@@ -267,11 +267,16 @@
 } elseif {${subport} == "clang-${llvm_version}"} {
     variant arm_runtime description {Build and install the arm runtime for iOS development (requires iOS SDK)} {}
 
+    # The iOS SDK was shipped with all Xcode releases after 4.0
+    if {[info exists xcodeversion] && [vercmp "4.0" ${xcodeversion}] <= 0} {
+       default_variants-append +arm_runtime
+    }
+
     set pythonver ""
     set pythonverdot ""
 
     if {![variant_isset python25] && ![variant_isset python26]} {
-        default_variants +python27
+        default_variants-append +python27
     }
 
     variant python25 conflicts python26 python27 description {Use python 2.5} {

Modified: trunk/dports/lang/llvm-3.2/Portfile (117569 => 117570)


--- trunk/dports/lang/llvm-3.2/Portfile	2014-03-04 00:16:55 UTC (rev 117569)
+++ trunk/dports/lang/llvm-3.2/Portfile	2014-03-04 00:24:15 UTC (rev 117570)
@@ -279,11 +279,16 @@
 } elseif {${subport} == "clang-${llvm_version}"} {
     variant arm_runtime description {Build and install the arm runtime for iOS development (requires iOS SDK)} {}
 
+    # The iOS SDK was shipped with all Xcode releases after 4.0
+    if {[info exists xcodeversion] && [vercmp "4.0" ${xcodeversion}] <= 0} {
+       default_variants-append +arm_runtime
+    }
+
     set pythonver ""
     set pythonverdot ""
 
     if {![variant_isset python25] && ![variant_isset python26]} {
-        default_variants +python27
+        default_variants-append +python27
     }
 
     variant python25 conflicts python26 python27 description {Use python 2.5} {

Modified: trunk/dports/lang/llvm-3.3/Portfile (117569 => 117570)


--- trunk/dports/lang/llvm-3.3/Portfile	2014-03-04 00:16:55 UTC (rev 117569)
+++ trunk/dports/lang/llvm-3.3/Portfile	2014-03-04 00:24:15 UTC (rev 117570)
@@ -268,11 +268,16 @@
 } elseif {${subport} == "clang-${llvm_version}"} {
     variant arm_runtime description {Build and install the arm runtime for iOS development (requires iOS SDK)} {}
 
+    # The iOS SDK was shipped with all Xcode releases after 4.0
+    if {[info exists xcodeversion] && [vercmp "4.0" ${xcodeversion}] <= 0} {
+       default_variants-append +arm_runtime
+    }
+
     set pythonver ""
     set pythonverdot ""
 
     if {![variant_isset python25] && ![variant_isset python26]} {
-        default_variants +python27
+        default_variants-append +python27
     }
 
     variant python25 conflicts python26 python27 description {Use python 2.5} {

Modified: trunk/dports/lang/llvm-3.4/Portfile (117569 => 117570)


--- trunk/dports/lang/llvm-3.4/Portfile	2014-03-04 00:16:55 UTC (rev 117569)
+++ trunk/dports/lang/llvm-3.4/Portfile	2014-03-04 00:24:15 UTC (rev 117570)
@@ -309,11 +309,16 @@
 } elseif {${subport} == "clang-${llvm_version}"} {
     variant arm_runtime description {Build and install the arm runtime for iOS development (requires iOS SDK)} {}
 
+    # The iOS SDK was shipped with all Xcode releases after 4.0
+    if {[info exists xcodeversion] && [vercmp "4.0" ${xcodeversion}] <= 0} {
+       default_variants-append +arm_runtime
+    }
+
     set pythonver ""
     set pythonverdot ""
 
     if {![variant_isset python25] && ![variant_isset python26]} {
-        default_variants +python27
+        default_variants-append +python27
     }
 
     variant python25 conflicts python26 python27 description {Use python 2.5} {

Modified: trunk/dports/lang/llvm-3.5/Portfile (117569 => 117570)


--- trunk/dports/lang/llvm-3.5/Portfile	2014-03-04 00:16:55 UTC (rev 117569)
+++ trunk/dports/lang/llvm-3.5/Portfile	2014-03-04 00:24:15 UTC (rev 117570)
@@ -312,11 +312,16 @@
 } elseif {${subport} == "clang-${llvm_version}"} {
     variant arm_runtime description {Build and install the arm runtime for iOS development (requires iOS SDK)} {}
 
+    # The iOS SDK was shipped with all Xcode releases after 4.0
+    if {[info exists xcodeversion] && [vercmp "4.0" ${xcodeversion}] <= 0} {
+       default_variants-append +arm_runtime
+    }
+
     set pythonver ""
     set pythonverdot ""
 
     if {![variant_isset python25] && ![variant_isset python26]} {
-        default_variants +python27
+        default_variants-append +python27
     }
 
     variant python25 conflicts python26 python27 description {Use python 2.5} {