1 ################################################################################
5 ################################################################################
7 XLIB_LIBX11_VERSION = 1.6.3
8 XLIB_LIBX11_SOURCE = libX11-$(XLIB_LIBX11_VERSION).tar.bz2
9 XLIB_LIBX11_SITE = http://xorg.freedesktop.org/releases/individual/lib
10 XLIB_LIBX11_LICENSE = MIT
11 XLIB_LIBX11_LICENSE_FILES = COPYING
12 XLIB_LIBX11_INSTALL_STAGING = YES
13 XLIB_LIBX11_DEPENDENCIES = \
23 xproto_xf86bigfontproto \
26 XLIB_LIBX11_CONF_OPTS = \
27 --disable-malloc0returnsnull \
32 HOST_XLIB_LIBX11_CONF_OPTS = \
36 # src/util/makekeys is executed at build time to generate ks_tables.h, so
37 # it should get compiled for the host. The libX11 makefile unfortunately
38 # doesn't have X11_CFLAGS_FOR_BUILD so this doesn't work. For buildroot,
39 # we know the X11 includes are in $(HOST_DIR)/usr/include, which are already
40 # in the CFLAGS_FOR_BUILD, so we can just remove the X11_CFLAGS
41 define XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
42 $(SED) '/X11_CFLAGS/d' $(@D)/src/util/Makefile*
45 XLIB_LIBX11_POST_PATCH_HOOKS += XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
46 HOST_XLIB_LIBX11_POST_PATCH_HOOKS += XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
48 $(eval $(autotools-package))
49 $(eval $(host-autotools-package))