[99537] trunk/dports/graphics/cairo-devel/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Nov 8 16:08:17 PST 2012


Revision: 99537
          http://trac.macports.org//changeset/99537
Author:   ryandesign at macports.org
Date:     2012-11-08 16:08:17 -0800 (Thu, 08 Nov 2012)
Log Message:
-----------
cairo-devel: only blacklist old clang (#34137)

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

Modified: trunk/dports/graphics/cairo-devel/Portfile
===================================================================
--- trunk/dports/graphics/cairo-devel/Portfile	2012-11-09 00:08:03 UTC (rev 99536)
+++ trunk/dports/graphics/cairo-devel/Portfile	2012-11-09 00:08:17 UTC (rev 99537)
@@ -45,6 +45,15 @@
 # Prevent cairo from using librsvg, libspectre, poppler.
 patchfiles-append           patch-configure.diff
 
+if {${configure.compiler} == "clang" && [file exists ${configure.cc}]} {
+    # https://trac.macports.org/ticket/34137
+    set clang_minimum_version 318.0.61
+    regexp {/clang-([0-9.]+)} [exec ${configure.cc} -v 2>@1] -> clang_installed_version
+    if {[vercmp ${clang_installed_version} ${clang_minimum_version}] < 0} {
+        compiler.blacklist  clang
+    }
+}
+
 pre-configure {
     set pixman_minimum_version 0.20.2
     set pixman_installed_version [exec ${prefix}/bin/pkg-config pixman-1 --modversion]
@@ -91,11 +100,6 @@
 }
 }
 
-# https://trac.macports.org/ticket/34137
-if {${configure.compiler}=="clang"} {
-    configure.compiler  llvm-gcc-4.2
-}
-
 if {${configure.compiler} == "llvm-gcc-4.2"} {
     patchfiles-append       patch-llvm-gcc-lto.diff
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121108/bef71609/attachment.html>


More information about the macports-changes mailing list