Subject: [bug#76757] [PATCH 5/5] gnu: Add sdl3-ttf.

From: Nguyễn Gia Phong <[email-masked]>
Date: Wed, 5 Mar 2025 17:44:08 +0900

* gnu/packages/sdl.scm (sdl3-ttf): New variable.

Change-Id: Ic0597ad96c75a4fa720a888b1f3eea84db6c368c
---
 gnu/packages/sdl.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index ceede7133c80..1b1ce0cbd29d 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -689,6 +689,26 @@ (define-public sdl3-image
      (list sdl3 libavif libjpeg-turbo libpng libtiff libwebp))
     (properties '((upstream-name . "SDL3_image")))))
 
+(define-public sdl3-ttf
+  (package (inherit sdl2-ttf)
+    (name "sdl3-ttf")
+    (version "3.2.0")
+    (source (origin
+             (method url-fetch)
+             (uri
+              (string-append "https://www.libsdl.org/projects/SDL_ttf/release/"
+                             "SDL3_ttf-" version ".tar.gz"))
+             (sha256
+              (base32
+               "0qpb08qh9f9fazhlj2gh1ni0j53cqhfcn0nlb3vdzmn7nzpisx4s"))))
+    (build-system cmake-build-system)
+    (arguments '(#:configure-flags '()
+                 #:tests? #f))          ;no check target
+    (propagated-inputs (list sdl3))
+    (inputs (list freetype harfbuzz plutosvg))
+    (native-inputs '())
+    (properties '((upstream-name . "SDL3_ttf")))))
+
 (define-public guile-sdl
   (package
     (name "guile-sdl")
-- 
2.48.1