[148281] trunk/dports/graphics/inkscape-devel/Portfile

devans at macports.org devans at macports.org
Mon May 2 17:43:54 PDT 2016


Revision: 148281
          https://trac.macports.org/changeset/148281
Author:   devans at macports.org
Date:     2016-05-02 17:43:54 -0700 (Mon, 02 May 2016)
Log Message:
-----------
inkscape-devel: if -stdlib=libstdc++ set -std=c++98, should fix build on 10.7, 10.8.

Modified Paths:
--------------
    trunk/dports/graphics/inkscape-devel/Portfile

Modified: trunk/dports/graphics/inkscape-devel/Portfile
===================================================================
--- trunk/dports/graphics/inkscape-devel/Portfile	2016-05-02 23:50:05 UTC (rev 148280)
+++ trunk/dports/graphics/inkscape-devel/Portfile	2016-05-03 00:43:54 UTC (rev 148281)
@@ -96,8 +96,14 @@
 configure.cppflags-append \
                     -I${worksrcpath}/src/extension/script
 
-if {[string match "*clang*" ${configure.compiler}]} {
-    configure.cxxflags-append -std=c++11
+platform darwin {
+    if {[string match "*clang*" ${configure.compiler}]} {
+        if {${configure.cxx_stdlib} eq "libstdc++"} {
+            configure.cxxflags-append -std=c++98
+        } else {
+            configure.cxxflags-append -std=c++11
+        }
+    }
 }
 
 variant strict description {Enable strict build} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160502/c6f6c4dc/attachment.html>


More information about the macports-changes mailing list