- Use @dirrmtry for Modules dir, as other ports may install their own cmake modules
PR: 143313
Submitted by: myself
Approved by: Max Brazhnikov <makc@issp.ac.ru>
- Set INSTALL_TARGET for cmake based ports to install/strip. This solves
problem of installing non-stripped binaries (noticed by delphij for KDE4 ports)
- Fix linking to -lpthread for cmake based ports (KDE4 ports are affected mostly)
- Remove CMAKE_BUILD_TYPE [1]
CMAKE_BUILD_TYPE only affects compiler FLAGS and linking with specific
library versions (debug |optimized | general).
In our case external libraries reside in other ports and only install
one version (no separate debug/optimized). Also, the ports system
provide correct compiler flags (-g and no optimizations when WITH_DEBUG
is used). Thus, cmake buildtypes only add extra compiler flags. Ports will
be built correctly both by default and for WITH_DEBUG case.
- Also, change WRKSRC to CONFIGURE_WRKSRC. (use CONFIGURE_WRKSRC for configure
target instead of WRKSRC)
PR: 126507 [1]
Submitted by: amdmi3@ [1]
Tested with: exp-run
Thanks to: pav/amdmi3