118.22. exiv2-0.28.9
Read and write image metadata — EXIF, IPTC and XMP
0.28.9-1 · GPL-2.0-or-later · 1.6 SBU · 5.2 MiB, 59 files · 41_system, 701 of 1047 · ports/core/image-libs/exiv2
Homepage: https://exiv2.org/
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/image-libs.txt:
40 000 photos on a stick are 40 000 files named DSC_* until something reads the date, the lens and the position out of them.
Exiv2 reads and writes image metadata: EXIF, IPTC and XMP, the date, camera, lens and position a camera writes into every photo. It is a C++ library and the exiv2 command. gimp, darktable, digikam, krita, gwenview, rawtherapee, qgis and gexiv2 link it.
Depends on: cmake, ninja, pkgconf, expat, zlib, brotli, inih.
Required by (15): darktable, digikam, gexiv2, gimp, gthumb, gwenview, kfilemetadata, koko, krita, libkexiv2, plasma-camera, qgis, rawtherapee, stellarium, swayimg.
Sources: exiv2-0.28.9.tar.gz (45.0 MiB). Every step kpkg takes applies to this port.
Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
-DEXIV2_ENABLE_CURL=OFF, line 29: curl
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install exiv2'
build.sh:
mkdir -p build && cd build
cmake .. -G Ninja \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DEXIV2_ENABLE_XMP=ON \
-DEXIV2_ENABLE_EXTERNAL_XMP=OFF \
-DEXIV2_ENABLE_PNG=ON \
-DEXIV2_ENABLE_BMFF=ON \
-DEXIV2_ENABLE_BROTLI=ON \
-DEXIV2_ENABLE_VIDEO=ON \
-DEXIV2_ENABLE_LENSDATA=ON \
-DEXIV2_ENABLE_INIH=ON \
-DEXIV2_ENABLE_NLS=OFF \
-DEXIV2_ENABLE_WEBREADY=OFF \
-DEXIV2_ENABLE_CURL=OFF \
-DEXIV2_BUILD_DOC=OFF \
-DEXIV2_BUILD_SAMPLES=OFF \
-DEXIV2_BUILD_UNIT_TESTS=OFF \
-DEXIV2_BUILD_EXIV2_COMMAND=ON
ninja
DESTDIR=$PKG ninja install
-DEXIV2_ENABLE_XMP=ON— Build XMP support from the XMP toolkit copy in the source tree’sxmpsdk/, which parses through expat;-DEXIV2_ENABLE_EXTERNAL_XMP=OFFis the other half, and the two are mutually exclusive.-DEXIV2_ENABLE_PNG=ON— With_BMFF,_BROTLI,_VIDEOand_LENSDATA, read metadata in PNG (through zlib), in ISO base media files such as HEIF, AVIF, CR3 and JPEG XL (whose compressed boxes need brotli), and in video containers, and include the Nikon lens table. All are upstream’s defaults and are named.-DEXIV2_ENABLE_INIH=ON— Read a.exiv2configuration file, from the working directory or else the home directory, which can name lenses the built-in tables do not know, through the inih port. inih is looked up without being required, so it is independs.-DEXIV2_ENABLE_NLS=OFF— Build no message catalogues.-DEXIV2_ENABLE_WEBREADY=OFF— With-DEXIV2_ENABLE_CURL=OFF, build no HTTP access: the library opens only local files, never a URL handed to it as a path.-DEXIV2_BUILD_DOC=OFF— With_SAMPLESand_UNIT_TESTSoff, build no API documentation, sample programs or tests.-DEXIV2_BUILD_EXIV2_COMMAND=ON— Build theexiv2program; upstream’s default, named.
Programs: exiv2.
Libraries: libexiv2.so.
Directories: /usr/include/exiv2, /usr/lib/cmake/exiv2, /usr/share/licenses/exiv2.