[51732] users/dweber/devel/cmake/Portfile

dweber at macports.org dweber at macports.org
Mon Jun 1 21:55:33 PDT 2009


Revision: 51732
          http://trac.macports.org/changeset/51732
Author:   dweber at macports.org
Date:     2009-06-01 21:55:32 -0700 (Mon, 01 Jun 2009)
Log Message:
-----------
"Adding potential code to change the /usr/local prefix to ${prefix} in all .cmake files"

Modified Paths:
--------------
    users/dweber/devel/cmake/Portfile

Modified: users/dweber/devel/cmake/Portfile
===================================================================
--- users/dweber/devel/cmake/Portfile	2009-06-02 01:54:14 UTC (rev 51731)
+++ users/dweber/devel/cmake/Portfile	2009-06-02 04:55:32 UTC (rev 51732)
@@ -40,6 +40,14 @@
     set maclib ${prefix}/lib
     reinplace "s|${stdlib}\\(.*\\)$|${maclib}\\1\\\n    ${stdlib}\\1|g" ${findITK}
     reinplace "s|${stdlib}\\(.*\\)$|${maclib}\\1\\\n    ${stdlib}\\1|g" ${findVTK}
+    # ---
+    # Experiment to change the prefix in all .cmake files
+    #set usrPrefix /usr/local
+    #set macPrefix ${prefix}
+    #set cmakeFiles [glob ${destroot}${prefix}/share/cmake-${branch}/Modules/*.cmake]
+    #foreach f ${cmakeFiles} {
+    #    reinplace "s|${usrPrefix}|${macPrefix}|g" ${f}
+    #}
 }
 
 livecheck.check regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090601/40e7a161/attachment.html>


More information about the macports-changes mailing list