From fd4e7beeab52c34a9ab70445809f1fae071cb371 Mon Sep 17 00:00:00 2001 From: Sergey Astaf'ev <44395274+ProgGrey@users.noreply.github.com> Date: Sat, 13 Jun 2026 01:10:07 +0300 Subject: [PATCH] [sdl3-image] Add support for JPEG XL and AVIF image formats (#52345) --- ports/sdl3-image/portfile.cmake | 6 ++---- ports/sdl3-image/vcpkg.json | 21 ++++++++++++++++++++- versions/baseline.json | 2 +- versions/s-/sdl3-image.json | 5 +++++ 4 files changed, 28 insertions(+), 6 deletions(-) diff --git a/ports/sdl3-image/portfile.cmake b/ports/sdl3-image/portfile.cmake index 58653b866c..776ab70e1b 100644 --- a/ports/sdl3-image/portfile.cmake +++ b/ports/sdl3-image/portfile.cmake @@ -12,14 +12,12 @@ vcpkg_from_github( vcpkg_check_features( OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES + avif SDLIMAGE_AVIF jpeg SDLIMAGE_JPG + jxl SDLIMAGE_JXL png SDLIMAGE_PNG tiff SDLIMAGE_TIF webp SDLIMAGE_WEBP - INVERTED_FEATURES - # Disabled capabilities: Needing dependencies. - core SDLIMAGE_AVIF - core SDLIMAGE_JXL ) vcpkg_cmake_configure( diff --git a/ports/sdl3-image/vcpkg.json b/ports/sdl3-image/vcpkg.json index 04b433585b..2b5afadc92 100644 --- a/ports/sdl3-image/vcpkg.json +++ b/ports/sdl3-image/vcpkg.json @@ -1,7 +1,8 @@ { "name": "sdl3-image", "version": "3.4.4", - "description": "SDL_image is an image file loading library. It loads images as SDL surfaces and textures, and supports the following formats: BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, WEBP, XCF, XPM, XV", + "port-version": 1, + "description": "SDL_image is an image file loading library. It loads images as SDL surfaces and textures, and supports the following formats: AVIF, BMP, GIF, JPEG, JPEG XL, LBM, PCX, PNG, PNM, TGA, TIFF, WEBP, XCF, XPM, XV", "homepage": "https://github.com/libsdl-org/SDL_image", "license": "Zlib", "dependencies": [ @@ -19,12 +20,30 @@ } ], "features": { + "avif": { + "description": "Support for AVIF image format", + "dependencies": [ + { + "name": "libavif", + "features": [ + "aom", + "dav1d" + ] + } + ] + }, "jpeg": { "description": "Support for JPEG image format", "dependencies": [ "libjpeg-turbo" ] }, + "jxl": { + "description": "Support for JPEG XL image format", + "dependencies": [ + "libjxl" + ] + }, "png": { "description": "Support for PNG image format", "dependencies": [ diff --git a/versions/baseline.json b/versions/baseline.json index 8c87107691..bccac26de4 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -9138,7 +9138,7 @@ }, "sdl3-image": { "baseline": "3.4.4", - "port-version": 0 + "port-version": 1 }, "sdl3-mixer": { "baseline": "3.2.4", diff --git a/versions/s-/sdl3-image.json b/versions/s-/sdl3-image.json index 99a586e23a..46cad4946a 100644 --- a/versions/s-/sdl3-image.json +++ b/versions/s-/sdl3-image.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "9b42d5467aa2899a40271972eb817d0da82eab05", + "version": "3.4.4", + "port-version": 1 + }, { "git-tree": "7d64d0dd26d1a025b99b83429838551fde4a65cf", "version": "3.4.4",