[kde-freebsd] Where .cmake files should be put?

Max Brazhnikov makc at freebsd.org
Fri Mar 8 15:14:11 UTC 2013


On Wed, 06 Mar 2013 23:56:04 +0100 Guido Falsi wrote:
> Hi!
> 
> I'm updating the port comms/openobex I maintain.
> 
> With the last version they moved to cmake. The port is installing these 
> files:
> 
> lib/cmake/OpenObex-1.7/openobex-target-%%CMAKE_BUILD_TYPE%%.cmake
> lib/cmake/OpenObex-1.7/openobex-config-version.cmake
> lib/cmake/OpenObex-1.7/openobex-target.cmake
> lib/cmake/OpenObex-1.7/openobex-config.cmake
> 
> I had a look at other ports installing similar files and found out that 
> these are being put in a plethora of places.

cmake(1) will look for them in:

  <prefix>/(lib/<arch>|lib|share)/cmake/<name>*/
  <prefix>/(lib/<arch>|lib|share)/<name>*/
  <prefix>/(lib/<arch>|lib|share)/<name>*/(cmake|CMake)/
 
> Not being a cmake guru I'm not sure what is the "right thing" about these.
> 
> Should I leave the port put them where he wants them and just update the 
> plist?

yes.
 
> Is there a standard place where such files should be put? Or a standard 
> nomenclature for the directory(most ports I have seen use just lowercase 
> PORTNAME for this)

http://xkcd.com/927/
 
> Or there is no consensus and it's at maintainer/committer discretion?
> 
> BTW what are these files for? :)

Think of them like *.pc files for pkg-config.

Max


More information about the kde-freebsd mailing list