Currently nothing in MacPorts sets libdir for CMake ports. On MacOS this is no issue. On Linux this leaves multiple ports broken, since CMake throws libs into ${prefix}/lib64, where nothing looks for them, so all dependents are broken. As a few examples: libdeflate, lerc, libjpeg-turbo.
I think this should be fixed in cmake PG. Any objections to this? Original PR for libdeflate, should be changed to a general fix: https://github.com/macports/macports-ports/pull/25757