[MacPorts] #42390: OpenCV: CMake configuration files placed in wrong directory

MacPorts noreply at macports.org
Thu Feb 6 13:47:25 PST 2014


#42390: OpenCV: CMake configuration files placed in wrong directory
--------------------+--------------------------------
 Reporter:  sean@…  |      Owner:  macports-tickets@…
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.2.1
 Keywords:          |       Port:  opencv
--------------------+--------------------------------
 According to the CMake documentation (as of 2.8.12), CMake configuration
 files for packages should be placed in one of the following directories:

 {{{
 <prefix>/(lib/<arch>|lib|share)/cmake/<name>*/
 <prefix>/(lib/<arch>|lib|share)/<name>*/
 <prefix>/(lib/<arch>|lib|share)/<name>*/(cmake|CMake)/
 }}}

 However, the current opencv portfile puts the *.cmake files in
 `<prefix>/lib/cmake`, which causes CMake's `find_package` command to fail.
 The relevant lines from the Portfile:

 {{{
 xinstall -d ${destroot}${prefix}/lib/cmake
 move ${destroot}${prefix}/share/OpenCV/OpenCVConfig-version.cmake \
         ${destroot}${prefix}/share/OpenCV/OpenCVConfig.cmake \
         ${destroot}${prefix}/share/OpenCV/OpenCVModules.cmake \
         ${destroot}${prefix}/share/OpenCV/OpenCVModules-release.cmake \
         ${destroot}${prefix}/lib/cmake/
 }}}

 Suggest that this post-destroot step be removed since it looks like the
 *.cmake files are already in a location where CMake can find them, under
 `${destroot}${prefix}/share/OpenCV/`.

 Patch attached.

-- 
Ticket URL: <https://trac.macports.org/ticket/42390>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list