package/sdl3_ttf: new package

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>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Michael Fischer
2026-07-14 13:52:05 +02:00
committed by Julien Olivain
parent f62a95d1d7
commit baa86d079d
5 changed files with 39 additions and 0 deletions

View File

@@ -2429,6 +2429,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/

View File

@@ -367,6 +367,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"

View File

@@ -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/

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 63547d58d0185c833213885b635a2c0548201cc8f301e6587c0be1a67e1e045d SDL3_ttf-3.2.2.tar.gz
sha256 7826eca0a0f7e591f38dd844e207a200aac81a59b20d8a30c3af8c6282af13e6 LICENSE.txt

View File

@@ -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))