[115574] trunk/dports/graphics/makeicns/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Jan 5 11:58:38 PST 2014


Revision: 115574
          https://trac.macports.org/changeset/115574
Author:   jeremyhu at macports.org
Date:     2014-01-05 11:58:38 -0800 (Sun, 05 Jan 2014)
Log Message:
-----------
makeicns: Link against correct C++ runtime

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

Modified: trunk/dports/graphics/makeicns/Portfile
===================================================================
--- trunk/dports/graphics/makeicns/Portfile	2014-01-05 19:45:45 UTC (rev 115573)
+++ trunk/dports/graphics/makeicns/Portfile	2014-01-05 19:58:38 UTC (rev 115574)
@@ -5,7 +5,7 @@
 
 name                makeicns
 version             1.4.10a
-revision            1
+revision            2
 categories          graphics
 maintainers         mk pixilla
 platforms           darwin
@@ -34,6 +34,27 @@
     patchfiles      patch-IconFamily.m.diff
 }
 
+# TODO: Check ${configure.cxx_stdlib} directly once MacPorts 2.3 is released
+platform darwin {
+    set cxxstdlib {}
+
+    if {[info exists configure.cxx_stdlib] &&
+        ${configure.cxx_stdlib} ne {} &&
+        [string match *clang* ${configure.cxx}]} {
+        set cxxstdlib ${configure.cxx_stdlib}
+    } elseif {[string match *clang* ${configure.cxx}] &&
+              ${os.major} >= 13} {
+        set cxxstdlib libc++
+    } else {
+        set cxxstdlib libstdc++
+    }
+
+    if {[string match *clang* ${configure.cxx}]} {
+        configure.cxxflags-append -stdlib=${cxxstdlib}
+        configure.ldflags-append -stdlib=${cxxstdlib}
+    }
+}
+
 build.env-append    CC=${configure.cc} \
                     CXX=${configure.cxx} \
                     CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140105/333ef22d/attachment.html>


More information about the macports-changes mailing list