[110069] trunk/dports/devel/cmake/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Aug 25 14:38:07 PDT 2013


Revision: 110069
          https://trac.macports.org/changeset/110069
Author:   jeremyhu at macports.org
Date:     2013-08-25 14:38:07 -0700 (Sun, 25 Aug 2013)
Log Message:
-----------
cmake: Don't force -O3.  Honor ports' configure.optflags

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

Modified: trunk/dports/devel/cmake/Portfile
===================================================================
--- trunk/dports/devel/cmake/Portfile	2013-08-25 21:37:15 UTC (rev 110068)
+++ trunk/dports/devel/cmake/Portfile	2013-08-25 21:38:07 UTC (rev 110069)
@@ -6,6 +6,7 @@
 
 name		cmake
 version		2.8.10.2
+revision        1
 set branch	[join [lrange [split ${version} .] 0 1] .]
 categories	devel
 license		BSD
@@ -58,6 +59,9 @@
 	# patch PREFIX
 	reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/macports.cmake
 	reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Modules/CMakeFindFrameworks.cmake
+
+	# Don't force -O3.  Honor ports' ${configure.optflags}
+	eval reinplace "s|-O3||g" [glob ${worksrcpath}/Modules/{Compiler,Platform}/*.cmake]
 }
 
 post-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130825/61eca12c/attachment.html>


More information about the macports-changes mailing list