209.4. sdl3-image-3.4.6
Load PNG, JPEG, WebP, AVIF, JPEG XL, TIFF, SVG and animated formats into SDL3 surfaces
3.4.6-1 · Zlib · 0.1 SBU · 699.5 KiB, 122 files · 42_graphics, 93 of 189 · ports/core/game-libs/sdl3-image
Homepage: https://github.com/libsdl-org/SDL_image
Why it is in KDOS. The comment above the 9 ports from sdl2-image to sdl3-ttf in script/phases/42_graphics/packages.d/game-libs.txt:
The SDL satellites for SDL 2 and SDL 3. There is no
sdl2-config: a build that asks for it is givenpkg-config sdl2, and an SDL 2 program runs on SDL 3 through sdl2-compat.
Depends on: cmake, ninja, pkgconf, perl, sdl3, libjpeg-turbo, libpng, libtiff, libwebp, libavif, libjxl, zlib.
Required by (2): amiberry, freerdp.
Sources: sdl3-image-3.4.6.tar.gz (8.2 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install sdl3-image'
build.sh:
mkdir -p build && cd build
cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-DSDLIMAGE_VENDORED=OFF \
-DSDLIMAGE_STRICT=ON \
-DSDLIMAGE_DEPS_SHARED=OFF \
-DSDLIMAGE_BACKEND_STB=OFF \
-DSDLIMAGE_SAMPLES=OFF \
-DSDLIMAGE_TESTS=OFF \
-DSDLIMAGE_INSTALL_MAN=ON \
-DSDLIMAGE_AVIF=ON \
-DSDLIMAGE_JPG=ON \
-DSDLIMAGE_JXL=ON \
-DSDLIMAGE_PNG=ON \
-DSDLIMAGE_PNG_LIBPNG=ON \
-DSDLIMAGE_TIF=ON \
-DSDLIMAGE_WEBP=ON \
-DSDLIMAGE_SVG=ON
ninja
DESTDIR=$PKG ninja install
Libraries: libSDL3_image.so.
Directories: /usr/include/SDL3_image, /usr/lib/cmake/SDL3_image, /usr/share/licenses/SDL3_image, /usr/share/licenses/sdl3-image.