xlib_libXfont.mk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ################################################################################
  2. #
  3. # xlib_libXfont
  4. #
  5. ################################################################################
  6. XLIB_LIBXFONT_VERSION = 1.5.4
  7. XLIB_LIBXFONT_SOURCE = libXfont-$(XLIB_LIBXFONT_VERSION).tar.bz2
  8. XLIB_LIBXFONT_SITE = http://xorg.freedesktop.org/releases/individual/lib
  9. XLIB_LIBXFONT_LICENSE = MIT
  10. XLIB_LIBXFONT_LICENSE_FILES = COPYING
  11. XLIB_LIBXFONT_INSTALL_STAGING = YES
  12. XLIB_LIBXFONT_DEPENDENCIES = freetype xlib_libfontenc xlib_xtrans xorgproto
  13. HOST_XLIB_LIBXFONT_DEPENDENCIES = \
  14. host-freetype host-xlib_libfontenc host-xlib_xtrans \
  15. host-xorgproto
  16. XLIB_LIBXFONT_CONF_OPTS = --disable-devel-docs
  17. HOST_XLIB_LIBXFONT_CONF_OPTS = --disable-devel-docs
  18. ifeq ($(BR2_microblaze),y)
  19. # The microblaze toolchains don't define the __ELF__ preprocessor
  20. # symbol even though they do use the elf format. LibXfont checks for
  21. # this symbol to know if weak symbols are supported, and otherwise
  22. # falls back to emulation code using dlopen - Causing linker issues
  23. # for stuff using libXfont.
  24. # Work around it by defining the symbol here as well.
  25. XLIB_LIBXFONT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D__ELF__"
  26. endif
  27. XLIB_LIBXFONT_CFLAGS = $(TARGET_CFLAGS)
  28. ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
  29. XLIB_LIBXFONT_CFLAGS += -O0
  30. endif
  31. XLIB_LIBXFONT_CONF_ENV += CFLAGS="$(XLIB_LIBXFONT_CFLAGS)"
  32. $(eval $(autotools-package))
  33. $(eval $(host-autotools-package))