[51573] users/dweber/graphics/InsightToolkit/Portfile
dweber at macports.org
dweber at macports.org
Wed May 27 17:37:30 PDT 2009
Revision: 51573
http://trac.macports.org/changeset/51573
Author: dweber at macports.org
Date: 2009-05-27 17:37:29 -0700 (Wed, 27 May 2009)
Log Message:
-----------
-m "post-destroot hacks for FindITK.cmake"
Modified Paths:
--------------
users/dweber/graphics/InsightToolkit/Portfile
Modified: users/dweber/graphics/InsightToolkit/Portfile
===================================================================
--- users/dweber/graphics/InsightToolkit/Portfile 2009-05-28 00:26:19 UTC (rev 51572)
+++ users/dweber/graphics/InsightToolkit/Portfile 2009-05-28 00:37:29 UTC (rev 51573)
@@ -123,10 +123,14 @@
# when cmake is updated, deactivated, etc.
set findITK [glob ${prefix}/share/cmake-*/Modules/FindITK.cmake]
set findITKbranch [strsed ${findITK} #FindITK#FindITK-${branch}#]
+ copy ${findITK} ${destroot}${findITK}
copy ${findITK} ${destroot}${findITKbranch}
- # Change the content of $findITKbranch so it will find this $distname lib
- reinplace "s|lib/${name}|lib/${distname}|g" ${destroot}${findITKbranch}
- # Change the content of *.cmake config files
+ # Change the content of $findITK and $findITKbranch, to find MacPorts lib
+ set stdlib /usr/local/lib/InsightToolkit
+ set newlib ${prefix}/lib/InsightToolkit
+ reinplace "s|${stdlib}|${newlib}\\\n ${newlib}-${branch}\\\n ${stdlib}|g" ${destroot}${findITK}
+ reinplace "s|${stdlib}|${newlib}\\\n ${newlib}-${branch}\\\n ${stdlib}|g" ${destroot}${findITKbranch}
+ # Change the content of ITKConfig.cmake
reinplace "s|${name}|${distname}|g" ${destroot}${itkLibPath}/ITKConfig.cmake
copy ${destroot}${itkLibPath}/ITKConfig.cmake ${destroot}${itkLibPath}/itk-${branch}-config.cmake
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090527/b5644eeb/attachment.html>
More information about the macports-changes
mailing list