[92070] trunk/dports/devel/ppl/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Mon Apr 16 22:25:02 PDT 2012


Revision: 92070
          https://trac.macports.org/changeset/92070
Author:   jeremyhu at macports.org
Date:     2012-04-16 22:25:00 -0700 (Mon, 16 Apr 2012)
Log Message:
-----------
ppl: Silence clang warnings and allow building with clang-3.1

Modified Paths:
--------------
    trunk/dports/devel/ppl/Portfile

Modified: trunk/dports/devel/ppl/Portfile
===================================================================
--- trunk/dports/devel/ppl/Portfile	2012-04-17 04:40:24 UTC (rev 92069)
+++ trunk/dports/devel/ppl/Portfile	2012-04-17 05:25:00 UTC (rev 92070)
@@ -95,6 +95,16 @@
     }
 }
 
+post-patch {
+    # Newer clang will error about this being unsupported due to -Werror
+    # Older clang will just warn despite -Werror
+    # llvm-gcc doesn't support it and just doesn't tell you about it
+    if {[string match "*clang*" ${configure.compiler}] ||
+        [string match "*llvm-gcc*" ${configure.compiler}]} {
+        reinplace "s|-frounding-math||" ${worksrcpath}/configure
+    }
+}
+
 test.run            yes
 test.target         check
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120416/64fdbd33/attachment.html>


More information about the macports-changes mailing list