sdl2_ttf.mk 1.1 KB

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