mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
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 <liliana.prikler@gmail.com>
This commit is contained in:
committed by
Liliana Marie Prikler
parent
91462fd1ca
commit
eb50c1fae0
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user