[MacPorts] #19781: modify cmake Modules for MacPorts prefix
MacPorts
noreply at macports.org
Wed May 27 14:12:41 PDT 2009
#19781: modify cmake Modules for MacPorts prefix
-----------------------------------------+----------------------------------
Reporter: dweber@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: FindITK.cmake cmake modules | Port: cmake
-----------------------------------------+----------------------------------
I'm working on an InsightToolkit port that will install into a non-
standard MacPorts install path. I've discovered that the defaults in the
cmake Modules may not pick up the MacPort installations. For example, in
/opt/local/share/cmake-2.6/Modules/FindITK.cmake, we could modify it to
the following:
{{{
# Look in standard UNIX install locations.
/opt/local/lib/InsightToolkit
/opt/local/lib/InsightToolkit-3.12
/usr/local/lib/InsightToolkit
/usr/lib/InsightToolkit
}}}
I was able to get this result with a command line like this:
{{{
cat /opt/local/share/cmake-2.6/Modules/FindITK.cmake | sed -e
's|/usr/local/lib/InsightToolkit|/opt/local/lib/InsightToolkit\n\t/opt/local/lib/InsightToolkit-3.12\n\t/usr/local/lib/InsightToolkit|g'
}}}
I suppose other tweaks like this could be a part of the post-destroot for
the cmake port. The goal is to allow any MacPort installation to rely on
cmake modules to pick up other MacPort libraries automatically, and in
preference (with precedence) to anything similar installed outside of
${prefix} on the system.
Best regards,
Darren
--
Ticket URL: <http://trac.macports.org/ticket/19781>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list