2007-08-10 21:07:51 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# xlib_libX11 -- X.Org X11 library
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2010-02-28 10:33:42 +01:00
|
|
|
XLIB_LIBX11_VERSION = 1.3.2
|
2007-08-10 21:07:51 +02:00
|
|
|
XLIB_LIBX11_SOURCE = libX11-$(XLIB_LIBX11_VERSION).tar.bz2
|
|
|
|
XLIB_LIBX11_SITE = http://xorg.freedesktop.org/releases/individual/lib
|
2009-03-29 21:10:30 +02:00
|
|
|
XLIB_LIBX11_AUTORECONF = YES
|
2007-08-10 21:07:51 +02:00
|
|
|
XLIB_LIBX11_INSTALL_STAGING = YES
|
2010-12-21 14:14:53 +01:00
|
|
|
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 host-xproto_xproto
|
2010-03-31 12:13:51 +02:00
|
|
|
XLIB_LIBX11_CONF_OPT = \
|
|
|
|
--disable-malloc0returnsnull \
|
|
|
|
--with-xcb \
|
|
|
|
--with-keysymdef=$(STAGING_DIR)/usr/include/X11/keysymdef.h \
|
|
|
|
--disable-specs
|
2007-08-10 21:07:51 +02:00
|
|
|
|
2011-05-16 17:10:48 +02:00
|
|
|
HOST_XLIB_LIBX11_CONF_OPT = \
|
|
|
|
--disable-specs
|
|
|
|
|
2010-07-22 15:37:16 +02:00
|
|
|
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
|
|
|
|
|
2009-03-29 21:10:30 +02:00
|
|
|
# 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
|
2010-09-01 22:55:03 +02:00
|
|
|
define XLIB_LIBX11_DISABLE_MAKEKEYS_BUILD
|
2009-03-29 21:10:30 +02:00
|
|
|
echo '' > $(@D)/src/util/Makefile.am
|
2010-09-01 22:55:03 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
XLIB_LIBX11_POST_EXTRACT_HOOKS += XLIB_LIBX11_DISABLE_MAKEKEYS_BUILD
|
2009-03-29 21:10:30 +02:00
|
|
|
|
2010-09-01 22:55:03 +02:00
|
|
|
define XLIB_LIBX11_BUILD_MAKEKEYS_FOR_HOST
|
2010-12-21 14:14:53 +01:00
|
|
|
cd $(@D)/src/util && $(HOSTCC) $(HOST_CFLAGS) -o makekeys makekeys.c
|
2010-09-01 22:55:03 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
XLIB_LIBX11_POST_CONFIGURE_HOOKS += XLIB_LIBX11_BUILD_MAKEKEYS_FOR_HOST
|
|
|
|
|
2011-09-29 21:57:43 +02:00
|
|
|
$(eval $(call AUTOTARGETS))
|
|
|
|
$(eval $(call AUTOTARGETS,host))
|