ee363f5231
In order to get xkeyboard-config to build, it needs xkbcomp to be built on the host, i.e host-xapp_xkbcomp. In turn, xapp_xkbcomp needs xlib_libX11 and xlib_libxkbfile, which in turn need a few libraries. This commit adds all the relevant dependencies to build everything that is needed to get xkeyboard-config to build correctly. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
40 lines
1.8 KiB
Makefile
40 lines
1.8 KiB
Makefile
################################################################################
|
|
#
|
|
# xlib_libX11 -- X.Org X11 library
|
|
#
|
|
################################################################################
|
|
|
|
XLIB_LIBX11_VERSION = 1.3.2
|
|
XLIB_LIBX11_SOURCE = libX11-$(XLIB_LIBX11_VERSION).tar.bz2
|
|
XLIB_LIBX11_SITE = http://xorg.freedesktop.org/releases/individual/lib
|
|
XLIB_LIBX11_AUTORECONF = YES
|
|
XLIB_LIBX11_INSTALL_STAGING = YES
|
|
XLIB_LIBX11_DEPENDENCIES = libxcb xutil_util-macros xlib_xtrans xlib_libXau xlib_libXdmcp xproto_kbproto xproto_xproto xproto_xextproto xproto_inputproto xproto_xf86bigfontproto xproto_bigreqsproto xproto_xcmiscproto
|
|
XLIB_LIBX11_CONF_OPT = \
|
|
--disable-malloc0returnsnull \
|
|
--with-xcb \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--with-keysymdef=$(STAGING_DIR)/usr/include/X11/keysymdef.h \
|
|
--disable-specs
|
|
|
|
HOST_XLIB_LIBX11_DEPENDENCIES = host-xproto_xextproto host-libxcb host-xutil_util-macros host-xlib_xtrans host-xlib_libXau host-xlib_libXdmcp host-xproto_kbproto host-xproto_xproto host-xproto_xextproto host-xproto_inputproto host-xproto_xf86bigfontproto xproto_bigreqsproto host-xproto_xcmiscproto
|
|
|
|
$(eval $(call AUTOTARGETS,package/x11r7,xlib_libX11))
|
|
$(eval $(call AUTOTARGETS,package/x11r7,xlib_libX11,host))
|
|
|
|
# src/util/makekeys is executed at build time to generate ks_tables.h, so
|
|
# it should get compiled for the host. The libX11 makefile unfortunately
|
|
# doesn't know about cross compilation so this doesn't work.
|
|
# Long term, we should probably teach it about HOSTCC / HOST_CFLAGS, but for
|
|
# now simply disable the src/util Makefile and build makekeys by hand in
|
|
# advance
|
|
$(XLIB_LIBX11_HOOK_POST_EXTRACT):
|
|
echo '' > $(@D)/src/util/Makefile.am
|
|
touch $@
|
|
|
|
$(XLIB_LIBX11_HOOK_POST_CONFIGURE):
|
|
cd $(@D)/src/util && $(HOSTCC) $(HOSTCFLAGS) \
|
|
-I$(STAGING_DIR)/usr/include -o makekeys makekeys.c
|
|
touch $@
|