[MacPorts] #42390: OpenCV: CMake configuration files placed in wrong directory
#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
#42390: OpenCV: CMake configuration files placed in wrong directory ---------------------+------------------------ Reporter: sean@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: haspatch Port: opencv | ---------------------+------------------------ Changes (by macsforever2000@…): * owner: macports-tickets@… => stromnov@… * cc: stromnov, sean@… (removed) * keywords: => haspatch Comment: Trac requires complete email addresses. As reporter, you do not need to Cc yourself. -- Ticket URL: <https://trac.macports.org/ticket/42390#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#42390: OpenCV: CMake configuration files placed in wrong directory ---------------------+------------------------ Reporter: sean@… | Owner: stromnov@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: haspatch Port: opencv | ---------------------+------------------------ Changes (by stromnov@…): * status: new => closed * resolution: => fixed Comment: Fixed at r117109. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/42390#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts