Skip to contentSkip to conversation

package/sdl2_ttf: drop FREETYPE_CONFIG

PATCH In review Fabrice Fontaine 2 participants 4 messages Feb 9, 2022 – Feb 16, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 package/sdl2_ttf: drop FREETYPE_CONFIG

FREETYPE_CONFIG is not used since version 2.0.15 and
https://github.com/libsdl-org/SDL_ttf/commit/50d72e55315e25d34f4209824275e3b1cbe6c6f8

---
 package/sdl2_ttf/sdl2_ttf.mk | 3 ---
 1 file changed, 3 deletions(-)
package/sdl2_ttf/sdl2_ttf.mk +0 -3
index 1fe7c0a075..3b2b35e157 100644
@@ -12,9 +12,6 @@ SDL2_TTF_LICENSE_FILES = COPYING.txt
 SDL2_TTF_INSTALL_STAGING = YES
 SDL2_TTF_DEPENDENCIES = sdl2 freetype host-pkgconf
 
-SDL2_TTF_CONF_ENV = \
-	FREETYPE_CONFIG=$(STAGING_DIR)/usr/bin/freetype-config
-
 # x-includes and x-libraries must be set for cross-compiling
 # By default x_includes and x_libraries contains unsafe paths.
 # (/usr/include and /usr/lib)
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/3 package/sdl2_ttf: disable builtin freetype2

Disable builtin freetype2 which is enabled by default since bump to version 2.0.18 in commit f4da031a77f200515bcc5b2e0fe665a7b4f2a780 and
https://github.com/libsdl-org/SDL_ttf/commit/834ec54127dc9c2a12928f5fe32cf110ec4c7a7f

---
 package/sdl2_ttf/sdl2_ttf.mk | 1 +
 1 file changed, 1 insertion(+)
package/sdl2_ttf/sdl2_ttf.mk +1 -0
index 3b2b35e157..e9397d8505 100644
@@ -11,6 +11,7 @@ SDL2_TTF_LICENSE = Zlib
 SDL2_TTF_LICENSE_FILES = COPYING.txt
 SDL2_TTF_INSTALL_STAGING = YES
 SDL2_TTF_DEPENDENCIES = sdl2 freetype host-pkgconf
+SDL2_TTF_CONF_OPTS = --disable-freetype-builtin
 
 # x-includes and x-libraries must be set for cross-compiling
 # By default x_includes and x_libraries contains unsafe paths.
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH 3/3 package/sdl2_ttf: add harfbuzz optional dependency

In reply to Fabrice Fontaine

harfbuzz is an optional dependency (which is enabled by default) since version 2.0.18 and
https://github.com/libsdl-org/SDL_ttf/commit/328bbed78db496ff36720e8a809661ffb236e673

If harfbuzz is not disabled and not found, builtin harfbuzz is enabled resulting in the following build failure without C++ since commit f4da031a77f200515bcc5b2e0fe665a7b4f2a780 and
https://github.com/libsdl-org/SDL_ttf/commit/9a7ef3fb640a1f086d9b02954c3b4bbfb3578871:

configure: error: *** A compiler with support for C++11 language features is required.

Fixes:
- http://autobuild.buildroot.org/results/3fecb96a8063b1a28703682e9373714c1c9cfa24

---
 package/sdl2_ttf/sdl2_ttf.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/sdl2_ttf/sdl2_ttf.mk +7 -0
index e9397d8505..54e76815f1 100644
@@ -13,6 +13,13 @@ SDL2_TTF_INSTALL_STAGING = YES
 SDL2_TTF_DEPENDENCIES = sdl2 freetype host-pkgconf
 SDL2_TTF_CONF_OPTS = --disable-freetype-builtin
 
+ifeq ($(BR2_PACKAGE_HARFBUZZ),y)
+SDL2_TTF_DEPENDENCIES += harfbuzz
+SDL2_TTF_CONF_OPTS += --enable-harfbuzz
+else
+SDL2_TTF_CONF_OPTS += --disable-harfbuzz
+endif
+
 # x-includes and x-libraries must be set for cross-compiling
 # By default x_includes and x_libraries contains unsafe paths.
 # (/usr/include and /usr/lib)
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Fabrice Fontaine
Quoted 4 lines · Fabrice Fontaine

FREETYPE_CONFIG is not used since version 2.0.15 and
https://github.com/libsdl-org/SDL_ttf/commit/50d72e55315e25d34f4209824275e3b1cbe6c6f8

All 3 applied to master, thanks.

Regards,
Arnout

Quoted 9 lines
---
  package/sdl2_ttf/sdl2_ttf.mk | 3 ---
  1 file changed, 3 deletions(-)
package/sdl2_ttf/sdl2_ttf.mk +0 -0
index 1fe7c0a075..3b2b35e157 100644

package/sdl2_ttf/sdl2_ttf.mk SDL2_TTF_LICENSE_FILES = COPYING.txt · line 17

Quoted 9 lines
package/sdl2_ttf/sdl2_ttf.mk +0 -3
@@ -12,9 +12,6 @@ SDL2_TTF_LICENSE_FILES = COPYING.txt
  SDL2_TTF_INSTALL_STAGING = YES
  SDL2_TTF_DEPENDENCIES = sdl2 freetype host-pkgconf
 
-SDL2_TTF_CONF_ENV = \
-	FREETYPE_CONFIG=$(STAGING_DIR)/usr/bin/freetype-config
-
  # x-includes and x-libraries must be set for cross-compiling
  # By default x_includes and x_libraries contains unsafe paths.
  # (/usr/include and /usr/lib)

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot