1################################################################################ 2# 3# sdl2_ttf 4# 5################################################################################ 6 7SDL2_TTF_VERSION = 2.0.18 8SDL2_TTF_SOURCE = SDL2_ttf-$(SDL2_TTF_VERSION).tar.gz 9SDL2_TTF_SITE = http://www.libsdl.org/projects/SDL_ttf/release 10SDL2_TTF_LICENSE = Zlib 11SDL2_TTF_LICENSE_FILES = COPYING.txt 12SDL2_TTF_INSTALL_STAGING = YES 13SDL2_TTF_DEPENDENCIES = sdl2 freetype host-pkgconf 14SDL2_TTF_CONF_OPTS = --disable-freetype-builtin --disable-harfbuzz-builtin 15 16ifeq ($(BR2_PACKAGE_HARFBUZZ),y) 17SDL2_TTF_DEPENDENCIES += harfbuzz 18SDL2_TTF_CONF_OPTS += --enable-harfbuzz 19else 20SDL2_TTF_CONF_OPTS += --disable-harfbuzz 21endif 22 23# x-includes and x-libraries must be set for cross-compiling 24# By default x_includes and x_libraries contains unsafe paths. 25# (/usr/include and /usr/lib) 26ifeq ($(BR2_PACKAGE_SDL2_X11),y) 27SDL2_TTF_CONF_OPTS += \ 28 --with-x \ 29 --x-includes=$(STAGING_DIR)/usr/include \ 30 --x-libraries=$(STAGING_DIR)/usr/lib 31else 32SDL2_TTF_CONF_OPTS += \ 33 --without-x 34endif 35 36$(eval $(autotools-package)) 37