Exiv2 contains a C++ library and a command line utility for managing image and video metadata.
This package is known to build and work properly using an LFS 12.2 platform.
Download (HTTP): https://github.com/Exiv2/exiv2/archive/v0.28.3/exiv2-0.28.3.tar.gz
Download MD5 sum: 9944863400a43e79583b790f710b86c2
Download size: 44 MB
Estimated disk space required: 133 MB (with tests)
Estimated build time: 0.3 SBU (Using parallelism=4, with tests)
Brotli-1.1.0, cURL-8.9.1, and inih-58
Install Exiv2 by running the following commands:
mkdir build &&
cd    build &&
cmake -D CMAKE_INSTALL_PREFIX=/usr   \
      -D CMAKE_BUILD_TYPE=Release    \
      -D EXIV2_ENABLE_VIDEO=yes      \
      -D EXIV2_ENABLE_WEBREADY=yes   \
      -D EXIV2_ENABLE_CURL=yes       \
      -D EXIV2_BUILD_SAMPLES=no      \
      -D CMAKE_SKIP_INSTALL_RPATH=ON \
      -G Ninja ..                    &&
ninja
        To test the results, issue: ninja test.
          Now, as the root user:
        
ninja install
          -D
          CMAKE_SKIP_INSTALL_RPATH=ON: This switch makes
          cmake remove
          hardcoded library search paths (rpath) when installing a binary
          executable file or a shared library. This package does not need
          rpath once it's installed into the standard location, and rpath may
          sometimes cause unwanted effects or even security issues.
        
          -D EXIV2_ENABLE_VIDEO=yes:
          This switch enables managing video metadata.
        
          -D
          EXIV2_ENABLE_WEBREADY=yes: This switch enables managing
          web image metadata.
        
          -D EXIV2_BUILD_SAMPLES=no:
          This switch is necessary to suppress building and installing sample
          programs. If the sample programs are built, 34 additional programs
          are installed in /usr/bin.
        
          -D EXIV2_ENABLE_CURL=yes:
          This switch is necessary to enable network/http capabilities.
        
          -D EXIV2_ENABLE_INIH=no: Use this
          switch if you have not installed inih-58.
        
          -D EXIV2_ENABLE_BROTLI=no: Use this
          switch if you have not installed Brotli-1.1.0.