guix_mirror_bot pushed a commit to branch master
in repository guix.

commit eb50c1fae0903c49fa94e09ac6665c94cd916d17
Author: Nguyễn Gia Phong <[email protected]>
AuthorDate: Wed Mar 5 15:45:33 2025 +0900

    gnu: Add sdl3-image.
    
    * gnu/packages/sdl.scm (sdl3-image): New variable.
    (sdl-image)[home-page]: Update URL.
    
    Change-Id: I744f515aa7b4c814db86d21209ea31666b19ef3f
    Signed-off-by: Liliana Marie Prikler <[email protected]>
---
 gnu/packages/sdl.scm | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 1641e6a4f5..6a7a8e4a87 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -388,7 +388,7 @@ other supporting functions for SDL.")
     (description "SDL_image is an image file loading library for SDL that
 supports the following formats: BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF,
 WEBP, XCF, XPM, and XV.")
-    (home-page "https://www.libsdl.org/projects/SDL_image/";)
+    (home-page "https://github.com/libsdl-org/SDL_image";)
     (license license:zlib)))
 
 (define-public sdl-mixer
@@ -803,6 +803,29 @@ for the Simple Direct Media (SDL) cross-platform API 
layer.")
     (license license:zlib)
     (properties '((upstream-name . "SDL3_gfx")))))
 
+(define-public sdl3-image
+  (package (inherit sdl2-image)
+    (name "sdl3-image")
+    (version "3.2.4")
+    (source
+     (origin
+      (method url-fetch)
+      (uri
+       (string-append "https://www.libsdl.org/projects/SDL_image/release/";
+                      "SDL3_image-" version ".tar.gz"))
+      (sha256
+       (base32 "10n1rxyswchd8vppalh2bl3ah5fww5chd5cdvnhds7r60invs9d7"))))
+    (build-system cmake-build-system)
+    (arguments
+     ;; Link the libraries instead of dlopening them.
+     '(#:configure-flags '("-DSDLIMAGE_AVIF_SHARED=OFF"
+                           "-DSDLIMAGE_TIF_SHARED=OFF"
+                           "-DSDLIMAGE_WEBP_SHARED=OFF"
+                           "-DSDLIMAGE_TESTS=ON")))
+    (propagated-inputs
+     (list sdl3 libavif libjpeg-turbo libpng libtiff libwebp))
+    (properties '((upstream-name . "SDL3_image")))))
+
 (define-public sdl3-ttf
   (package
     (name "sdl3-ttf")

Reply via email to