kumquat-buildroot/package/x11r7/xcb-proto/xcb-proto.mk
Bernd Kuhls 862e1221d1 xorg: Bump xcb-proto & libxcb version to 1.10
These have to be bumped together as new libxcb requires new xcb-proto, and
old libxcb doesn't build with new xcb-proto.

[Peter: fixup xcb-proto.pc instead of playing tricks with --define-variable]
Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-01-05 21:04:04 +01:00

29 lines
903 B
Makefile

################################################################################
#
# xcb-proto
#
################################################################################
XCB_PROTO_VERSION = 1.10
XCB_PROTO_SOURCE = xcb-proto-$(XCB_PROTO_VERSION).tar.bz2
XCB_PROTO_SITE = http://xcb.freedesktop.org/dist/
XCB_PROTO_LICENSE = MIT
XCB_PROTO_LICENSE_FILES = COPYING
XCB_PROTO_INSTALL_STAGING = YES
XCB_PROTO_DEPENDENCIES = host-python
# xcbincludedir/pythondir is used by E.G. libxcb at build time to find the
# xml / python files, so ensure these expand to their full (host) paths
define XCB_PROTO_FIXUP_PC_FILE
$(SED) 's|^\(xcbincludedir=\)|\1$(STAGING_DIR)|' \
-e 's|^\(pythondir=\)|\1$(STAGING_DIR)|' \
$(STAGING_DIR)/usr/lib/pkgconfig/xcb-proto.pc
endef
XCB_PROTO_POST_INSTALL_STAGING_HOOKS += XCB_PROTO_FIXUP_PC_FILE
$(eval $(autotools-package))
$(eval $(host-autotools-package))