[Buildroot] [PATCH 5/8] package/sdl3_ttf: do not build the samples or install man pages

Alsey Coleman Miller <[email protected]>
Newsgroups net.busybox.buildroot
Message-ID <[email protected]>
SDLTTF_SAMPLES builds example programs that are not installed, and
SDLTTF_INSTALL_MAN puts man pages on the target that Buildroot removes
again. STRICT makes the build fail on a missing dependency rather than
quietly dropping the feature it belongs to.

Also state SDLTTF_HARFBUZZ=OFF in the branch where harfbuzz is absent
instead of relying on the default set above it, so both halves of the
condition read the same way.

Signed-off-by: Alsey Coleman Miller <[email protected]>
---
 package/sdl3_ttf/sdl3_ttf.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/sdl3_ttf/sdl3_ttf.mk b/package/sdl3_ttf/sdl3_ttf.mk
index 12441e243e..130e07746e 100644
--- a/package/sdl3_ttf/sdl3_ttf.mk
+++ b/package/sdl3_ttf/sdl3_ttf.mk
@@ -15,11 +15,15 @@ SDL3_TTF_DEPENDENCIES = sdl3 freetype host-pkgconf
 
 SDL3_TTF_CONF_OPTS = \
 	-DSDLTTF_VENDORED=OFF \
-	-DSDLTTF_HARFBUZZ=OFF
+	-DSDLTTF_STRICT=ON \
+	-DSDLTTF_SAMPLES=OFF \
+	-DSDLTTF_INSTALL_MAN=OFF
 
 ifeq ($(BR2_PACKAGE_HARFBUZZ),y)
 SDL3_TTF_DEPENDENCIES += harfbuzz
 SDL3_TTF_CONF_OPTS += -DSDLTTF_HARFBUZZ=ON
+else
+SDL3_TTF_CONF_OPTS += -DSDLTTF_HARFBUZZ=OFF
 endif
 
 $(eval $(cmake-package))
-- 
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.