[70553] trunk/dports/devel/cmake/Portfile
css at macports.org
css at macports.org
Fri Aug 13 05:19:40 PDT 2010
Revision: 70553
http://trac.macports.org/changeset/70553
Author: css at macports.org
Date: 2010-08-13 05:19:36 -0700 (Fri, 13 Aug 2010)
Log Message:
-----------
Fix building CMake +universal to separately handle the post-configure patch. refs #25614
Modified Paths:
--------------
trunk/dports/devel/cmake/Portfile
Modified: trunk/dports/devel/cmake/Portfile
===================================================================
--- trunk/dports/devel/cmake/Portfile 2010-08-13 08:20:36 UTC (rev 70552)
+++ trunk/dports/devel/cmake/Portfile 2010-08-13 12:19:36 UTC (rev 70553)
@@ -40,7 +40,17 @@
platform darwin {
post-configure {
- reinplace "s|/usr/lib/libcurses|${prefix}/lib/libncurses|g" ${worksrcpath}/CMakeCache.txt
+ if {[variant_isset universal]} {
+ set dirs {}
+ foreach arch ${universal_archs_to_use} {
+ lappend dirs ${worksrcpath}-${arch}
+ }
+ } else {
+ set dirs ${worksrcpath}
+ }
+ foreach dir ${dirs} {
+ reinplace "s|/usr/lib/libcurses|${prefix}/lib/libncurses|g" ${dir}/CMakeCache.txt
+ }
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100813/689ce75f/attachment.html>
More information about the macports-changes
mailing list