python-pathvalidate: bump version to 0.14.1
[buildroot-gz.git] / package / x11r7 / xlib_libX11 / xlib_libX11.mk
blobfe1a7c3bc5978e0f2bf704db641b1ca973666029
1 ################################################################################
3 # xlib_libX11
5 ################################################################################
7 XLIB_LIBX11_VERSION = 1.6.5
8 XLIB_LIBX11_SOURCE = libX11-$(XLIB_LIBX11_VERSION).tar.bz2
9 XLIB_LIBX11_SITE = https://xorg.freedesktop.org/archive/individual/lib
10 XLIB_LIBX11_LICENSE = MIT
11 XLIB_LIBX11_LICENSE_FILES = COPYING
12 XLIB_LIBX11_INSTALL_STAGING = YES
13 XLIB_LIBX11_DEPENDENCIES = \
14 libxcb \
15 xutil_util-macros \
16 xlib_xtrans \
17 xlib_libXau \
18 xlib_libXdmcp \
19 xproto_kbproto \
20 xproto_xproto \
21 xproto_xextproto \
22 xproto_inputproto \
23 xproto_xf86bigfontproto \
24 host-xproto_xproto
26 HOST_XLIB_LIBX11_DEPENDENCIES = \
27 host-libxcb \
28 host-xutil_util-macros \
29 host-xlib_xtrans \
30 host-xlib_libXau \
31 host-xlib_libXdmcp \
32 host-xproto_kbproto \
33 host-xproto_xproto \
34 host-xproto_xextproto \
35 host-xproto_inputproto \
36 host-xproto_xf86bigfontproto
38 XLIB_LIBX11_CONF_OPTS = \
39 --disable-malloc0returnsnull \
40 --with-xcb \
41 --disable-specs \
42 --without-perl
44 HOST_XLIB_LIBX11_CONF_OPTS = \
45 --disable-specs \
46 --without-perl
48 # src/util/makekeys is executed at build time to generate ks_tables.h, so
49 # it should get compiled for the host. The libX11 makefile unfortunately
50 # doesn't have X11_CFLAGS_FOR_BUILD so this doesn't work. For buildroot,
51 # we know the X11 includes are in $(HOST_DIR)/usr/include, which are already
52 # in the CFLAGS_FOR_BUILD, so we can just remove the X11_CFLAGS
53 define XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
54 $(SED) '/X11_CFLAGS/d' $(@D)/src/util/Makefile*
55 endef
57 XLIB_LIBX11_POST_PATCH_HOOKS += XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
58 HOST_XLIB_LIBX11_POST_PATCH_HOOKS += XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
60 $(eval $(autotools-package))
61 $(eval $(host-autotools-package))