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