[115210] trunk/dports/textproc/sdcv/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sat Dec 28 00:55:00 PST 2013
Revision: 115210
https://trac.macports.org/changeset/115210
Author: ryandesign at macports.org
Date: 2013-12-28 00:55:00 -0800 (Sat, 28 Dec 2013)
Log Message:
-----------
sdcv: since C++11 is required, use gcc48 when libc++ is not available
Modified Paths:
--------------
trunk/dports/textproc/sdcv/Portfile
Modified: trunk/dports/textproc/sdcv/Portfile
===================================================================
--- trunk/dports/textproc/sdcv/Portfile 2013-12-28 08:32:19 UTC (rev 115209)
+++ trunk/dports/textproc/sdcv/Portfile 2013-12-28 08:55:00 UTC (rev 115210)
@@ -32,6 +32,28 @@
port:readline \
port:zlib
+# 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 {${cxxstdlib} eq "libstdc++"} {
+ # C++11 is required.
+ # https://sourceforge.net/p/sdcv/bugs/7/
+ configure.compiler macports-gcc-4.8
+ }
+}
+
configure.dir ${workpath}/build
build.dir ${configure.dir}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131228/2232d2b7/attachment.html>
More information about the macports-changes
mailing list