Apply built-in lens correction for Nikon 24-70 F4 S

Built and installed lensfun from its sources:

$ find /usr/local -name *lensfun*
/usr/local/share/lensfun
/usr/local/share/lensfun/version_2/lensfun-database.xsd
/usr/local/share/lensfun/version_2/lensfun-database.dtd
/usr/local/lib64/liblensfun.so.2
/usr/local/lib64/liblensfun.so.0.3.95
/usr/local/lib64/pkgconfig/lensfun.pc
/usr/local/lib64/liblensfun.so
/usr/local/bin/g-lensfun-update-data
/usr/local/bin/lensfun-update-data
/usr/local/bin/lensfun-convert-lcp
/usr/local/bin/lensfun-add-adapter
/usr/local/include/lensfun
/usr/local/include/lensfun/lensfun.h
/usr/local/lib/python3.7/site-packages/lensfun-0.3.95-py3.7.egg-info
/usr/local/lib/python3.7/site-packages/lensfun

Then I got sources for RT Release 5.7, but cmake does not see lensfun:

t_build$ cmake -DCMAKE_BUILD_TYPE=“release” -DCACHE_NAME_SUFFIX="" -DPROC_TARGET_NUMBER=“2” -DBUILD_BUNDLE=“ON” -DBUNDLE_BASE_INSTALL_DIR="$HOME/programs/rawtherapee" -DOPTION_OMP=“ON” …/RawTherapee/
– The C compiler identification is GNU 9.2.1
– The CXX compiler identification is GNU 9.2.1
– Check for working C compiler: /usr/lib64/ccache/cc
– Check for working C compiler: /usr/lib64/ccache/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /usr/lib64/ccache/c++
– Check for working CXX compiler: /usr/lib64/ccache/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– CMAKE_BUILD_TYPE: release
– Found PkgConfig: /usr/bin/pkg-config (found version “1.6.1”)
– Checking for module ‘gtk±3.0>=3.16’
– Found gtk±3.0, version 3.24.11
– Checking for module ‘gtkmm-3.0>=3.16’
– Found gtkmm-3.0, version 3.24.1
– Checking for module ‘glib-2.0>=2.44’
– Found glib-2.0, version 2.60.7
– Checking for module ‘glibmm-2.4>=2.44’
– Found glibmm-2.4, version 2.60.1
– Checking for module ‘cairomm-1.0’
– Found cairomm-1.0, version 1.12.0
– Checking for module ‘gio-2.0>=2.44’
– Found gio-2.0, version 2.60.7
– Checking for module ‘giomm-2.4>=2.44’
– Found giomm-2.4, version 2.60.1
– Checking for module ‘gthread-2.0>=2.44’
– Found gthread-2.0, version 2.60.7
– Checking for module ‘gobject-2.0>=2.44’
– Found gobject-2.0, version 2.60.7
– Checking for module ‘sigc+±2.0>=2.3.1’
– Found sigc+±2.0, version 2.10.2
– Checking for module ‘lensfun>=0.2’
– Package ‘lensfun’, required by ‘virtual:world’, not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:457 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPkgConfig.cmake:642 (_pkg_check_modules_internal)
CMakeLists.txt:322 (pkg_check_modules)

– Configuring incomplete, errors occurred!
See also “/home/andrew/soft/rt_build/CMakeFiles/CMakeOutput.log”.
See also “/home/andrew/soft/rt_build/CMakeFiles/CMakeError.log”.