[132151] trunk/dports/devel/ld64/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sat Jan 24 16:12:28 PST 2015
Revision: 132151
https://trac.macports.org/changeset/132151
Author: jeremyhu at macports.org
Date: 2015-01-24 16:12:28 -0800 (Sat, 24 Jan 2015)
Log Message:
-----------
ld64: Use variants to allow users to select their preferred default linker
Modified Paths:
--------------
trunk/dports/devel/ld64/Portfile
Modified: trunk/dports/devel/ld64/Portfile
===================================================================
--- trunk/dports/devel/ld64/Portfile 2015-01-25 00:08:02 UTC (rev 132150)
+++ trunk/dports/devel/ld64/Portfile 2015-01-25 00:12:28 UTC (rev 132151)
@@ -5,7 +5,7 @@
name ld64
epoch 2
-version 1
+version 2
categories devel
platforms darwin
maintainers jeremyhu
@@ -113,11 +113,25 @@
build {}
use_configure no
- if {${os.major} < 9} {
+ variant ld64_97 conflicts ld64_127 ld64_136 description {Use ld64-97 as the default linker} {}
+ variant ld64_127 conflicts ld64_97 ld64_136 description {Use ld64-127 as the default linker (last version to support ppc)} {}
+ variant ld64_136 conflicts ld64_97 ld64_127 description {Use ld64-136 as the default linker} {}
+
+ if {![variant_isset ld64_97] && ![variant_isset ld64_127] && ![variant_isset ld64_136]} {
+ if {${os.major} < 9} {
+ default_variants +ld64_97
+ } elseif {${os.major} < 10 || "ppc" in [get_canonical_archs]} {
+ default_variants +ld64_127
+ } elseif {${os.major} < 11} {
+ default_variants +ld64_136
+ }
+ }
+
+ if {[variant_isset ld64_97]} {
set ld64_ver 97
- } elseif {${os.major} < 10 || "ppc" in [get_canonical_archs]} {
+ } elseif {[variant_isset ld64_127]} {
set ld64_ver 127
- } elseif {${os.major} < 11} {
+ } elseif {[variant_isset ld64_136]} {
set ld64_ver 136
} else {
set ld64_ver latest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150124/f0508e1f/attachment.html>
More information about the macports-changes
mailing list