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