Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Fischer <mf@go-sys.de>
To: <buildroot@buildroot.org>
Cc: Michael Fischer <mf@go-sys.de>
Subject: [Buildroot] [PATCH 4/4] package/sdl3_ttf: new package
Date: Tue, 14 Jul 2026 13:52:05 +0200	[thread overview]
Message-ID: <20260714115205.29838-4-mf@go-sys.de> (raw)
In-Reply-To: <20260714115205.29838-1-mf@go-sys.de>

SDL3_ttf is a TrueType font rendering library for SDL3, based on
freetype, with optional harfbuzz support.

https://github.com/libsdl-org/SDL_ttf

Signed-off-by: Michael Fischer <mf@go-sys.de>
---
 DEVELOPERS                     |  1 +
 package/Config.in              |  1 +
 package/sdl3_ttf/Config.in     |  9 +++++++++
 package/sdl3_ttf/sdl3_ttf.hash |  3 +++
 package/sdl3_ttf/sdl3_ttf.mk   | 25 +++++++++++++++++++++++++
 5 files changed, 39 insertions(+)
 create mode 100644 package/sdl3_ttf/Config.in
 create mode 100644 package/sdl3_ttf/sdl3_ttf.hash
 create mode 100644 package/sdl3_ttf/sdl3_ttf.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index ae5ba01850..93ff873770 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2409,6 +2409,7 @@ F:	package/sdl2/
 F:	package/sdl3/
 F:	package/sdl3_gfx/
 F:	package/sdl3_image/
+F:	package/sdl3_ttf/
 
 N:	Michael Nosthoff <buildroot@heine.tech>
 F:	package/boost/
diff --git a/package/Config.in b/package/Config.in
index 7889f00845..19b5f7c1d1 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -366,6 +366,7 @@ comment "Graphic libraries"
 	source "package/sdl3/Config.in"
 	source "package/sdl3_gfx/Config.in"
 	source "package/sdl3_image/Config.in"
+	source "package/sdl3_ttf/Config.in"
 	source "package/spirv-headers/Config.in"
 	source "package/tk/Config.in"
 	source "package/virglrenderer/Config.in"
diff --git a/package/sdl3_ttf/Config.in b/package/sdl3_ttf/Config.in
new file mode 100644
index 0000000000..d1c6c2efd0
--- /dev/null
+++ b/package/sdl3_ttf/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_SDL3_TTF
+	bool "sdl3_ttf"
+	depends on BR2_PACKAGE_SDL3
+	select BR2_PACKAGE_FREETYPE
+	help
+	  SDL3_ttf is a sample TrueType font library. It allows you to
+	  use TrueType fonts in your SDL3 applications.
+
+	  http://www.libsdl.org/projects/SDL_ttf/
diff --git a/package/sdl3_ttf/sdl3_ttf.hash b/package/sdl3_ttf/sdl3_ttf.hash
new file mode 100644
index 0000000000..a959f011ce
--- /dev/null
+++ b/package/sdl3_ttf/sdl3_ttf.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  63547d58d0185c833213885b635a2c0548201cc8f301e6587c0be1a67e1e045d  SDL3_ttf-3.2.2.tar.gz
+sha256  7826eca0a0f7e591f38dd844e207a200aac81a59b20d8a30c3af8c6282af13e6  LICENSE.txt
diff --git a/package/sdl3_ttf/sdl3_ttf.mk b/package/sdl3_ttf/sdl3_ttf.mk
new file mode 100644
index 0000000000..12441e243e
--- /dev/null
+++ b/package/sdl3_ttf/sdl3_ttf.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# sdl3_ttf
+#
+################################################################################
+
+SDL3_TTF_VERSION = 3.2.2
+SDL3_TTF_SOURCE = SDL3_ttf-$(SDL3_TTF_VERSION).tar.gz
+SDL3_TTF_SITE = https://www.libsdl.org/projects/SDL_ttf/release
+SDL3_TTF_LICENSE = Zlib
+SDL3_TTF_LICENSE_FILES = LICENSE.txt
+SDL3_TTF_INSTALL_STAGING = YES
+
+SDL3_TTF_DEPENDENCIES = sdl3 freetype host-pkgconf
+
+SDL3_TTF_CONF_OPTS = \
+	-DSDLTTF_VENDORED=OFF \
+	-DSDLTTF_HARFBUZZ=OFF
+
+ifeq ($(BR2_PACKAGE_HARFBUZZ),y)
+SDL3_TTF_DEPENDENCIES += harfbuzz
+SDL3_TTF_CONF_OPTS += -DSDLTTF_HARFBUZZ=ON
+endif
+
+$(eval $(cmake-package))
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2026-07-14 11:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-14 11:52 [Buildroot] [PATCH 1/4] package/sdl3: new package Michael Fischer
2026-07-14 11:52 ` [Buildroot] [PATCH 2/4] package/sdl3_gfx: " Michael Fischer
2026-07-14 11:52 ` [Buildroot] [PATCH 3/4] package/sdl3_image: " Michael Fischer
2026-07-14 11:52 ` Michael Fischer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260714115205.29838-4-mf@go-sys.de \
    --to=mf@go-sys.de \
    --cc=buildroot@buildroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox