[149355] trunk/dports/science/openscad/Portfile

dstrubbe at macports.org dstrubbe at macports.org
Tue Jun 14 10:15:37 PDT 2016


Revision: 149355
          https://trac.macports.org/changeset/149355
Author:   dstrubbe at macports.org
Date:     2016-06-14 10:15:37 -0700 (Tue, 14 Jun 2016)
Log Message:
-----------
openscad: Remove useless/harmful warning flags. g++-4.2 will not accept -Wno-unused-local-typedefs, causing build failure on 10.6.

Modified Paths:
--------------
    trunk/dports/science/openscad/Portfile

Modified: trunk/dports/science/openscad/Portfile
===================================================================
--- trunk/dports/science/openscad/Portfile	2016-06-14 16:17:56 UTC (rev 149354)
+++ trunk/dports/science/openscad/Portfile	2016-06-14 17:15:37 UTC (rev 149355)
@@ -61,6 +61,10 @@
                     OPENSCAD_LIBRARIES=${prefix}
 configure.pre_args-append \
                     VERSION=${version} CONFIG-=debug openscad.pro
+post-configure {
+    # remove useless/harmful warning flags. g++-4.2 will not accept -Wno-unused-local-typedefs
+    reinplace -W ${worksrcpath} "s|\-W\[^ \]* ||g" Makefile
+}
 
 # Fix these errors, as per https://bugreports.qt.io/browse/QTBUG-22829
 #src/scintillaeditor.h -o objects/moc_scintillaeditor.cpp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160614/56c73992/attachment.html>


More information about the macports-changes mailing list