1 ################################################################################
5 ################################################################################
7 XCB_PROTO_VERSION = 1.11
8 XCB_PROTO_SOURCE = xcb-proto-$(XCB_PROTO_VERSION).tar.bz2
9 XCB_PROTO_SITE = http://xcb.freedesktop.org/dist
10 XCB_PROTO_LICENSE = MIT
11 XCB_PROTO_LICENSE_FILES = COPYING
13 XCB_PROTO_INSTALL_STAGING = YES
15 XCB_PROTO_DEPENDENCIES = host-python
17 # xcbincludedir/pythondir is used by E.G. libxcb at build time to find the
18 # xml / python files, so ensure these expand to their full (host) paths
19 define XCB_PROTO_FIXUP_PC_FILE
20 $(SED) 's|^\(xcbincludedir=\)|\1$(STAGING_DIR)|' \
21 -e 's|^\(pythondir=\)|\1$(STAGING_DIR)|' \
22 $(STAGING_DIR)/usr/lib/pkgconfig/xcb-proto.pc
25 XCB_PROTO_POST_INSTALL_STAGING_HOOKS += XCB_PROTO_FIXUP_PC_FILE
27 $(eval $(autotools-package))
28 $(eval $(host-autotools-package))